diff options
author | Peter Szilagyi <peszilagyi@gmail.com> | 2011-10-01 17:11:45 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2012-02-14 03:06:00 +0400 |
commit | 7fd6cd819ff98f0580b745ba637990df9c20ef0f (patch) | |
tree | c95fc6bc290d170cd14a5962609df5baf577999d /isisd/isis_circuit.h | |
parent | 4c0cf00afc4340a429a9c4830f638b4593d7c3af (diff) |
isisd: fix circuit state machine
isisd has a so-called circuit state machine that takes care about
the interface state changes, such as initializing, down, up. When
an interface was brought down by a link failure, the interface
information was deleted and set to NULL. When the link was restored
later, the interface was looked up by the old pointer, but since it
was cleared, it was never found again, resulting in an interface
never entering the up state again.
Also, the program regularly crashed because of a deleted pointer in
the same context which was later accessed without any further
checking.
Signed-off-by: Fritz Reichmann <fritz@reichmann.nl>
Diffstat (limited to 'isisd/isis_circuit.h')
-rw-r--r-- | isisd/isis_circuit.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/isisd/isis_circuit.h b/isisd/isis_circuit.h index a7e719f6..f32d1dda 100644 --- a/isisd/isis_circuit.h +++ b/isisd/isis_circuit.h @@ -65,6 +65,7 @@ struct isis_p2p_info struct isis_circuit { int state; + int connected; u_char circuit_id; /* l1/l2 p2p/bcast CircuitID */ struct isis_area *area; /* back pointer to the area */ struct interface *interface; /* interface info from z */ |