]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add a test file for BGP LARGE_COMMUNITY Path Attribute
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 13 Oct 2016 09:26:47 +0000 (11:26 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 13 Oct 2016 09:26:47 +0000 (11:26 +0200)
tests/TESTLIST
tests/bgp-large-community.out [new file with mode: 0644]
tests/bgp-large-community.pcap [new file with mode: 0644]

index 12f2d76048682bd06cd42a404a5e142e8f32fa2d..6813ca9830fa6dd86ca3e22f0ad48d62f8f10131 100644 (file)
@@ -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 (file)
index 0000000..a9f261c
--- /dev/null
@@ -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 (file)
index 0000000..0c07664
Binary files /dev/null and b/tests/bgp-large-community.pcap differ