From bf094f69758888e3bd555a24e91f3768bffbf31a Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Sun, 22 Apr 2018 16:01:20 -0400 Subject: zebra: clean up zapi organization zserv.c has become something of a dumping ground for everything vaguely related to ZAPI and really needs some love. This change splits out the code fo building and consuming ZAPI messages into a separate source file, leaving the actual session and client lifecycle code in zserv.c. Unfortunately since the #include situation in Zebra has not been paid much attention I was forced to fix the headers in a lot of other source files. This is a net improvement overall though. Signed-off-by: Quentin Young --- zebra/zebra_rnh.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'zebra/zebra_rnh.h') diff --git a/zebra/zebra_rnh.h b/zebra/zebra_rnh.h index f783696c0..4cb84bf70 100644 --- a/zebra/zebra_rnh.h +++ b/zebra/zebra_rnh.h @@ -87,6 +87,12 @@ extern void zebra_evaluate_rnh(vrf_id_t vrfid, int family, int force, extern void zebra_print_rnh_table(vrf_id_t vrfid, int family, struct vty *vty, rnh_type_t); extern char *rnh_str(struct rnh *rnh, char *buf, int size); -extern int zebra_cleanup_rnh_client(vrf_id_t vrf, int family, - struct zserv *client, rnh_type_t type); +/* + * Cleanup any registered nexthops across all VRFs. This is called when closing + * down a connection to a ZAPI client. + * + * client + * the client that is shutting down + */ +extern void zebra_client_cleanup_rnh(struct zserv *client); #endif /*_ZEBRA_RNH_H */ -- cgit v1.2.3