From 451fda4f9a2fadc24328e640077780a00ffcdac2 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Fri, 6 Oct 2017 15:25:58 -0300 Subject: *: use the FOR_ALL_INTERFACES abstraction from babeld This improves code readability and also future-proofs our codebase against new changes in the data structure used to store interfaces. The FOR_ALL_INTERFACES_ADDRESSES macro was also moved to lib/ but for now only babeld is using it. Signed-off-by: Renato Westphal --- eigrpd/eigrp_network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eigrpd/eigrp_network.c') diff --git a/eigrpd/eigrp_network.c b/eigrpd/eigrp_network.c index 56b63597e..56327f120 100644 --- a/eigrpd/eigrp_network.c +++ b/eigrpd/eigrp_network.c @@ -251,7 +251,7 @@ int eigrp_network_set(struct eigrp *eigrp, struct prefix *p) eigrp_router_id_update(eigrp); /* Run network config now. */ /* Get target interface. */ - RB_FOREACH (ifp, if_name_head, &vrf->ifaces_by_name) { + FOR_ALL_INTERFACES (vrf, ifp) { zlog_debug("Setting up %s", ifp->name); eigrp_network_run_interface(eigrp, p, ifp); } -- cgit v1.2.3