@@ -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
0 commit comments