summaryrefslogtreecommitdiffstats
path: root/isisd/isis_csm.h
diff options
context:
space:
mode:
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