summaryrefslogtreecommitdiffstats
path: root/zebra/main.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-01-11 19:38:19 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-01-31 15:20:46 +0100
commit161e9ab7e262f1495af3db1669518843ed1b7d73 (patch)
tree510f5fbec078b6ab42cec85cbb5377d05329448d /zebra/main.c
parentzebra: Move the master thread handler to the zrouter structure (diff)
downloadfrr-161e9ab7e262f1495af3db1669518843ed1b7d73.tar.xz
frr-161e9ab7e262f1495af3db1669518843ed1b7d73.zip
zebra: Move client_list to the zebra_router data structure
The client_list should be owned by the zebra_router data structure as that it is part of global state information. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/main.c')
-rw-r--r--zebra/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/main.c b/zebra/main.c
index 16a5ad53c..339bb6a91 100644
--- a/zebra/main.c
+++ b/zebra/main.c
@@ -156,10 +156,10 @@ static void sigint(void)
zebra_dplane_pre_finish();
- for (ALL_LIST_ELEMENTS(zebrad.client_list, ln, nn, client))
+ for (ALL_LIST_ELEMENTS(zrouter.client_list, ln, nn, client))
zserv_close_client(client);
- list_delete_all_node(zebrad.client_list);
+ list_delete_all_node(zrouter.client_list);
zebra_ptm_finish();
if (retain_mode)
@@ -179,7 +179,7 @@ static void sigint(void)
prefix_list_reset();
route_map_finish();
- list_delete(&zebrad.client_list);
+ list_delete(&zrouter.client_list);
/* Indicate that all new dplane work has been enqueued. When that
* work is complete, the dataplane will enqueue an event