This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
ip6_rthdr0 definition in ip6.h
- From: Brian Haley <Brian dot Haley at hp dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Mon, 25 Oct 2004 16:35:00 -0400
- Subject: ip6_rthdr0 definition in ip6.h
- Organization: Linux and Open Source Lab
Hi,
The current ip6_rthdr0 definition in ip6.h is not compliant with RFC
3542, it dates back to the older RFC 2292. I've included a patch to fix it.
This was also mentioned years ago (as a reference) in:
http://sources.redhat.com/ml/libc-alpha/2001-06/msg00082.html
I'm not sure how much of a ripple effect this would have (ie things
won't compile with new definition) since it only seems like USAGI even
has code that uses it. Code I was porting was not sending the correct
packet on the wire without this.
If there is a better (or additional) place to post this info please let
me know.
Thanks,
-Brian
--
Brian Haley, HP Linux and Open Source Lab
--- ip6.h.orig 2003-06-14 04:38:10.000000000 -0400
+++ ip6.h 2004-10-25 15:22:34.722161115 -0400
@@ -87,9 +87,8 @@
uint8_t ip6r0_len; /* length in units of 8 octets */
uint8_t ip6r0_type; /* always zero */
uint8_t ip6r0_segleft; /* segments left */
- uint8_t ip6r0_reserved; /* reserved field */
- uint8_t ip6r0_slmap[3]; /* strict/loose bit map */
- struct in6_addr ip6r0_addr[1]; /* up to 23 addresses */
+ uint32_t ip6r0_reserved; /* reserved field */
+ /* followed by up to 127 struct in6_addr */
};
/* Fragment header */