summaryrefslogtreecommitdiff
path: root/lib/elf_py.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2023-01-23 16:31:12 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2023-01-24 08:04:27 +0100
commit9795e9f23465f26628a75be15771a01427336dad (patch)
tree09243bee9551302d0c8e126334ba2cecbac3e83c /lib/elf_py.c
parentf7a0eb6a1736e85b5991ffc919805b812a6d7576 (diff)
bgpd: fix when route-map changes the link local nexthop for vpnv6
This fix updates the nexthop length of a bgp update to be transmitted to a remote peer. Before the previous commit, the ipv6 nexthop length was internally set to 32 bytes which was not correct, as it should be 48 bytes which is conform to the vpnv6 encoding format. However, without the previous match, even if internally, the nexthop length was set to 32, the real nexthop length was set to 48 bytes, and everything was operating ok. Now, if we use the following route-map, and attach it to outgoing for vpnv6 address family, then we have a malformed packet detected, and the peering breaks. > route-map rmap permit 1 > set ipv6 next-hop global 5:5::3:6 > set ipv6 next-hop local fe80:55::333:222 Maintain the mp_nexthop_len to 48 bytes if it was already set to 48 previously. Fixes: 35ac9b53f2e2 ("bgpd: fix vpnv6 nexthop encoding") Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/elf_py.c')
0 files changed, 0 insertions, 0 deletions