Fix nlri parsing of L3VPN prefixes in withdrawals.
authorclaudio <claudio@openbsd.org>
Wed, 9 Nov 2022 14:23:53 +0000 (14:23 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 9 Nov 2022 14:23:53 +0000 (14:23 +0000)
commitec5cb4508a38a9ef769764413e21d228c4a47999
treebc713a1ac3b37efdad2fa6dd411e7f3736fd96a8
parent1edf347076a39f0e69e79a342ce03292e7070b41
Fix nlri parsing of L3VPN prefixes in withdrawals.

L3VPN NLRI have different encoding for updates and withdraws. The withdraw
carries one dummy MPLS label that needs to be skipped. The code doing that
did adjust the lenght but did not skip the the label in the buffer and so
the parsed prefix was off by 3 bytes.
OK tb@
usr.sbin/bgpd/util.c