aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/igmp/igmp.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-03-21 10:19:15 -0400
committerNeale Ranns <nranns@cisco.com>2018-03-21 10:19:15 -0400
commit1cbb19f59fd5f03cc7f368a9f8ad91485d04962b (patch)
tree50dbc2b4197e327ded0311b3d4bc6517e0843d25 /src/plugins/igmp/igmp.c
parente877d68407d316adb64baa855985b746dcb2e102 (diff)
IGMP plugin initialises the FIB/MFIB via ip4 module
Change-Id: If9d7b266c4b49d4e7810ebc7d18fa154532d0322 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/plugins/igmp/igmp.c')
-rw-r--r--src/plugins/igmp/igmp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/igmp/igmp.c b/src/plugins/igmp/igmp.c
index d71e77a74cd..97baae57f1d 100644
--- a/src/plugins/igmp/igmp.c
+++ b/src/plugins/igmp/igmp.c
@@ -738,10 +738,13 @@ VNET_HW_INTERFACE_LINK_UP_DOWN_FUNCTION (igmp_hw_interface_link_up_down);
static clib_error_t *
igmp_init (vlib_main_t * vm)
{
+ clib_error_t *error;
igmp_main_t *im = &igmp_main;
vlib_thread_main_t *tm = vlib_get_thread_main ();
int i;
+ if ((error = vlib_call_init_function (vm, ip4_lookup_init)))
+ return error;
im->igmp_config_by_sw_if_index =
hash_create_mem (0, sizeof (u32), sizeof (uword));
@@ -828,7 +831,7 @@ do { \
mfib_table_entry_update (0, &mpfx1, MFIB_SOURCE_DEFAULT_ROUTE, 0,
MFIB_ENTRY_FLAG_ACCEPT_ALL_ITF);
- return 0;
+ return (error);
}
VLIB_INIT_FUNCTION (igmp_init);