]> The Tcpdump Group git mirrors - tcpdump/commitdiff
ospf: add support bit Nt RFC3101 904/head
authorckishimo <[email protected]>
Fri, 22 Jan 2021 09:45:24 +0000 (10:45 +0100)
committerDenis Ovsienko <[email protected]>
Sat, 23 Jan 2021 13:55:31 +0000 (13:55 +0000)
ospf.h
print-ospf.c
tests/TESTLIST
tests/ospf-nssa-bitnt.out [new file with mode: 0644]
tests/ospf-nssa-bitnt.pcap [new file with mode: 0644]

diff --git a/ospf.h b/ospf.h
index a4e90c8cfdcc19b14e3ca7215f043ac81fe4503a..8517232cabf5aeb3c60c7df675acb3bbdf00f22f 100644 (file)
--- a/ospf.h
+++ b/ospf.h
 #define        RLA_FLAG_E      0x02
 #define        RLA_FLAG_W1     0x04
 #define        RLA_FLAG_W2     0x08
+#define        RLA_FLAG_NT     0x10 /* RFC3101 Appendix B */
 
 /* sla_tosmetric breakdown     */
 #define        SLA_MASK_TOS            0x7f000000
index c370bda71b84dd987345e401209705aa23f0f27d..d3f519c3bb223a351f40fec265bd0e3dfae201f2 100644 (file)
@@ -61,6 +61,7 @@ static const struct tok ospf_rla_flag_values[] = {
        { RLA_FLAG_E,           "ASBR" },
        { RLA_FLAG_W1,          "Virtual" },
        { RLA_FLAG_W2,          "W2" },
+       { RLA_FLAG_NT,          "Nt" },
        { 0,                    NULL }
 };
 
index 7176ba04c5cce3ed24f3bf088e6028ef0e72133f..c0302fa8f4d97c1015e42ac8ac9366df4ff60b75 100644 (file)
@@ -109,6 +109,7 @@ mpls-over-udp-v  mpls-over-udp.pcap  mpls-over-udp-v.out -v
 
 # OSPF tests
 ospf-gmpls     ospf-gmpls.pcap                         ospf-gmpls.out          -v
+ospf-nssa-bitnt        ospf-nssa-bitnt.pcap                    ospf-nssa-bitnt.out     -v
 ospf3_ah-vv    OSPFv3_with_AH.pcap                     ospf3_ah-vv.out         -v -v
 ospf3_auth-vv  ospf3_auth.pcapng                       ospf3_auth-vv.out       -v -v
 ospf3_bc-vv    OSPFv3_broadcast_adjacency.pcap         ospf3_bc-vv.out         -v -v
diff --git a/tests/ospf-nssa-bitnt.out b/tests/ospf-nssa-bitnt.out
new file mode 100644 (file)
index 0000000..c4e9ff6
--- /dev/null
@@ -0,0 +1,12 @@
+    1  21:48:17.261490 IP (tos 0xc0, ttl 1, id 52, offset 0, flags [none], proto OSPF (89), length 96)
+    10.0.34.3 > 224.0.0.5: OSPFv2, LS-Update, length 76
+       Router-ID 10.0.34.3, Area 0.0.0.1, Authentication Type: none (0), 1 LSA
+         LSA #1
+         Advertising Router 10.0.34.3, seq 0x80000004, age 1s, length 28
+           Router LSA (1), LSA-ID: 10.0.34.3
+           Options: [NSSA, Demand Circuit]
+           Router LSA Options: [ABR, ASBR, Nt]
+             Neighbor Router-ID: 10.0.34.4, Interface Address: 10.0.34.3
+               topology default (0), metric 1
+             Stub Network: 10.0.34.0, Mask: 255.255.255.0
+               topology default (0), metric 1
diff --git a/tests/ospf-nssa-bitnt.pcap b/tests/ospf-nssa-bitnt.pcap
new file mode 100644 (file)
index 0000000..2f0eca1
Binary files /dev/null and b/tests/ospf-nssa-bitnt.pcap differ