From: Donatas Abraitis Date: Sun, 31 Oct 2021 19:32:45 +0000 (+0200) Subject: bgp: Print Enhanced route refresh capability X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/fd80896bc847d464e4c3999986812f25c7a42946 bgp: Print Enhanced route refresh capability No need for a decoder here. The Capability Length field of this capability is zero. Update the output of a test accordingly. Signed-off-by: Donatas Abraitis --- diff --git a/print-bgp.c b/print-bgp.c index 836d394b..55981695 100644 --- a/print-bgp.c +++ b/print-bgp.c @@ -217,7 +217,7 @@ static const struct tok bgp_opt_values[] = { #define BGP_CAPCODE_DYN_CAP 67 /* draft-ietf-idr-dynamic-cap */ #define BGP_CAPCODE_MULTISESS 68 /* draft-ietf-idr-bgp-multisession */ #define BGP_CAPCODE_ADD_PATH 69 /* RFC7911 */ -#define BGP_CAPCODE_ENH_RR 70 /* draft-keyur-bgp-enhanced-route-refresh */ +#define BGP_CAPCODE_ENH_RR 70 /* RFC7313 */ #define BGP_CAPCODE_LLGR 71 /* draft-uttaro-idr-bgp-persistence-05 */ #define BGP_CAPCODE_RR_CISCO 128 @@ -2586,6 +2586,7 @@ bgp_capabilities_print(netdissect_options *ndo, case BGP_CAPCODE_LLGR: case BGP_CAPCODE_RR_CISCO: case BGP_CAPCODE_EXT_MSG: + case BGP_CAPCODE_ENH_RR: break; case BGP_CAPCODE_AS_NEW: /* diff --git a/tests/bgp-extended-msg.out b/tests/bgp-extended-msg.out index 5a0426db..62ce6299 100644 --- a/tests/bgp-extended-msg.out +++ b/tests/bgp-extended-msg.out @@ -12,7 +12,6 @@ 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