From: Denis Ovsienko Date: Wed, 13 Jul 2011 12:53:13 +0000 (+0400) Subject: bgpd: fix SAFI for for MPLS labeled VPN-IPv6 X-Git-Tag: frr-2.0-rc1~1918^2~162 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=87f011e5297ab9d3c599916800aab1198613071e;p=mirror%2Ffrr.git bgpd: fix SAFI for for MPLS labeled VPN-IPv6 * bgpd.h: change value of BGP_SAFI_VPNV6 to 128 (RFC4659, BZ#659) * bgp_route.c: (bgp_table_stats_vty) fix length argument to strncmp() --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 75a59cb42c..1da5d1da06 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -9090,7 +9090,7 @@ bgp_table_stats_vty (struct vty *vty, const char *name, safi = SAFI_UNICAST; else if (strncmp (safi_str, "vpnv4", 5) == 0) safi = BGP_SAFI_VPNV4; - else if (strncmp (safi_str, "vpnv6", 6) == 0) + else if (strncmp (safi_str, "vpnv6", 5) == 0) safi = BGP_SAFI_VPNV6; else { diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h index a5afaedcc3..73a9ea12a7 100644 --- a/bgpd/bgpd.h +++ b/bgpd/bgpd.h @@ -726,7 +726,7 @@ struct bgp_nlri /* SAFI which used in open capability negotiation. */ #define BGP_SAFI_VPNV4 128 -#define BGP_SAFI_VPNV6 129 +#define BGP_SAFI_VPNV6 128 /* Max TTL value. */ #define TTL_MAX 255