mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-01 05:14:54 +00:00
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)
|
if (! retain_mode)
|
||||||
rip_clean ();
|
rip_clean ();
|
||||||
|
|
||||||
|
rip_zclient_stop ();
|
||||||
|
|
||||||
exit (0);
|
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, &rip_default_information_originate_cmd);
|
||||||
install_element (RIP_NODE, &no_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_init (void);
|
||||||
extern void rip_route_map_reset (void);
|
extern void rip_route_map_reset (void);
|
||||||
extern void rip_zclient_init(struct thread_master *);
|
extern void rip_zclient_init(struct thread_master *);
|
||||||
|
extern void rip_zclient_stop(void);
|
||||||
extern void rip_zclient_reset (void);
|
extern void rip_zclient_reset (void);
|
||||||
extern void rip_offset_init (void);
|
extern void rip_offset_init (void);
|
||||||
extern int if_check_address (struct in_addr addr);
|
extern int if_check_address (struct in_addr addr);
|
||||||
|
Loading…
Reference in New Issue
Block a user