mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 17:01:49 +00:00
commit
1d0ca3ebf3
@ -400,4 +400,5 @@ void
|
||||
babel_zebra_close_connexion(void)
|
||||
{
|
||||
zclient_stop(zclient);
|
||||
zclient_free(zclient);
|
||||
}
|
||||
|
@ -267,8 +267,10 @@ eigrp_finish (struct eigrp *eigrp)
|
||||
&& (listcount(eigrp_om->eigrp) == 0))
|
||||
{
|
||||
if (zclient)
|
||||
zclient_free (zclient);
|
||||
|
||||
{
|
||||
zclient_stop (zclient);
|
||||
zclient_free (zclient);
|
||||
}
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
@ -101,6 +101,7 @@ void sigusr1(void);
|
||||
static __attribute__((__noreturn__)) void
|
||||
terminate (int i)
|
||||
{
|
||||
isis_zebra_stop ();
|
||||
exit (i);
|
||||
}
|
||||
|
||||
|
@ -720,3 +720,10 @@ isis_zebra_init (struct thread_master *master)
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
void
|
||||
isis_zebra_stop (void)
|
||||
{
|
||||
zclient_stop (zclient);
|
||||
zclient_free (zclient);
|
||||
}
|
||||
|
@ -25,6 +25,8 @@
|
||||
extern struct zclient *zclient;
|
||||
|
||||
void isis_zebra_init(struct thread_master *);
|
||||
void isis_zebra_stop(void);
|
||||
|
||||
void isis_zebra_route_update (struct prefix *prefix,
|
||||
struct isis_route_info *route_info);
|
||||
int isis_distribute_list_update (int routetype);
|
||||
|
@ -1320,7 +1320,7 @@ thread_fetch (struct thread_master *m, struct thread *fetch)
|
||||
struct timeval now;
|
||||
struct timeval zerotime = { 0, 0 };
|
||||
struct timeval tv;
|
||||
struct timeval *tw;
|
||||
struct timeval *tw = NULL;
|
||||
|
||||
int num = 0;
|
||||
|
||||
|
@ -379,6 +379,7 @@ void nhrp_zebra_init(void)
|
||||
void nhrp_zebra_terminate(void)
|
||||
{
|
||||
zclient_stop(zclient);
|
||||
zclient_free(zclient);
|
||||
route_table_finish(zebra_rib[AFI_IP]);
|
||||
route_table_finish(zebra_rib[AFI_IP6]);
|
||||
}
|
||||
|
@ -110,7 +110,10 @@ ospf6_exit (int status)
|
||||
cmd_terminate ();
|
||||
|
||||
if (zclient)
|
||||
zclient_free (zclient);
|
||||
{
|
||||
zclient_stop (zclient);
|
||||
zclient_free (zclient);
|
||||
}
|
||||
|
||||
if (master)
|
||||
thread_master_free (master);
|
||||
|
@ -497,6 +497,8 @@ ospf_terminate (void)
|
||||
* One or more ospf_finish()'s may have deferred shutdown to a timer
|
||||
* thread
|
||||
*/
|
||||
zclient_stop (zclient);
|
||||
zclient_free (zclient);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -115,6 +115,7 @@ static void zclient_lookup_failed(struct zclient *zlookup)
|
||||
void
|
||||
zclient_lookup_free (void)
|
||||
{
|
||||
zclient_stop (zlookup);
|
||||
zclient_free (zlookup);
|
||||
zlookup = NULL;
|
||||
}
|
||||
|
@ -313,6 +313,8 @@ void pim_init()
|
||||
|
||||
void pim_terminate()
|
||||
{
|
||||
struct zclient *zclient;
|
||||
|
||||
pim_free();
|
||||
|
||||
/* reverse prefix_list_init */
|
||||
@ -321,4 +323,11 @@ void pim_terminate()
|
||||
prefix_list_reset ();
|
||||
|
||||
pim_vrf_terminate ();
|
||||
|
||||
zclient = pim_zebra_zclient_get ();
|
||||
if (zclient)
|
||||
{
|
||||
zclient_stop (zclient);
|
||||
zclient_free (zclient);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -103,6 +103,7 @@ sigint (void)
|
||||
if (! retain_mode)
|
||||
ripng_clean ();
|
||||
|
||||
ripng_zebra_stop ();
|
||||
exit (0);
|
||||
}
|
||||
|
||||
|
@ -557,3 +557,10 @@ zebra_init (struct thread_master *master)
|
||||
install_element (RIPNG_NODE, &ripng_redistribute_type_metric_routemap_cmd);
|
||||
install_element (RIPNG_NODE, &no_ripng_redistribute_type_cmd);
|
||||
}
|
||||
|
||||
void
|
||||
ripng_zebra_stop (void)
|
||||
{
|
||||
zclient_stop (zclient);
|
||||
zclient_free (zclient);
|
||||
}
|
||||
|
@ -353,6 +353,7 @@ extern void ripng_route_map_reset (void);
|
||||
extern void ripng_terminate (void);
|
||||
/* zclient_init() is done by ripng_zebra.c:zebra_init() */
|
||||
extern void zebra_init(struct thread_master *);
|
||||
extern void ripng_zebra_stop (void);
|
||||
extern void ripng_zclient_reset (void);
|
||||
extern void ripng_offset_init (void);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user