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