mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-23 10:04:05 +08:00
ospf: add support bit Nt RFC3101
This commit is contained in:
parent
f39bd6851f
commit
c86534460a
1
ospf.h
1
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
|
||||
|
@ -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 }
|
||||
};
|
||||
|
||||
|
@ -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
|
||||
|
12
tests/ospf-nssa-bitnt.out
Normal file
12
tests/ospf-nssa-bitnt.out
Normal file
@ -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
|
BIN
tests/ospf-nssa-bitnt.pcap
Normal file
BIN
tests/ospf-nssa-bitnt.pcap
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user