summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-01-20 11:45:51 +0200
committerGitHub <noreply@github.com>2023-01-20 11:45:51 +0200
commit9070c493a15ca3bb1cc85e28c6dc71de645be1db (patch)
tree13feb8017ceacf77f4e960b88c44f1d85acb2e8e
parentf5c8073dddce2a1821b0f0c04599e4f3281b4a28 (diff)
parent35ac9b53f2e2b4d33f9ae7f930df38d15408efa4 (diff)
Merge pull request #12664 from pguibert6WIND/vpnv6_encoding_nexthop
bgpd: fix vpnv6 nexthop encoding
-rw-r--r--bgpd/bgp_attr.c4
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);