From: Donatas Abraitis Date: Sun, 31 Oct 2021 19:37:54 +0000 (+0200) Subject: bgp: Check if Enhanced route-refresh capability is printed properly X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/9af0029d971c962b80a5ebf4394a9eb97e5e4742 bgp: Check if Enhanced route-refresh capability is printed properly Signed-off-by: Donatas Abraitis --- diff --git a/bgp-enhanced-route-refresh.pcap b/bgp-enhanced-route-refresh.pcap new file mode 100644 index 00000000..3bb3b146 Binary files /dev/null and b/bgp-enhanced-route-refresh.pcap differ diff --git a/tests/TESTLIST b/tests/TESTLIST index 8e6bd6b3..fe4be2ea 100644 --- a/tests/TESTLIST +++ b/tests/TESTLIST @@ -60,6 +60,7 @@ 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.pcapng bgp-extended-msg.out -v +bgp-enhanced-route-refresh bgp-enhanced-route-refresh.pcap bgp-enhanced-route-refresh.out -v # Broadcom tag tests brcmtag brcm-tag.pcap brcm-tag.out diff --git a/tests/bgp-enhanced-route-refresh.out b/tests/bgp-enhanced-route-refresh.out new file mode 100644 index 00000000..515231b5 --- /dev/null +++ b/tests/bgp-enhanced-route-refresh.out @@ -0,0 +1,29 @@ + 1 19:36:14.856146 IP (tos 0xc0, ttl 1, id 20666, offset 0, flags [DF], proto TCP (6), length 147) + 192.168.10.68.179 > 192.168.10.252.34091: Flags [P.], cksum 0x415f (correct), seq 2489578672:2489578767, ack 2869082848, win 227, options [nop,nop,TS val 435210 ecr 2547569735], 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 + 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-enhanced-route-refresh.pcap b/tests/bgp-enhanced-route-refresh.pcap new file mode 100644 index 00000000..7397cf66 Binary files /dev/null and b/tests/bgp-enhanced-route-refresh.pcap differ