summaryrefslogtreecommitdiff
path: root/isisd/isis_lsp.c
diff options
context:
space:
mode:
authorpaul <paul>2005-04-10 15:58:10 +0000
committerpaul <paul>2005-04-10 15:58:10 +0000
commita8f03df06c2740a730e80218c13c6a1afd050c4e (patch)
tree9b53a4db49df5d12ad9bf1b2bf1bfebb6ecb813d /isisd/isis_lsp.c
parent57a1477bc7138649a51277cd52616eb05d438187 (diff)
2005-04-10 Paul Jakma <paul@dishone.st>
* Makefile.am: topology should not be a conditional SUBDIR, otherwise make dist breaks. * topology/Makefile.am: remove EXTRA_DIST of files which dont exist in that directory, broke make dist. * isisd.c: (show_isis_generated_topology_cmd) convert LIST_LOOP * isis_lsp.c: (generate_topology_lsps) ditto (build_topology_lsp_data) ditto
Diffstat (limited to 'isisd/isis_lsp.c')
-rw-r--r--isisd/isis_lsp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/isisd/isis_lsp.c b/isisd/isis_lsp.c
index 88d4886b..f59e804b 100644
--- a/isisd/isis_lsp.c
+++ b/isisd/isis_lsp.c
@@ -2295,7 +2295,7 @@ generate_topology_lsps (struct isis_area *area)
struct isis_lsp *lsp;
/* first we find the maximal node */
- LIST_LOOP (area->topology, arc, node)
+ for (ALL_LIST_ELEMENTS_RO (area->topology, node, arc))
{
if (arc->from_node > max)
max = arc->from_node;
@@ -2355,7 +2355,7 @@ void
build_topology_lsp_data (struct isis_lsp *lsp, struct isis_area *area,
int lsp_top_num)
{
- struct listnode *node;
+ struct listnode *node, *nnode;
struct arc *arc;
u_char *tlv_ptr;
struct is_neigh *is_neigh;
@@ -2399,7 +2399,7 @@ build_topology_lsp_data (struct isis_lsp *lsp, struct isis_area *area,
}
/* addding is reachabilities */
- LIST_LOOP (area->topology, arc, node)
+ for (ALL_LIST_ELEMENTS (area->topology, node, nnode, arc))
{
if ((arc->from_node == lsp_top_num) || (arc->to_node == lsp_top_num))
{