Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
fa5aabb
)
igmp: make sure fib_index is set before delivering to ip4-local
32/35232/2
author
Benoît Ganne
<bganne@cisco.com>
Mon, 7 Feb 2022 17:07:39 +0000
(18:07 +0100)
committer
Florin Coras
<florin.coras@gmail.com>
Mon, 7 Feb 2022 18:10:05 +0000
(18:10 +0000)
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>
src/vnet/ip/ip4_options.c
patch
|
blob
|
history
diff --git
a/src/vnet/ip/ip4_options.c
b/src/vnet/ip/ip4_options.c
index
1b5a787
..
9b01151
100644
(file)
--- 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;