diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-04-01 15:05:26 -0400 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-04-01 15:05:26 -0400 | 
| commit | 49e5a4a0b86b2d151861f2605e4687b5efbe565d (patch) | |
| tree | 1ce905397e6d7fb40429cd0d9f3437936093fdb8 /bgpd/bgp_rd.h | |
| parent | 54b71f2fa315b3b8651cf63250473b185b8f2284 (diff) | |
bgpd: #if ENABLE_BGP_VNC -> #ifdef ENABLE_BGP_VNC
This macro is undefined if vnc is disabled, and while it defaults to 0,
this is still wrong and causes issues with -Werror
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_rd.h')
| -rw-r--r-- | bgpd/bgp_rd.h | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_rd.h b/bgpd/bgp_rd.h index 56b9023a2e..b5ad9d624d 100644 --- a/bgpd/bgp_rd.h +++ b/bgpd/bgp_rd.h @@ -28,7 +28,7 @@  #define RD_TYPE_IP      1  #define RD_TYPE_AS4     2 -#if ENABLE_BGP_VNC +#ifdef ENABLE_BGP_VNC  #define RD_TYPE_VNC_ETH	0xff00  /* VNC L2VPN */  #endif @@ -46,7 +46,7 @@ struct rd_ip {  	uint16_t val;  }; -#if ENABLE_BGP_VNC +#ifdef ENABLE_BGP_VNC  struct rd_vnc_eth {  	uint16_t type;  	uint8_t local_nve_id; @@ -60,7 +60,7 @@ extern void encode_rd_type(uint16_t, uint8_t *);  extern void decode_rd_as(const uint8_t *pnt, struct rd_as *rd_as);  extern void decode_rd_as4(const uint8_t *pnt, struct rd_as *rd_as);  extern void decode_rd_ip(const uint8_t *pnt, struct rd_ip *rd_ip); -#if ENABLE_BGP_VNC +#ifdef ENABLE_BGP_VNC  extern void decode_rd_vnc_eth(const uint8_t *pnt,  			      struct rd_vnc_eth *rd_vnc_eth);  #endif  | 
