From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 789C138582B7 for ; Mon, 29 Jan 2024 19:08:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 789C138582B7 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 789C138582B7 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706555314; cv=none; b=acH8RgvSJOqTW7GWTx5/RD8vBs303Wqq7MHsG+30PcLAtMLJQ3FYJCy7vqssyAmhVHbYxwyTfwxfFfF4k7t3Hp1cNc6w4oVlL2tNrWhpHQmrpz9PFXQC9lfq9fk8Et1sFrDYPypCS6QPJnGhzzGblSHgy8yiGfoiW50y5B5V4AM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706555314; c=relaxed/simple; bh=I5jpc/doCk04dUipWc60IOU2PYi2GZSw+cfyr5gd+uU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=TH/MMVcbB0YaYBA/3A7juRk10e3hv2iDEnuZl/cScYL8YVyBrQi0cZU4kjt7CdRboMb33vsmMUgVb5+lHxD6ISNIXIsW3KO89k/KWvFfje0Kifz6QEre9G1cAQWKy/DUzz5HiFYba0liIiHoDP7a6yl509p2gslalG7qYQa0BAo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706555310; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=I5jpc/doCk04dUipWc60IOU2PYi2GZSw+cfyr5gd+uU=; b=gmh+2uTCgibmk86fk+6BhtHFMUk2N5vaxS7d2Q6igPxHNBH4JB7+6FK1wO2Jl9Zysw3O/Y TnP0CdgLrcR32EQKB6tOAYyJ95+1xEXpvCagoFdI1Ko0JTVaNpE/X9XNfi5lw4AiPTBBKx H2U+hnsukxB5DKg0jPszj7gSIiVmmAo= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-693-bAoazD1WNLCFgmFfCcynkw-1; Mon, 29 Jan 2024 14:08:26 -0500 X-MC-Unique: bAoazD1WNLCFgmFfCcynkw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2FB331066680; Mon, 29 Jan 2024 19:08:26 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.66]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 59AA740C95AD; Mon, 29 Jan 2024 19:08:25 +0000 (UTC) From: Florian Weimer To: James Hanley Cc: libc-alpha@sourceware.org Subject: Re: in6_addr struct union with uint64_t References: <87a5or28dd.fsf@oldenburg.str.redhat.com> Date: Mon, 29 Jan 2024 20:08:23 +0100 In-Reply-To: (James Hanley's message of "Mon, 29 Jan 2024 13:02:11 -0500") Message-ID: <87bk94dkk8.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: * James Hanley: > I believe I understand your point - is the concern that the alignment > issue would be manifested with an already compiled legacy application > utilizing this newly built library and would require the in6_addr to > be 16-byte aligned or hit a runtime exception if the address passed in > isn't aligned - correct? It's not so much the run-time exception/trap, but that struct offsets may change as a result of the increased alignment. If the compiler supports decreasing alignment, we could add the additional arrays, but I'm not sure if that's worth it. Thanks, Florian