diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2017-07-07 17:23:30 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-07-11 13:48:20 +0200 |
| commit | 49dd8e3758979254e74b8bf3480ea8a607f084b8 (patch) | |
| tree | 5fe7dc765b9d054e4b965d1c2ae120aa02a27e70 /ospf6d/ospf6_spf.c | |
| parent | 736ac221d1e89f3f35703d5175057404de62b50b (diff) | |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ospf6d/ospf6_spf.c b/ospf6d/ospf6_spf.c index 0b8a5e4767..93f46951b9 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) |
