]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zserv.h
Merge pull request #3234 from donaldsharp/bsd_install_failure
[mirror_frr.git] / zebra / zserv.h
index 78cc200fa8c4576aff24a4669ebba1e1143e44ac..aaefd78eeab76bb3b1b897595c3cbeaf3edd0f9d 100644 (file)
@@ -73,6 +73,9 @@ struct zserv {
        struct thread *t_read;
        struct thread *t_write;
 
+       /* Threads for the main pthread */
+       struct thread *t_cleanup;
+
        /* default routing table this client munges */
        int rtm_table;
 
@@ -232,6 +235,18 @@ extern int zserv_send_message(struct zserv *client, struct stream *msg);
  */
 extern struct zserv *zserv_find_client(uint8_t proto, unsigned short instance);
 
+
+/*
+ * Close a client.
+ *
+ * Kills a client's thread, removes the client from the client list and cleans
+ * up its resources.
+ *
+ * client
+ *    the client to close
+ */
+extern void zserv_close_client(struct zserv *client);
+
 #if defined(HANDLE_ZAPI_FUZZING)
 extern void zserv_read_file(char *input);
 #endif