summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-10-18 17:13:03 +0200
committerTom Gundersen <teg@jklm.no>2015-10-22 17:19:54 +0200
commitc93578f54b02a162d48590b7b61191cae96e9c2b (patch)
tree33fc89626d03f15fbcce9cd9d48982d5d0f0f4d1
parent9b4d33193af554628c369681404b0c3809a7d6db (diff)
sd-ndisc: clean up state enum
There is no need to assign valuse to the states. Also add _INVALID and _MAX, even though these are not used, it keeps it consistent.
-rw-r--r--src/libsystemd-network/sd-ndisc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libsystemd-network/sd-ndisc.c b/src/libsystemd-network/sd-ndisc.c
index 92c872e166..7921eb71a2 100644
--- a/src/libsystemd-network/sd-ndisc.c
+++ b/src/libsystemd-network/sd-ndisc.c
@@ -35,9 +35,11 @@
#define NDISC_MAX_ROUTER_SOLICITATIONS 3
enum NDiscState {
- NDISC_STATE_IDLE = 0,
- NDISC_STATE_SOLICITATION_SENT = 10,
- NDISC_STATE_ADVERTISMENT_LISTEN = 11,
+ NDISC_STATE_IDLE,
+ NDISC_STATE_SOLICITATION_SENT,
+ NDISC_STATE_ADVERTISMENT_LISTEN,
+ _NDISC_STATE_MAX,
+ _NDISC_STATE_INVALID = -1,
};
#define IP6_MIN_MTU (unsigned)1280