summaryrefslogtreecommitdiffstats
path: root/isisd/isis_csm.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-04-22 20:46:53 +0200
committerDonald Sharp <sharpd@nvidia.com>2021-04-22 21:17:20 +0200
commit61cd5761a38b20a0e0ae44071f46bc36fbdbe611 (patch)
treedf44f6df9c8ce636ab99abc35e6298d53c653dbb /isisd/isis_csm.h
parentMerge pull request #8536 from idryzhov/bfd-enabled (diff)
downloadfrr-61cd5761a38b20a0e0ae44071f46bc36fbdbe611.tar.xz
frr-61cd5761a38b20a0e0ae44071f46bc36fbdbe611.zip
isisd: use an enum for circuit states
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'isisd/isis_csm.h')
-rw-r--r--isisd/isis_csm.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/isisd/isis_csm.h b/isisd/isis_csm.h
index 53a5f9d5d..9da06fb1a 100644
--- a/isisd/isis_csm.h
+++ b/isisd/isis_csm.h
@@ -27,10 +27,12 @@
/*
* Circuit states
*/
-#define C_STATE_NA 0
-#define C_STATE_INIT 1 /* Connected to interface */
-#define C_STATE_CONF 2 /* Configured for ISIS */
-#define C_STATE_UP 3 /* CONN | CONF */
+enum isis_circuit_state {
+ C_STATE_NA,
+ C_STATE_INIT, /* Connected to interface */
+ C_STATE_CONF, /* Configured for ISIS */
+ C_STATE_UP, /* CONN | CONF */
+};
/*
* Circuit events