diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-01-11 13:31:46 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-01-31 09:20:46 -0500 | 
| commit | 3801e7646c73b4b0122ea02eb35e8d39c3796c95 (patch) | |
| tree | 1cc94938f78745afc8f83b506efc93d6eb9a4f49 /zebra/label_manager.c | |
| parent | 19b336d343464047eb959d1a3a2b0e08c1461c1f (diff) | |
zebra: Move the master thread handler to the zrouter structure
The master thread handler is really part of the zrouter structure.
So let's move it over to that.  Eventually zserv.h will only be
used for zapi messages.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/label_manager.c')
| -rw-r--r-- | zebra/label_manager.c | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/zebra/label_manager.c b/zebra/label_manager.c index 13472059a0..1b17845e41 100644 --- a/zebra/label_manager.c +++ b/zebra/label_manager.c @@ -34,7 +34,8 @@  #include "lib/zclient.h"  #include "lib/libfrr.h" -#include "zebra/zserv.h" +//#include "zebra/zserv.h" +#include "zebra/zebra_router.h"  #include "zebra/label_manager.h"  #include "zebra/zebra_errors.h" @@ -294,7 +295,7 @@ static int lm_zclient_connect(struct thread *t)  	if (zclient_socket_connect(zclient) < 0) {  		flog_err(EC_ZEBRA_LM_CLIENT_CONNECTION_FAILED,  			 "Error connecting synchronous zclient!"); -		thread_add_timer(zebrad.master, lm_zclient_connect, zclient, +		thread_add_timer(zrouter.master, lm_zclient_connect, zclient,  				 CONNECTION_DELAY, &zclient->t_connect);  		return -1;  	} @@ -318,7 +319,7 @@ static void lm_zclient_init(char *lm_zserv_path)  				 lm_zserv_path);  	/* Set default values. */ -	zclient = zclient_new(zebrad.master, &zclient_options_default); +	zclient = zclient_new(zrouter.master, &zclient_options_default);  	zclient->privs = &zserv_privs;  	zclient->sock = -1;  	zclient->t_connect = NULL;  | 
