From patchwork Fri Mar 13 15:39:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Landden X-Patchwork-Id: 5606 Received: (qmail 98972 invoked by alias); 13 Mar 2015 15:39:33 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 98962 invoked by uid 89); 13 Mar 2015 15:39:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.4 required=5.0 tests=BAYES_00, FREEMAIL_FROM, KAM_FROM_URIBL_PCCC, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-pa0-f53.google.com X-Received: by 10.67.5.230 with SMTP id cp6mr63917123pad.55.1426261169591; Fri, 13 Mar 2015 08:39:29 -0700 (PDT) From: Shawn Landden To: libc-alpha@sourceware.org Cc: Shawn Landden Subject: [PATCH] in6_addr: add 64-bit union accessors Date: Fri, 13 Mar 2015 08:39:05 -0700 Message-Id: <1426261145-20310-1-git-send-email-shawn@churchofgit.com> 64-bit architectures are common so this makes sense to have. 64-bit arches were not so common 1997-02-16. I'm not going to change the ChangeLog because that practice breaks git merges. Bugzilla: #18117 Signed-off-by: Shawn Landden --- inet/netinet/in.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inet/netinet/in.h b/inet/netinet/in.h index f541c58..b64b559 100644 --- a/inet/netinet/in.h +++ b/inet/netinet/in.h @@ -214,12 +214,14 @@ struct in6_addr #ifdef __USE_MISC uint16_t __u6_addr16[8]; uint32_t __u6_addr32[4]; + uint64_t __u6_addr64[2]; #endif } __in6_u; #define s6_addr __in6_u.__u6_addr8 #ifdef __USE_MISC # define s6_addr16 __in6_u.__u6_addr16 # define s6_addr32 __in6_u.__u6_addr32 +# define s6_addr64 __in6_u.__u6_addr64 #endif }; #endif /* !__USE_KERNEL_IPV6_DEFS */