]> The Tcpdump Group git mirrors - tcpdump/commitdiff
bgp: Print Enhanced route refresh capability
authorDonatas Abraitis <[email protected]>
Sun, 31 Oct 2021 19:32:45 +0000 (21:32 +0200)
committerfxlb <[email protected]>
Sun, 23 Jan 2022 10:01:42 +0000 (10:01 +0000)
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 <[email protected]>
print-bgp.c
tests/bgp-extended-msg.out

index 836d394b1b45146b6580d08e7008b37bd950d631..55981695887a528a2b98eb277b60952667b06a28 100644 (file)
@@ -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:
             /*
index 5a0426db01e8d8b05379c48dfeee8199d1dbb63f..62ce629913688ec29622252966461243901e508d 100644 (file)
@@ -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