This is the mail archive of the libc-alpha@sourceware.org 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]

[PATCH] Added missing ICMPv6 flags and option


---
 ChangeLog            |  5 +++++
 inet/netinet/icmp6.h | 14 ++++++++++++++
 2 files changed, 19 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index a7dc412..12fd8ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-02-12  Dan Luedtke  <mail@danrl.de>
+
+	* inet/netinet/icmp6.h: Added missing Router Advertisement Flags
+	* inet/netinet/icmp6.h: Added ICMPv6 Recursive DNS Server Option
+
 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
 
 	* soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
diff --git a/inet/netinet/icmp6.h b/inet/netinet/icmp6.h
index baaeb26..7d0bd9f 100644
--- a/inet/netinet/icmp6.h
+++ b/inet/netinet/icmp6.h
@@ -135,6 +135,10 @@ struct nd_router_advert       /* router advertisement */
 #define ND_RA_FLAG_MANAGED       0x80
 #define ND_RA_FLAG_OTHER         0x40
 #define ND_RA_FLAG_HOME_AGENT    0x20
+#define ND_RA_RTPREF_LOW         0x18
+#define ND_RA_RTPREF_MEDIUM      0x00
+#define ND_RA_RTPREF_HIGH        0x08
+#define ND_RA_FLAG_PROXY         0x04
 #define nd_ra_router_lifetime    nd_ra_hdr.icmp6_data16[1]
 
 struct nd_neighbor_solicit    /* neighbor solicitation */
@@ -197,6 +201,7 @@ struct nd_opt_hdr             /* Neighbor discovery option header */
 #define ND_OPT_MTU			5
 #define ND_OPT_RTR_ADV_INTERVAL		7
 #define ND_OPT_HOME_AGENT_INFO		8
+#define ND_OPT_RDNSS			25
 
 struct nd_opt_prefix_info     /* prefix information */
   {
@@ -231,6 +236,15 @@ struct nd_opt_mtu             /* MTU option */
     uint32_t  nd_opt_mtu_mtu;
   };
 
+struct nd_opt_rdnss           /* RDNSS option */
+  {
+    uint8_t   nd_opt_rdnss_type;
+    uint8_t   nd_opt_rdnss_len;
+    uint16_t  nd_opt_rdnss_reserved;
+    uint32_t  nd_opt_rdnss_lifetime;
+    /* followed by recursive DNS servers */
+  };
+
 struct mld_hdr
   {
     struct icmp6_hdr    mld_icmp6_hdr;
-- 
1.8.5.3


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