]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Fix Missing capability codes in data structure
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 7 Jun 2016 14:49:35 +0000 (10:49 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 7 Jun 2016 14:49:35 +0000 (10:49 -0400)
Forward port of a fix from upstream introduced
the need to have data on the new capability codes
that have been introduced.

This commit adds in the missing capabilities.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
bgpd/bgp_open.c

index 8be906d399732fc1ad2e827bdfa7fa02ef5a4a5c..54ca5efedefe2e63b28695ef83f3de9e1aba70b6 100644 (file)
@@ -725,9 +725,13 @@ static const size_t cap_modsizes[] =
   [CAPABILITY_CODE_ORF]         = 1,
   [CAPABILITY_CODE_RESTART]     = 1,
   [CAPABILITY_CODE_AS4]         = 4,
+  [CAPABILITY_CODE_ADDPATH]     = 4,
   [CAPABILITY_CODE_DYNAMIC]     = 1,
+  [CAPABILITY_CODE_DYNAMIC_OLD] = 1,
+  [CAPABILITY_CODE_ENHE]        = 6,
   [CAPABILITY_CODE_REFRESH_OLD] = 1,
   [CAPABILITY_CODE_ORF_OLD]     = 1,
+  [CAPABILITY_CODE_FQDN]        = 1,
 };
 
 /**