From: Francois-Xavier Le Bail Date: Thu, 13 Oct 2016 09:26:47 +0000 (+0200) Subject: Add a test file for BGP LARGE_COMMUNITY Path Attribute X-Git-Tag: tcpdump-4.9.0-bp~143 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/151c0cb295d37b5c1ce31db02c697fa9921a363b Add a test file for BGP LARGE_COMMUNITY Path Attribute --- diff --git a/tests/TESTLIST b/tests/TESTLIST index 12f2d760..6813ca98 100644 --- a/tests/TESTLIST +++ b/tests/TESTLIST @@ -23,6 +23,7 @@ bgp_vpn_attrset bgp_vpn_attrset.pcap bgp_vpn_attrset.out -t -v mpbgp-linklocal-nexthop mpbgp-linklocal-nexthop.pcap mpbgp-linklocal-nexthop.out -t -v bgp_infloop-v bgp-infinite-loop.pcap bgp_infloop-v.out -t -v bgp-aigp bgp-aigp.pcap bgp-aigp.out -t -v +bgp-large-community bgp-large-community.pcap bgp-large-community.out -t -v # EAP tests eapon1 eapon1.pcap eapon1.out -t diff --git a/tests/bgp-large-community.out b/tests/bgp-large-community.out new file mode 100644 index 00000000..a9f261c0 --- /dev/null +++ b/tests/bgp-large-community.out @@ -0,0 +1,42 @@ +IP (tos 0x0, ttl 64, id 40592, offset 0, flags [DF], proto TCP (6), length 427) + 192.0.2.2.34270 > 192.0.2.3.179: Flags [P.], cksum 0x648a (correct), seq 1543383182:1543383557, ack 1631904162, win 457, options [nop,nop,TS val 3914332 ecr 3914332], length 375: BGP + Update Message (2), length: 75 + Origin (1), length: 1, Flags [T]: IGP + AS Path (2), length: 6, Flags [T]: 65536 + Next Hop (3), length: 4, Flags [T]: 192.0.2.2 + Large Community (30), length: 24, Flags [OT]: + 65535:1:1, 4294967295:4294967295:4294967295 + Updated routes: + 203.0.113.16/32 + Update Message (2), length: 75 + Origin (1), length: 1, Flags [T]: IGP + AS Path (2), length: 6, Flags [T]: 65536 + Next Hop (3), length: 4, Flags [T]: 192.0.2.2 + Large Community (30), length: 24, Flags [OT]: + 65536:1:1, 65536:1:2 + Updated routes: + 203.0.113.12/32 + Update Message (2), length: 63 + Origin (1), length: 1, Flags [T]: IGP + AS Path (2), length: 6, Flags [T]: 65536 + Next Hop (3), length: 4, Flags [T]: 192.0.2.2 + Large Community (30), length: 12, Flags [OT]: + 65536:1:1 + Updated routes: + 203.0.113.11/32 + Update Message (2), length: 75 + Origin (1), length: 1, Flags [T]: IGP + AS Path (2), length: 6, Flags [T]: 65536 + Next Hop (3), length: 4, Flags [T]: 192.0.2.2 + Large Community (30), length: 24, Flags [OT]: + 65536:0:1, 65536:1:0 + Updated routes: + 203.0.113.15/32 + Update Message (2), length: 87 + Origin (1), length: 1, Flags [T]: IGP + AS Path (2), length: 6, Flags [T]: 65536 + Next Hop (3), length: 4, Flags [T]: 192.0.2.2 + Large Community (30), length: 36, Flags [OT]: + 65536:1:1, 65536:1:2, 65536:1:3 + Updated routes: + 203.0.113.13/32 diff --git a/tests/bgp-large-community.pcap b/tests/bgp-large-community.pcap new file mode 100644 index 00000000..0c076648 Binary files /dev/null and b/tests/bgp-large-community.pcap differ