fib: fix ip6-ll fib selection for non-ethernet interfaces 27/35727/5
authorVladislav Grishenko <themiron@yandex-team.ru>
Fri, 19 Nov 2021 17:53:41 +0000 (22:53 +0500)
committerNeale Ranns <neale@graphiant.com>
Fri, 25 Mar 2022 07:57:58 +0000 (07:57 +0000)
commitb9feb61e8f6778bfc100b4bbcb9eee8795e20191
tree129d11e45e2812757bd85d0d73bcd483ec944b79
parent89d74bdee88a10f04831246217448abae81f6142
fib: fix ip6-ll fib selection for non-ethernet interfaces

Fixes case when packet to link-local address is received over
gre/mpls or other non-ethernet interface and ip6-ll fib for it
is undefined.
If by a chance ip6-ll fib index is valid, packet will be passed
to some ip6 fib with possibilities to be sent out over unrelated
interface or be looped again into ip6-link-local dpo till oom
and crash.

Type: fix
Signed-off-by: Vladislav Grishenko <themiron@yandex-team.ru>
Change-Id: Ie985f0373ea45e2926db7fb0a1ff951eca0e38f6
src/vnet/dpo/ip6_ll_dpo.c
src/vnet/ip/ip6_ll_table.c