Skip to content

Commit 2c85480

Browse files
authored
Merge pull request #3580 from LabNConsulting/working/3.0/no-bgp-attr-255
3.0: bgpd: don't use BGP_ATTR_VNC(255) unless ENABLE_BGP_VNC_ATTR is defined
2 parents 4b8b2e5 + 667668d commit 2c85480

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
@@ -74,7 +74,7 @@ static const struct message attr_str[] = {
7474
{BGP_ATTR_AS4_AGGREGATOR, "AS4_AGGREGATOR"},
7575
{BGP_ATTR_AS_PATHLIMIT, "AS_PATHLIMIT"},
7676
{BGP_ATTR_ENCAP, "ENCAP"},
77-
#if ENABLE_BGP_VNC
77+
#if ENABLE_BGP_VNC_ATTR
7878
{BGP_ATTR_VNC, "VNC"},
7979
#endif
8080
{BGP_ATTR_LARGE_COMMUNITIES, "LARGE_COMMUNITY"},
@@ -2455,7 +2455,7 @@ bgp_attr_parse_ret_t bgp_attr_parse(struct peer *peer, struct attr *attr,
24552455
case BGP_ATTR_EXT_COMMUNITIES:
24562456
ret = bgp_attr_ext_communities(&attr_args);
24572457
break;
2458-
#if ENABLE_BGP_VNC
2458+
#if ENABLE_BGP_VNC_ATTR
24592459
case BGP_ATTR_VNC:
24602460
#endif
24612461
case BGP_ATTR_ENCAP:
@@ -2803,7 +2803,7 @@ static void bgp_packet_mpattr_tea(struct bgp *bgp, struct peer *peer,
28032803
attrhdrlen = 1 + 1; /* subTLV T + L */
28042804
break;
28052805

2806-
#if ENABLE_BGP_VNC
2806+
#if ENABLE_BGP_VNC_ATTR
28072807
case BGP_ATTR_VNC:
28082808
attrname = "VNC";
28092809
subtlvs = attr->extra->vnc_subtlvs;
@@ -3278,7 +3278,7 @@ bgp_size_t bgp_packet_attribute(struct bgp *bgp, struct peer *peer,
32783278
/* Tunnel Encap attribute */
32793279
bgp_packet_mpattr_tea(bgp, peer, s, attr, BGP_ATTR_ENCAP);
32803280

3281-
#if ENABLE_BGP_VNC
3281+
#if ENABLE_BGP_VNC_ATTR
32823282
/* VNC attribute */
32833283
bgp_packet_mpattr_tea(bgp, peer, s, attr, BGP_ATTR_VNC);
32843284
#endif

bgpd/bgpd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ struct bgp_nlri {
963963
#define BGP_ATTR_AS_PATHLIMIT 21
964964
#define BGP_ATTR_ENCAP 23
965965
#define BGP_ATTR_LARGE_COMMUNITIES 32
966-
#if ENABLE_BGP_VNC
966+
#if ENABLE_BGP_VNC_ATTR
967967
#define BGP_ATTR_VNC 255
968968
#endif
969969

0 commit comments

Comments
 (0)