ripd: Fix zclient cleanup on shutdown

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-06-30 10:32:26 -04:00
parent 7feb9237dc
commit a2f9eb822f
3 changed files with 10 additions and 0 deletions

View file

@ -100,6 +100,8 @@ sigint (void)
if (! retain_mode)
rip_clean ();
rip_zclient_stop ();
exit (0);
}

View file

@ -711,3 +711,10 @@ rip_zclient_init (struct thread_master *master)
install_element (RIP_NODE, &rip_default_information_originate_cmd);
install_element (RIP_NODE, &no_rip_default_information_originate_cmd);
}
void
rip_zclient_stop (void)
{
zclient_stop (zclient);
zclient_free (zclient);
}

View file

@ -388,6 +388,7 @@ extern void rip_if_down_all (void);
extern void rip_route_map_init (void);
extern void rip_route_map_reset (void);
extern void rip_zclient_init(struct thread_master *);
extern void rip_zclient_stop(void);
extern void rip_zclient_reset (void);
extern void rip_offset_init (void);
extern int if_check_address (struct in_addr addr);