From 4cebdb9bb858674980d2a04304c3197afd665f28 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Wed, 15 Apr 2020 08:34:03 -0400 Subject: zebra,ldpd: use zapi client session id in LM apis Use the zapi client session id in the label manager apis; use the client struct directly in some code. Assign a session id to ldpd's sync LM zapi session. Signed-off-by: Mark Stapp --- ldpd/lde.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ldpd/lde.c') diff --git a/ldpd/lde.c b/ldpd/lde.c index ae883078d..2223e32f8 100644 --- a/ldpd/lde.c +++ b/ldpd/lde.c @@ -1756,6 +1756,7 @@ static void zclient_sync_init(unsigned short instance) zclient_sync->sock = -1; zclient_sync->redist_default = ZEBRA_ROUTE_LDP; zclient_sync->instance = instance; + zclient_sync->session_id = 1; /* Distinguish from main session */ zclient_sync->privs = &lde_privs; while (zclient_socket_connect(zclient_sync) < 0) { -- cgit v1.2.3