From 2eb27eecf011a06c01e58a735d8bf087d7519979 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sun, 6 Aug 2017 08:08:39 +0200 Subject: zebra: start detangling rtadv & irdp Replace some cross-dependencies with hooks & move bits to where they belong. Signed-off-by: David Lamparter --- zebra/irdp_main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'zebra/irdp_main.c') diff --git a/zebra/irdp_main.c b/zebra/irdp_main.c index 6220c9d81..e463608af 100644 --- a/zebra/irdp_main.c +++ b/zebra/irdp_main.c @@ -301,7 +301,7 @@ void process_solicit(struct interface *ifp) &irdp->t_advertise); } -void irdp_finish() +static int irdp_finish(void) { struct vrf *vrf; struct listnode *node, *nnode; @@ -328,4 +328,11 @@ void irdp_finish() } } +void irdp_init(void) +{ + irdp_if_init(); + + hook_register(frr_early_fini, irdp_finish); +} + #endif /* HAVE_IRDP */ -- cgit v1.2.3