]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix SAFI for for MPLS labeled VPN-IPv6
authorDenis Ovsienko <infrastation@yandex.ru>
Wed, 13 Jul 2011 12:53:13 +0000 (16:53 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Thu, 29 Sep 2011 18:07:54 +0000 (22:07 +0400)
* 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()

bgpd/bgp_route.c
bgpd/bgpd.h

index aabd264a08216a883354989edb2b23bd42c91722..eaedbc4c68c4889446a6cea3b15812c03173a06e 100644 (file)
@@ -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
         {
index d415814c4462e11e4a3b8020f78d7d5db12f9bb6..f396f726ac91847f10d2a847540699fbd230cb60 100644 (file)
@@ -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