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_interface.c | |
parent | lib: table: use hash for exact-match lookups (diff) | |
download | frr-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_interface.c')
-rw-r--r-- | ospf6d/ospf6_interface.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index e91c24984..bff320008 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -993,8 +993,7 @@ ospf6_interface_show (struct vty *vty, struct interface *ifp) oi->lsupdate_list->count, duration, (oi->thread_send_lsupdate ? "on" : "off"), VNL); - for (lsa = ospf6_lsdb_head (oi->lsupdate_list); lsa; - lsa = ospf6_lsdb_next (lsa)) + for (ALL_LSDB(oi->lsupdate_list, lsa)) vty_out (vty, " %s%s", lsa->name, VNL); timerclear (&res); @@ -1005,8 +1004,7 @@ ospf6_interface_show (struct vty *vty, struct interface *ifp) oi->lsack_list->count, duration, (oi->thread_send_lsack ? "on" : "off"), VNL); - for (lsa = ospf6_lsdb_head (oi->lsack_list); lsa; - lsa = ospf6_lsdb_next (lsa)) + for (ALL_LSDB(oi->lsack_list, lsa)) vty_out (vty, " %s%s", lsa->name, VNL); ospf6_bfd_show_info(vty, oi->bfd_info, 1); return 0; |