]> The Tcpdump Group git mirrors - tcpdump/commitdiff
ICMPv6: Add the IPv6-Only flag
authorLoganaden Velvindron <[email protected]>
Sat, 16 Mar 2019 11:31:26 +0000 (15:31 +0400)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 16 Mar 2019 15:03:27 +0000 (16:03 +0100)
This flag in defined in a draft which is close to getting published as
an IETF RFC: https://tools.ietf.org/html/draft-ietf-6man-ipv6only-flag-05.

print-icmp6.c

index 042e50726b988953abc719e26c28bd26584945c7..eb662c3cf940a11d3a72de97b98a3549f254d816 100644 (file)
@@ -216,6 +216,7 @@ 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_FLAG_IPV6ONLY    0x02
 
 /*
  * Router preference values based on draft-draves-ipngwg-router-selection-01.
@@ -698,6 +699,7 @@ static const struct tok icmp6_opt_ra_flag_values[] = {
     { ND_RA_FLAG_MANAGED, "managed" },
     { ND_RA_FLAG_OTHER, "other stateful"},
     { ND_RA_FLAG_HOME_AGENT, "home agent"},
+    { ND_RA_FLAG_IPV6ONLY, "ipv6 only"},
     { 0,       NULL }
 };