public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Shawn Landden <slandden@gmail.com>
To: libc-alpha@sourceware.org
Cc: Shawn Landden <slandden@gmail.com>
Subject: [PATCH] inet: add uint64_t accessors to in6_addr union
Date: Sun, 12 Nov 2017 06:56:00 -0000	[thread overview]
Message-ID: <20171112065412.18641-1-slandden@gmail.com> (raw)

64-bit architectures are common so this makes sense to have.
64-bit arches were not so common 1997-02-16.

Signed-off-by: Shawn Landden <slandden@gmail.com>
---
 inet/netinet/in.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/inet/netinet/in.h b/inet/netinet/in.h
index f94b4b4e1c..72d5dec312 100644
--- a/inet/netinet/in.h
+++ b/inet/netinet/in.h
@@ -215,11 +215,13 @@ struct in6_addr
 	uint8_t	__u6_addr8[16];
 	uint16_t __u6_addr16[8];
 	uint32_t __u6_addr32[4];
+	uint64_t __u6_addr64[2];
       } __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 */
-- 
2.15.0.rc2

             reply	other threads:[~2017-11-12  6:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-12  6:56 Shawn Landden [this message]
2017-11-12  7:27 ` Florian Weimer
     [not found]   ` <CA+49okotoe+0VvCU0EJb19yWnV=VXrsSSSDkX4PexvKuZij3ew@mail.gmail.com>
     [not found]     ` <CA+49okoai7OHhtHkMAUoBBDq_howuLb7m1T5xUz15C7S7-oxhg@mail.gmail.com>
2017-11-12 11:03       ` Shawn Landden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171112065412.18641-1-slandden@gmail.com \
    --to=slandden@gmail.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).