diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-10-06 20:25:58 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-10-10 14:05:46 +0200 |
commit | 451fda4f9a2fadc24328e640077780a00ffcdac2 (patch) | |
tree | e5cb1b11502a6c525698d188ccc94adfea4515a1 /pimd/pim_nht.c | |
parent | ospf6d: Add missing vrf lookup (diff) | |
download | frr-451fda4f9a2fadc24328e640077780a00ffcdac2.tar.xz frr-451fda4f9a2fadc24328e640077780a00ffcdac2.zip |
*: 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 <renato@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_nht.c')
-rw-r--r-- | pimd/pim_nht.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_nht.c b/pimd/pim_nht.c index 78b160f6a..8f9058d99 100644 --- a/pimd/pim_nht.c +++ b/pimd/pim_nht.c @@ -415,7 +415,7 @@ static int pim_update_upstream_nh(struct pim_instance *pim, hash_walk(pnc->upstream_hash, pim_update_upstream_nh_helper, pim); - RB_FOREACH (ifp, if_name_head, &pim->vrf->ifaces_by_name) + FOR_ALL_INTERFACES (pim->vrf, ifp) if (ifp->info) { struct pim_interface *pim_ifp = ifp->info; struct pim_iface_upstream_switch *us; |