From: Donatas Abraitis Date: Sun, 31 Oct 2021 19:19:55 +0000 (+0200) Subject: tests: Add a pcap test for BGP extended message capability X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/052ed329c1dfe9e772f7f6b9d3ce7c11f6172d03 tests: Add a pcap test for BGP extended message capability Signed-off-by: Donatas Abraitis --- diff --git a/tests/TESTLIST b/tests/TESTLIST index 4f8d0562..1e741d46 100644 --- a/tests/TESTLIST +++ b/tests/TESTLIST @@ -58,6 +58,7 @@ bgp-llgr bgp-evpn.pcap bgp-llgr.out -v bgp-encap bgp-encap.pcap bgp-encap.out -v bgp-rt-prefix bgp-rt-prefix.pcap bgp-rt-prefix.out -v bgp-link-bw-extcommunity bgp-link-bw-extcommunity.pcapng bgp-link-bw-extcommunity.out -v +bgp-extended-msg bgp-extended-msg.pcap bgp-extended-msg.out -v # Broadcom tag tests brcmtag brcm-tag.pcap brcm-tag.out diff --git a/tests/bgp-extended-msg.out b/tests/bgp-extended-msg.out new file mode 100644 index 00000000..5a0426db --- /dev/null +++ b/tests/bgp-extended-msg.out @@ -0,0 +1,30 @@ + 1 19:15:31.105336 IP (tos 0xc0, ttl 1, id 52866, offset 0, flags [DF], proto TCP (6), length 147) + 192.168.10.68.179 > 192.168.10.252.35857: Flags [P.], cksum 0xe752 (correct), seq 3505597008:3505597103, ack 4282450256, win 227, options [nop,nop,TS val 124114 ecr 2546325983], length 95: BGP + Open Message (1), length: 95 + Version 4, my AS 65001, Holdtime 180s, ID 192.168.10.68 + Optional parameters, length: 66 + Option Capabilities Advertisement (2), length: 6 + Multiprotocol Extensions (1), length: 4 + AFI IPv4 (1), SAFI Unicast (1) + Option Capabilities Advertisement (2), length: 2 + Route Refresh (Cisco) (128), length: 0 + Option Capabilities Advertisement (2), length: 2 + Route Refresh (2), length: 0 + Option Capabilities Advertisement (2), length: 2 + Enhanced Route Refresh (70), length: 0 + no decoder for Capability 70 + Option Capabilities Advertisement (2), length: 6 + 32-Bit AS Number (65), length: 4 + 4 Byte AS 65001 + Option Capabilities Advertisement (2), length: 2 + BGP Extended Message (6), length: 0 + Option Capabilities Advertisement (2), length: 6 + Multiple Paths (69), length: 4 + AFI IPv4 (1), SAFI Unicast (1), Send/Receive: Receive + Option Capabilities Advertisement (2), length: 18 + Unknown (73), length: 16 + no decoder for Capability 73 + 0x0000: 0e65 7869 7431 2d64 6562 6961 6e2d 3900 + Option Capabilities Advertisement (2), length: 4 + Graceful Restart (64), length: 2 + Restart Flags: [none], Restart Time 120s diff --git a/tests/bgp-extended-msg.pcap b/tests/bgp-extended-msg.pcap new file mode 100644 index 00000000..3e6f2a3e Binary files /dev/null and b/tests/bgp-extended-msg.pcap differ