]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: don't use BGP_ATTR_VNC(255) unless ENABLE_BGP_VNC_ATTR is defined
authorLou Berger <lberger@labn.net>
Mon, 7 Jan 2019 16:32:54 +0000 (11:32 -0500)
committerLou Berger <lberger@labn.net>
Mon, 7 Jan 2019 17:08:36 +0000 (17:08 +0000)
Signed-off-by: Lou Berger <lberger@labn.net>
bgpd/bgp_attr.c
bgpd/bgpd.h

index e15ebf794a9a13737fc41e1d8a0a2a9e4240d7e0..640c3bdb7abbba93615661fc52a3f0a29c8b383e 100644 (file)
@@ -78,7 +78,7 @@ static const struct message attr_str[] = {
        {BGP_ATTR_AS_PATHLIMIT, "AS_PATHLIMIT"},
        {BGP_ATTR_PMSI_TUNNEL, "PMSI_TUNNEL_ATTRIBUTE"},
        {BGP_ATTR_ENCAP, "ENCAP"},
-#if ENABLE_BGP_VNC
+#if ENABLE_BGP_VNC_ATTR
        {BGP_ATTR_VNC, "VNC"},
 #endif
        {BGP_ATTR_LARGE_COMMUNITIES, "LARGE_COMMUNITY"},
@@ -2581,7 +2581,7 @@ bgp_attr_parse_ret_t bgp_attr_parse(struct peer *peer, struct attr *attr,
                case BGP_ATTR_EXT_COMMUNITIES:
                        ret = bgp_attr_ext_communities(&attr_args);
                        break;
-#if ENABLE_BGP_VNC
+#if ENABLE_BGP_VNC_ATTR
                case BGP_ATTR_VNC:
 #endif
                case BGP_ATTR_ENCAP:
@@ -2933,7 +2933,7 @@ static void bgp_packet_mpattr_tea(struct bgp *bgp, struct peer *peer,
                attrhdrlen = 1 + 1;   /* subTLV T + L */
                break;
 
-#if ENABLE_BGP_VNC
+#if ENABLE_BGP_VNC_ATTR
        case BGP_ATTR_VNC:
                attrname = "VNC";
                subtlvs = attr->vnc_subtlvs;
@@ -3420,7 +3420,7 @@ bgp_size_t bgp_packet_attribute(struct bgp *bgp, struct peer *peer,
                /* Tunnel Encap attribute */
                bgp_packet_mpattr_tea(bgp, peer, s, attr, BGP_ATTR_ENCAP);
 
-#if ENABLE_BGP_VNC
+#if ENABLE_BGP_VNC_ATTR
                /* VNC attribute */
                bgp_packet_mpattr_tea(bgp, peer, s, attr, BGP_ATTR_VNC);
 #endif
index 1baa88914ae9c97da1b01cfa2a837b621a6a5352..fd2157ab9cb9c02aa4847a5d1b685faca8c841f3 100644 (file)
@@ -1270,7 +1270,7 @@ struct bgp_nlri {
 #define BGP_ATTR_ENCAP                          23
 #define BGP_ATTR_LARGE_COMMUNITIES              32
 #define BGP_ATTR_PREFIX_SID                     40
-#if ENABLE_BGP_VNC
+#if ENABLE_BGP_VNC_ATTR
 #define BGP_ATTR_VNC                           255
 #endif