]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: encode properly vpnv6 nexthop
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 23 Jan 2023 15:27:45 +0000 (16:27 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 23 Jan 2023 15:43:51 +0000 (16:43 +0100)
commitf7a0eb6a1736e85b5991ffc919805b812a6d7576
tree8648a0dd1fb1ccd9b4e491b268e761a19f5e038a
parentde2e2d5ef09477ff03c17c18eeb1b2cb8da80f84
bgpd: encode properly vpnv6 nexthop

This change updates the nexthop attribute length
accordingly to the safi used. Actually, with the
previous commit, the length calculated was not
aligned with the real nexthop length. Such packet
received by remote peer was malformed, and this
was resulting in breaking vpnv6 peering.

Fix this by updating appropriately the real
nexthop length.

Fixes: 35ac9b53f2e2 ("bgpd: fix vpnv6 nexthop encoding")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_route.c