diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-01-11 13:38:19 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-01-31 09:20:46 -0500 | 
| commit | 161e9ab7e262f1495af3db1669518843ed1b7d73 (patch) | |
| tree | 510f5fbec078b6ab42cec85cbb5377d05329448d /zebra/router-id.c | |
| parent | 3801e7646c73b4b0122ea02eb35e8d39c3796c95 (diff) | |
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 c500f79a6c..2775383eb3 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));  }  | 
