Skip to content

Commit 96efdcb

Browse files
authored
Merge pull request #3579 from LabNConsulting/working/4.0/no-bgp-attr-255
4.0: bgpd: don't use BGP_ATTR_VNC(255) unless ENABLE_BGP_VNC_ATTR is defined
2 parents efa1185 + e88213b commit 96efdcb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bgpd/bgp_attr.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static const struct message attr_str[] = {
7676
{BGP_ATTR_AS_PATHLIMIT, "AS_PATHLIMIT"},
7777
{BGP_ATTR_PMSI_TUNNEL, "PMSI_TUNNEL_ATTRIBUTE"},
7878
{BGP_ATTR_ENCAP, "ENCAP"},
79-
#if ENABLE_BGP_VNC
79+
#if ENABLE_BGP_VNC_ATTR
8080
{BGP_ATTR_VNC, "VNC"},
8181
#endif
8282
{BGP_ATTR_LARGE_COMMUNITIES, "LARGE_COMMUNITY"},
@@ -2434,7 +2434,7 @@ bgp_attr_parse_ret_t bgp_attr_parse(struct peer *peer, struct attr *attr,
24342434
case BGP_ATTR_EXT_COMMUNITIES:
24352435
ret = bgp_attr_ext_communities(&attr_args);
24362436
break;
2437-
#if ENABLE_BGP_VNC
2437+
#if ENABLE_BGP_VNC_ATTR
24382438
case BGP_ATTR_VNC:
24392439
#endif
24402440
case BGP_ATTR_ENCAP:
@@ -2767,7 +2767,7 @@ static void bgp_packet_mpattr_tea(struct bgp *bgp, struct peer *peer,
27672767
attrhdrlen = 1 + 1; /* subTLV T + L */
27682768
break;
27692769

2770-
#if ENABLE_BGP_VNC
2770+
#if ENABLE_BGP_VNC_ATTR
27712771
case BGP_ATTR_VNC:
27722772
attrname = "VNC";
27732773
subtlvs = attr->vnc_subtlvs;
@@ -3246,7 +3246,7 @@ bgp_size_t bgp_packet_attribute(struct bgp *bgp, struct peer *peer,
32463246
/* Tunnel Encap attribute */
32473247
bgp_packet_mpattr_tea(bgp, peer, s, attr, BGP_ATTR_ENCAP);
32483248

3249-
#if ENABLE_BGP_VNC
3249+
#if ENABLE_BGP_VNC_ATTR
32503250
/* VNC attribute */
32513251
bgp_packet_mpattr_tea(bgp, peer, s, attr, BGP_ATTR_VNC);
32523252
#endif

bgpd/bgpd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ struct bgp_nlri {
10771077
#define BGP_ATTR_ENCAP 23
10781078
#define BGP_ATTR_LARGE_COMMUNITIES 32
10791079
#define BGP_ATTR_PREFIX_SID 40
1080-
#if ENABLE_BGP_VNC
1080+
#if ENABLE_BGP_VNC_ATTR
10811081
#define BGP_ATTR_VNC 255
10821082
#endif
10831083

0 commit comments

Comments
 (0)