This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ip6_rthdr0 definition in ip6.h


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 */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]