]> The Tcpdump Group git mirrors - tcpdump/commitdiff
OSPF6: Update the option bit props.
authorDenis Ovsienko <[email protected]>
Fri, 2 Oct 2020 13:12:55 +0000 (14:12 +0100)
committerDenis Ovsienko <[email protected]>
Fri, 2 Oct 2020 19:01:20 +0000 (20:01 +0100)
In the "OSPFv3 Router Properties Registry" the code point 0x08 is
deprecated and the code point 0x10 stands for Nt-bit, not N-bit. Also
list the N-bit from "OSPFv3 Options (24 bits)".

print-ospf6.c

index 5e4f163dcebec03646c4695d491c7dd203dba4c6..29014d74c8b019ece3b44a5eb3cd81ca5051eaae 100644 (file)
@@ -95,7 +95,7 @@
 #define        RLA_FLAG_E      0x02
 #define        RLA_FLAG_V      0x04
 #define        RLA_FLAG_W      0x08
-#define RLA_FLAG_N      0x10
+#define        RLA_FLAG_Nt     0x10
 
 /* lsa_prefix options */
 #define LSA_PREFIX_OPT_NU 0x01
 #define LSA_PREFIX_OPT_MC 0x04
 #define LSA_PREFIX_OPT_P  0x08
 #define LSA_PREFIX_OPT_DN 0x10
+#define LSA_PREFIX_OPT_N  0x20
 
 /* sla_tosmetric breakdown     */
 #define        SLA_MASK_TOS            0x7f000000
@@ -302,8 +303,8 @@ static const struct tok ospf6_rla_flag_values[] = {
        { RLA_FLAG_B,           "ABR" },
        { RLA_FLAG_E,           "External" },
        { RLA_FLAG_V,           "Virtual-Link Endpoint" },
-       { RLA_FLAG_W,           "Wildcard Receiver" },
-        { RLA_FLAG_N,           "NSSA Translator" },
+       { RLA_FLAG_W,           "Deprecated" },
+       { RLA_FLAG_Nt,          "NSSA Translator" },
        { 0,                    NULL }
 };
 
@@ -362,6 +363,7 @@ static const struct tok ospf6_lsa_prefix_option_values[] = {
         { LSA_PREFIX_OPT_MC, "Deprecated" },
         { LSA_PREFIX_OPT_P, "Propagate" },
         { LSA_PREFIX_OPT_DN, "Down" },
+        { LSA_PREFIX_OPT_N, "N-bit" },
        { 0, NULL }
 };