struct isis_vertex *vertex;
vertex = XCALLOC (MTYPE_ISIS_VERTEX, sizeof (struct isis_vertex));
- if (vertex == NULL)
- {
- zlog_err ("isis_vertex_new Out of memory!");
- return NULL;
- }
vertex->type = vtype;
switch (vtype)
v = listgetdata (node);
if (v->d_N > vertex->d_N)
{
- list_add_node_prev (spftree->tents, node, vertex);
+ listnode_add_before (spftree->tents, node, vertex);
break;
}
else if (v->d_N == vertex->d_N && v->type > vertex->type)
{
/* Tie break, add according to type */
- list_add_node_prev (spftree->tents, node, vertex);
+ listnode_add_before (spftree->tents, node, vertex);
break;
}
}
{
zlog_warn ("ISIS-Spf: No lsp (%p) found from root "
"to L%d DR %s on %s (ID %d)",
- lsp, level, rawlspid_print (lsp_id),
- circuit->interface->name, circuit->circuit_id);
+ (void *)lsp, level, rawlspid_print (lsp_id),
+ circuit->interface->name, circuit->circuit_id);
continue;
}
isis_spf_process_pseudo_lsp (spftree, lsp,
if (isis->debugs & DEBUG_SPF_EVENTS)
zlog_debug ("ISIS-Spf (%s) L%d SPF scheduled %lld sec from now",
- area->area_tag, level, (long long)(area->min_spf_interval[level-1] - diff));
+ area->area_tag, level,
+ (long long)(area->min_spf_interval[level-1] - diff));
spftree->pending = 1;
install_element (VIEW_NODE, &show_isis_topology_cmd);
install_element (VIEW_NODE, &show_isis_topology_l1_cmd);
install_element (VIEW_NODE, &show_isis_topology_l2_cmd);
-
- install_element (ENABLE_NODE, &show_isis_topology_cmd);
- install_element (ENABLE_NODE, &show_isis_topology_l1_cmd);
- install_element (ENABLE_NODE, &show_isis_topology_l2_cmd);
}