aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2022-02-07 18:07:39 +0100
committerFlorin Coras <florin.coras@gmail.com>2022-02-07 18:10:05 +0000
commit688d276340b17f4449b9afe3838291fb8efa5f42 (patch)
tree9f2214d3cc3b73e94c265faa65790b7595a56266 /src/vnet/ip
parentfa5aabbf0b26e4d3073e34b36e1dbb51db7df975 (diff)
igmp: make sure fib_index is set before delivering to ip4-local
IGMP packets with Router Alert option are delivered to ip4-local without going through ip4-lookup. Make sure fib_index is initialized properly. Type: fix Change-Id: Iab090a33c4c759b6d7f68c28a0b3f4da7a9de864 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vnet/ip')
-rw-r--r--src/vnet/ip/ip4_options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/ip/ip4_options.c b/src/vnet/ip/ip4_options.c
index 1b5a7878512..9b01151a1f0 100644
--- a/src/vnet/ip/ip4_options.c
+++ b/src/vnet/ip/ip4_options.c
@@ -82,6 +82,8 @@ VLIB_NODE_FN (ip4_options_node) (vlib_main_t * vm,
*/
if (IP_PROTOCOL_IGMP == ip4->protocol)
{
+ ip_lookup_set_buffer_fib_index (
+ ip4_main.fib_index_by_sw_if_index, b);
next = IP4_OPTIONS_NEXT_LOCAL;
}
break;