From: ckishimo Date: Fri, 22 Jan 2021 09:45:24 +0000 (+0100) Subject: ospf: add support bit Nt RFC3101 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/c86534460a4e0cc2516b96f67aabd8b5ea4e9d16 ospf: add support bit Nt RFC3101 --- diff --git a/ospf.h b/ospf.h index a4e90c8c..8517232c 100644 --- a/ospf.h +++ b/ospf.h @@ -117,6 +117,7 @@ #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 diff --git a/print-ospf.c b/print-ospf.c index c370bda7..d3f519c3 100644 --- a/print-ospf.c +++ b/print-ospf.c @@ -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 } }; diff --git a/tests/TESTLIST b/tests/TESTLIST index 7176ba04..c0302fa8 100644 --- a/tests/TESTLIST +++ b/tests/TESTLIST @@ -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 index 00000000..c4e9ff69 --- /dev/null +++ b/tests/ospf-nssa-bitnt.out @@ -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 index 00000000..2f0eca1a Binary files /dev/null and b/tests/ospf-nssa-bitnt.pcap differ