summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_spf.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-07-07 17:23:30 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-07-11 13:48:20 +0200
commit49dd8e3758979254e74b8bf3480ea8a607f084b8 (patch)
tree5fe7dc765b9d054e4b965d1c2ae120aa02a27e70 /ospf6d/ospf6_spf.c
parentlib: table: use hash for exact-match lookups (diff)
downloadfrr-49dd8e3758979254e74b8bf3480ea8a607f084b8.tar.xz
frr-49dd8e3758979254e74b8bf3480ea8a607f084b8.zip
ospf6d: use macro for LSDB walks
... to make it easier to refactor all of the iteration uses. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_spf.c')
-rw-r--r--ospf6d/ospf6_spf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ospf6d/ospf6_spf.c b/ospf6d/ospf6_spf.c
index 0b8a5e476..93f46951b 100644
--- a/ospf6d/ospf6_spf.c
+++ b/ospf6d/ospf6_spf.c
@@ -296,8 +296,7 @@ ospf6_nexthop_calc (struct ospf6_vertex *w, struct ospf6_vertex *v,
ROUTER_LSDESC_GET_NBR_ROUTERID (lsdesc));
i = 0;
- for (lsa = ospf6_lsdb_type_router_head (type, adv_router, oi->lsdb); lsa;
- lsa = ospf6_lsdb_type_router_next (type, adv_router, lsa))
+ for (ALL_LSDB_TYPED_ADVRTR(oi->lsdb, type, adv_router, lsa))
{
if (VERTEX_IS_TYPE (ROUTER, v) &&
htonl (ROUTER_LSDESC_GET_NBR_IFID (lsdesc)) != lsa->header->id)