+2004-09-10 LIU Xin <lx at ns.6test.edu.cn>
+
+ * isis_pdu.c: Goto out only if no adjacency exist.
+ * isis_circuit.c: Don't crash while executing "isis circuit-type"
+ command if circuit exists, but circuit->area is still NULL.
+ * isis_lsp.c: Set pointers to thread to NULL before initiating new
+ thread in lsp_l1_refresh_pseudo(), lsp_l2_refresh_pseudo() and
+ lsp_tick() functions.
+
2004-05-19 Laurent Rabret <laurent.rabret at francetelecom.com>
* isis_constants.h: change the ISIS Hello interval from 1 to 10 (cisco's
return CMD_WARNING;
}
+ /* XXX what to do when ip_router_isis is not executed */
+ if (circuit->area == NULL)
+ return CMD_WARNING;
+
assert (circuit);
circuit_t = string2circuit_t (argv[0]);
if (!circuit->u.bc.is_dr[0])
return ISIS_ERROR; /* FIXME: purge and such */
+ circuit->u.bc.t_refresh_pseudo_lsp[0] = NULL;
+
retval = lsp_pseudo_regenerate (circuit, 1);
ref_time = circuit->area->lsp_refresh[0] > MAX_LSP_GEN_INTERVAL ?
if (!circuit->u.bc.is_dr[1])
return ISIS_ERROR; /* FIXME: purge and such */
+ circuit->u.bc.t_refresh_pseudo_lsp[1] = NULL;
+
retval = lsp_pseudo_regenerate (circuit, 2);
ref_time = circuit->area->lsp_refresh[1] > MAX_LSP_GEN_INTERVAL ?
area = THREAD_ARG (thread);
assert (area);
+ area->t_tick = NULL;
THREAD_TIMER_ON (master, area->t_tick, lsp_tick, area, 1);
/*
*/
adj = isis_new_adj (hdr.source_id, ssnpa, level, circuit);
if (adj == NULL)
- retval = ISIS_ERROR;
- goto out;
+ {
+ retval = ISIS_ERROR;
+ goto out;
+ }
adj->level = level;
isis_adj_state_change (adj, ISIS_ADJ_INITIALIZING, NULL);