summaryrefslogtreecommitdiff
path: root/zebra/zserv.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2020-06-08 16:38:36 -0400
committerMark Stapp <mjs@voltanet.io>2020-06-10 15:05:25 -0400
commitc8b27f2ad98f71842e506b8ccff403971769d8cb (patch)
treed94ecb6922ff738e8e975b9f894f157566a93484 /zebra/zserv.c
parent478ff17be6ea9512670bd9cbbeffc9efd693a5ea (diff)
sharpd,zebra: unicast support for zapi messages
Distinguish between unicast and broadcast opaque messages in zebra handler code. Add cli and internal api changes to have sharpd send unicast opaque messages. Add opaque cli commands to the sharp user doc. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zserv.c')
-rw-r--r--zebra/zserv.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c
index cb863b258c..99a85fd2ce 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -811,14 +811,6 @@ struct zserv *zserv_acquire_client(uint8_t proto, unsigned short instance,
*/
void zserv_release_client(struct zserv *client)
{
- bool cleanup_p = false;
- const char *proto_str;
- uint16_t instance;
-
- /* Capture some info for debugging */
- proto_str = zebra_route_string(client->proto);
- instance = client->instance;
-
/*
* Once we've decremented the client object's refcount, it's possible
* for it to be deleted as soon as we release the lock, so we won't
@@ -833,13 +825,10 @@ void zserv_release_client(struct zserv *client)
* session is closed, schedule cleanup on the zebra
* main pthread.
*/
- if (client->is_closed) {
+ if (client->is_closed)
thread_add_event(zrouter.master,
zserv_handle_client_fail,
client, 0, &client->t_cleanup);
-
- cleanup_p = true;
- }
}
}
@@ -847,10 +836,6 @@ void zserv_release_client(struct zserv *client)
* Cleanup must take place on the zebra main pthread, so we've
* scheduled an event.
*/
- if (IS_ZEBRA_DEBUG_EVENT)
- zlog_debug("%s: %s clean-up for client '%s'[%u]",
- __func__, (cleanup_p ? "scheduled" : "NO"),
- proto_str, instance);
}
/*