mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-03 10:13:15 +00:00
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()
This commit is contained in:
parent
48f99b0c2b
commit
beb1ca03bf
@ -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
|
||||
{
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user