forked from Mirror/frr
ripd: Fix zclient cleanup on shutdown
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
7feb9237dc
commit
a2f9eb822f
|
@ -100,6 +100,8 @@ sigint (void)
|
|||
if (! retain_mode)
|
||||
rip_clean ();
|
||||
|
||||
rip_zclient_stop ();
|
||||
|
||||
exit (0);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue