diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-01-11 19:38:19 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-01-31 15:20:46 +0100 |
commit | 161e9ab7e262f1495af3db1669518843ed1b7d73 (patch) | |
tree | 510f5fbec078b6ab42cec85cbb5377d05329448d /zebra/router-id.c | |
parent | zebra: Move the master thread handler to the zrouter structure (diff) | |
download | frr-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/router-id.c')
-rw-r--r-- | zebra/router-id.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/router-id.c b/zebra/router-id.c index c500f79a6..2775383eb 100644 --- a/zebra/router-id.c +++ b/zebra/router-id.c @@ -38,7 +38,7 @@ #include "rib.h" #include "vrf.h" -#include "zebra/zserv.h" +#include "zebra/zebra_router.h" #include "zebra/zapi_msg.h" #include "zebra/zebra_vrf.h" #include "zebra/router-id.h" @@ -114,7 +114,7 @@ static void router_id_set(struct prefix *p, vrf_id_t vrf_id) router_id_get(&p2, vrf_id); - for (ALL_LIST_ELEMENTS_RO(zebrad.client_list, node, client)) + for (ALL_LIST_ELEMENTS_RO(zrouter.client_list, node, client)) zsend_router_id_update(client, &p2, vrf_id); } @@ -145,7 +145,7 @@ void router_id_add_address(struct connected *ifc) if (prefix_same(&before, &after)) return; - for (ALL_LIST_ELEMENTS_RO(zebrad.client_list, node, client)) + for (ALL_LIST_ELEMENTS_RO(zrouter.client_list, node, client)) zsend_router_id_update(client, &after, zvrf_id(zvrf)); } @@ -177,7 +177,7 @@ void router_id_del_address(struct connected *ifc) if (prefix_same(&before, &after)) return; - for (ALL_LIST_ELEMENTS_RO(zebrad.client_list, node, client)) + for (ALL_LIST_ELEMENTS_RO(zrouter.client_list, node, client)) zsend_router_id_update(client, &after, zvrf_id(zvrf)); } |