mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-17 13:18:13 +00:00
bgpd: fix vpnv6 nexthop encoding
In ipv6 vpn, when the global and the local ipv6 address are received, when re-transmitting the bgp ipv6 update, the nexthop attribute length must still be 48 bytes. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
e2fd75fce2
commit
35ac9b53f2
@ -4028,8 +4028,8 @@ size_t bgp_packet_mpattr_start(struct stream *s, struct peer *peer, afi_t afi,
|
|||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case SAFI_MPLS_VPN: {
|
case SAFI_MPLS_VPN: {
|
||||||
if (attr->mp_nexthop_len
|
if (attr->mp_nexthop_len ==
|
||||||
== BGP_ATTR_NHLEN_IPV6_GLOBAL_AND_LL) {
|
BGP_ATTR_NHLEN_VPNV6_GLOBAL_AND_LL) {
|
||||||
stream_putc(s, 48);
|
stream_putc(s, 48);
|
||||||
stream_putl(s, 0); /* RD = 0, per RFC */
|
stream_putl(s, 0); /* RD = 0, per RFC */
|
||||||
stream_putl(s, 0);
|
stream_putl(s, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user