diff options
author | William A. Kennington III <wak@google.com> | 2018-11-19 18:20:39 -0800 |
---|---|---|
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | 2018-11-26 16:48:00 +0000 |
commit | aab202384d0b68ffcc9437c45d29d21380388483 (patch) | |
tree | 9ae08e33a975de769ef0a71dbcd78ff25d02182f /transporthandler.hpp | |
parent | 39f94ef8f2a49709b2743a444acd36ea2d871fe3 (diff) | |
download | phosphor-host-ipmid-aab202384d0b68ffcc9437c45d29d21380388483.tar.gz phosphor-host-ipmid-aab202384d0b68ffcc9437c45d29d21380388483.zip |
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>
Diffstat (limited to 'transporthandler.hpp')
-rw-r--r-- | transporthandler.hpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/transporthandler.hpp b/transporthandler.hpp index d08fef2..f27355f 100644 --- a/transporthandler.hpp +++ b/transporthandler.hpp @@ -18,17 +18,17 @@ enum ipmi_transport_return_codes }; // 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, }; |