diff options
author | Donald Sharp <sharpd@nvidia.com> | 2021-04-22 20:46:53 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2021-04-22 21:17:20 +0200 |
commit | 61cd5761a38b20a0e0ae44071f46bc36fbdbe611 (patch) | |
tree | df44f6df9c8ce636ab99abc35e6298d53c653dbb /isisd/isis_csm.h | |
parent | Merge pull request #8536 from idryzhov/bfd-enabled (diff) | |
download | frr-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.h | 10 |
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 |