Skip to content

Commit

Permalink
Merge pull request FRRouting#12664 from pguibert6WIND/vpnv6_encoding_…
Browse files Browse the repository at this point in the history
…nexthop

bgpd: fix vpnv6 nexthop encoding
  • Loading branch information
ton31337 authored Jan 20, 2023
2 parents f5c8073 + 35ac9b5 commit 9070c49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bgpd/bgp_attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -4028,8 +4028,8 @@ size_t bgp_packet_mpattr_start(struct stream *s, struct peer *peer, afi_t afi,
}
} break;
case SAFI_MPLS_VPN: {
if (attr->mp_nexthop_len
== BGP_ATTR_NHLEN_IPV6_GLOBAL_AND_LL) {
if (attr->mp_nexthop_len ==
BGP_ATTR_NHLEN_VPNV6_GLOBAL_AND_LL) {
stream_putc(s, 48);
stream_putl(s, 0); /* RD = 0, per RFC */
stream_putl(s, 0);
Expand Down

0 comments on commit 9070c49

Please sign in to comment.