]> The Tcpdump Group git mirrors - tcpdump/commitdiff
bgp: Check if Enhanced route-refresh capability is printed properly
authorDonatas Abraitis <[email protected]>
Sun, 31 Oct 2021 19:37:54 +0000 (21:37 +0200)
committerfxlb <[email protected]>
Sun, 23 Jan 2022 10:01:42 +0000 (10:01 +0000)
Signed-off-by: Donatas Abraitis <[email protected]>
bgp-enhanced-route-refresh.pcap [new file with mode: 0644]
tests/TESTLIST
tests/bgp-enhanced-route-refresh.out [new file with mode: 0644]
tests/bgp-enhanced-route-refresh.pcap [new file with mode: 0644]

diff --git a/bgp-enhanced-route-refresh.pcap b/bgp-enhanced-route-refresh.pcap
new file mode 100644 (file)
index 0000000..3bb3b14
Binary files /dev/null and b/bgp-enhanced-route-refresh.pcap differ
index 8e6bd6b3d8bbaf4b18381c4396cdba12b7612fcc..fe4be2ea4ee0c2243b0cc10969c1d2e0a2865d16 100644 (file)
@@ -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 (file)
index 0000000..515231b
--- /dev/null
@@ -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 (file)
index 0000000..7397cf6
Binary files /dev/null and b/tests/bgp-enhanced-route-refresh.pcap differ