diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-01-20 11:45:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-20 11:45:51 +0200 |
| commit | 9070c493a15ca3bb1cc85e28c6dc71de645be1db (patch) | |
| tree | 13feb8017ceacf77f4e960b88c44f1d85acb2e8e | |
| parent | f5c8073dddce2a1821b0f0c04599e4f3281b4a28 (diff) | |
| parent | 35ac9b53f2e2b4d33f9ae7f930df38d15408efa4 (diff) | |
Merge pull request #12664 from pguibert6WIND/vpnv6_encoding_nexthop
bgpd: fix vpnv6 nexthop encoding
| -rw-r--r-- | bgpd/bgp_attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index 4306d3bd12..e60c1bb8dc 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -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); |
