summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <fx.lebail@yahoo.com>2015-05-22 12:41:40 +0200
committerFrancois-Xavier Le Bail <fx.lebail@yahoo.com>2015-05-22 12:41:40 +0200
commitab941c35f9a151a4b2d01816e05518014381d63d (patch)
tree9078194fa616078ab3a1c6964b62c2f6b1e952e6 /tests
parent0b1de8f73d9b1484095a5ba484e83021ef7bc7ae (diff)
downloadtcpdump-ab941c35f9a151a4b2d01816e05518014381d63d.tar.gz
BGP: Add support for the AIGP attribute (RFC7311)
Based on a patch from Hannes Gredler
Diffstat (limited to 'tests')
-rw-r--r--tests/TESTLIST1
-rw-r--r--tests/bgp-aigp.out20
-rw-r--r--tests/bgp-aigp.pcapbin0 -> 258 bytes
3 files changed, 21 insertions, 0 deletions
diff --git a/tests/TESTLIST b/tests/TESTLIST
index b0bf5ee5..c28bec81 100644
--- a/tests/TESTLIST
+++ b/tests/TESTLIST
@@ -20,6 +20,7 @@ print-AA print-flags.pcap print-AA.out -t -AA
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
# EAP tests
eapon1 eapon1.pcap eapon1.out -t
diff --git a/tests/bgp-aigp.out b/tests/bgp-aigp.out
new file mode 100644
index 00000000..3fd66782
--- /dev/null
+++ b/tests/bgp-aigp.out
@@ -0,0 +1,20 @@
+IP (tos 0xc0, ttl 64, id 35063, offset 0, flags [none], proto TCP (6), length 182)
+ 172.16.20.5.59631 > 172.16.20.3.179: Flags [P.], cksum 0xe112 (correct), seq 3923783171:3923783301, ack 3341773693, win 16384, options [nop,nop,TS val 32734022 ecr 32695671], length 130: BGP
+ Update Message (2), length: 100
+ Origin (1), length: 1, Flags [T]: Incomplete
+ AS Path (2), length: 0, Flags [T]: empty
+ Multi Exit Discriminator (4), length: 4, Flags [O]: 0
+ Local Preference (5), length: 4, Flags [T]: 100
+ Community (8), length: 4, Flags [OT]: 65000:11201
+ Originator ID (9), length: 4, Flags [O]: 172.16.21.4
+ Cluster List (10), length: 4, Flags [O]: 172.16.20.5
+ Accumulated IGP Metric (26), length: 11, Flags [O]:
+ AIGP TLV (1), length 11, metric 2000
+ Multi-Protocol Reach NLRI (14), length: 17, Flags [OE]:
+ AFI: IPv4 (1), SAFI: labeled Unicast (4)
+ nexthop: 172.16.20.5, nh-length: 4, no SNPA
+ 172.16.21.4/32, label:300096 (bottom)
+ Update Message (2), length: 30
+ Multi-Protocol Unreach NLRI (15), length: 3, Flags [OE]:
+ AFI: IPv4 (1), SAFI: labeled Unicast (4)
+ End-of-Rib Marker (empty NLRI)
diff --git a/tests/bgp-aigp.pcap b/tests/bgp-aigp.pcap
new file mode 100644
index 00000000..1e55e199
--- /dev/null
+++ b/tests/bgp-aigp.pcap
Binary files differ