diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-01-07 09:33:28 -0500 |
|---|---|---|
| committer | vivek <vivek@cumulusnetworks.com> | 2016-06-06 14:20:24 -0700 |
| commit | e978e1de98b4464f960f27ef3fda1c45769bfb0c (patch) | |
| tree | d95250a1bd866131395f53ac2b048f7a8ca893e7 /bgpd/bgp_open.h | |
| parent | ff75b6c05bb9ca1b9c4c48f2231fd4cbfd393b17 (diff) | |
lib, bgpd: Fixup afi_t to be an enum and cleanup zebra.h
This code change does two things:
1) Removes ZEBRA_AFI_XXX #defines since they were redundant information
2) Switches afi_t to an enumerated type so that the compiler
can do a bit more compile time checking.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
(cherry picked from commit f3cfc46450cccc5ac035a5a97c5a1a5484205705)
Conflicts:
bgpd/bgp_open.c
bgpd/bgp_open.h
bgpd/bgp_routemap.c
Diffstat (limited to 'bgpd/bgp_open.h')
| -rw-r--r-- | bgpd/bgp_open.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_open.h b/bgpd/bgp_open.h index bc49de54ff..8ec0a5416b 100644 --- a/bgpd/bgp_open.h +++ b/bgpd/bgp_open.h @@ -89,7 +89,8 @@ struct capability_gr #define CAPABILITY_CODE_AS4_LEN 4 #define CAPABILITY_CODE_ADDPATH_LEN 4 #define CAPABILITY_CODE_ENHE_LEN 6 /* NRLI AFI = 2, SAFI = 2, Nexthop AFI = 2 */ -#define CAPABILITY_CODE_MIN_FQDN_LEN 2 +#define CAPABILITY_CODE_MIN_FQDN_LEN 2 +#define CAPABILITY_CODE_ORF_LEN 5 /* Cooperative Route Filtering Capability. */ |
