summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2011-07-13 16:53:13 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2011-09-29 22:07:54 +0400
commitbeb1ca03bfe707d6d1fcad21fcbaa63af49c82f8 (patch)
tree78ffcd5ec7e9bb80e92c108f5ca0268ec6cff262
parent48f99b0c2bfed8d3880732d188e1d5964f575ee4 (diff)
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()
-rw-r--r--bgpd/bgp_route.c2
-rw-r--r--bgpd/bgpd.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index aabd264a..eaedbc4c 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -9381,7 +9381,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 d415814c..f396f726 100644
--- a/bgpd/bgpd.h
+++ b/bgpd/bgpd.h
@@ -729,7 +729,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