From 126215c1238eb42cc92d23aefbe1fac3b204438f Mon Sep 17 00:00:00 2001 From: Feng Lu Date: Fri, 22 May 2015 11:39:58 +0200 Subject: *: call if_init()/if_terminate() from vrf_init()/vrf_terminate() Later, an interface will belong to a specific VRF, and the interface initialization will be a part of the VRF initialization. So now call if_init() from vrf_init(), and if_terminate() from vrf_terminate(). Daemons have the according changes: - if if_init() was called or "iflist" was initialized, now call vrf_init() instead; - if if_terminate() was called or "iflist" was destroyed, now call vrf_terminate() instead. Signed-off-by: Feng Lu Reviewed-by: Alain Ritoux Signed-off-by: Nicolas Dichtel Acked-by: Vincent JARDIN Signed-off-by: David Lamparter --- pimd/pim_main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pimd/pim_main.c') diff --git a/pimd/pim_main.c b/pimd/pim_main.c index b57f8811..63dd6364 100644 --- a/pimd/pim_main.c +++ b/pimd/pim_main.c @@ -31,6 +31,7 @@ #include #include "memory.h" +#include "vrf.h" #include "filter.h" #include "vty.h" #include "sigevent.h" @@ -203,6 +204,7 @@ int main(int argc, char** argv, char** envp) { cmd_init(1); vty_init(master); memory_init(); + vrf_init(); access_list_init(); pim_init(); -- cgit v1.2.3