transporthandler: LanParam enum -> enum class
We should be using enum classes instead of enums to avoid poluting the
global scope.
Tested:
Built and run through unit tests.
Change-Id: Iec72f04b5cbf91814d0055c670bcc509eb30a821
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/transporthandler.hpp b/transporthandler.hpp
index d08fef2..f27355f 100644
--- a/transporthandler.hpp
+++ b/transporthandler.hpp
@@ -18,17 +18,17 @@
};
// Parameters
-enum LanParam : uint8_t
+enum class LanParam : uint8_t
{
- LAN_PARM_INPROGRESS = 0,
- LAN_PARM_AUTHSUPPORT = 1,
- LAN_PARM_AUTHENABLES = 2,
- LAN_PARM_IP = 3,
- LAN_PARM_IPSRC = 4,
- LAN_PARM_MAC = 5,
- LAN_PARM_SUBNET = 6,
- LAN_PARM_GATEWAY = 12,
- LAN_PARM_VLAN = 20,
+ INPROGRESS = 0,
+ AUTHSUPPORT = 1,
+ AUTHENABLES = 2,
+ IP = 3,
+ IPSRC = 4,
+ MAC = 5,
+ SUBNET = 6,
+ GATEWAY = 12,
+ VLAN = 20,
CIPHER_SUITE_COUNT = 22,
CIPHER_SUITE_ENTRIES = 23,
};