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 --- isisd/isis_te.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'isisd/isis_te.c') diff --git a/isisd/isis_te.c b/isisd/isis_te.c index dda5781c2..104a0fd4b 100644 --- a/isisd/isis_te.c +++ b/isisd/isis_te.c @@ -1251,7 +1251,7 @@ DEFUN (show_isis_mpls_te_interface, /* Show All Interfaces. */ if (argc == 4) { - RB_FOREACH (ifp, if_name_head, &vrf->ifaces_by_name) + FOR_ALL_INTERFACES (vrf, ifp) show_mpls_te_sub(vty, ifp); } /* Interface name is specified. */ -- cgit v1.2.3