summaryrefslogtreecommitdiff
path: root/isisd/isis_circuit.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2020-10-08 19:23:08 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2020-10-08 23:14:54 +0300
commit0bcdb96bb183bed8d9145a3586a2193b4b1364b4 (patch)
tree8111d059f77f0bcf93c4da1de29ba306e338ec98 /isisd/isis_circuit.h
parent733c4db58726a54ac0fe46b1a18def9dbe133cbc (diff)
isisd: fix incorrect vrf lookups
Lookup in C_STATE_NA must be made before the new circuit creation, or it will be leaked if the isis instance is not found. All other lookups are unnecessary - we just need to remember the previously used instance. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'isisd/isis_circuit.h')
-rw-r--r--isisd/isis_circuit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/isisd/isis_circuit.h b/isisd/isis_circuit.h
index 5766d1962f..ec5d738ce6 100644
--- a/isisd/isis_circuit.h
+++ b/isisd/isis_circuit.h
@@ -79,6 +79,7 @@ struct isis_circuit_arg {
struct isis_circuit {
int state;
uint8_t circuit_id; /* l1/l2 bcast CircuitID */
+ struct isis *isis;
struct isis_area *area; /* back pointer to the area */
struct interface *interface; /* interface info from z */
int fd; /* IS-IS l1/2 socket */