From cc6cdbf1d4111b0f29cc3dd37c61317a7abff58f Mon Sep 17 00:00:00 2001 From: Ratan Gupta Date: Fri, 1 Sep 2017 23:06:25 +0530 Subject: GetLan: Support for get/set of ipsrc parameter Change-Id: Id9c52bb0963c5924f80f9e273b53ed5556b16a2c Signed-off-by: Ratan Gupta --- types.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'types.hpp') diff --git a/types.hpp b/types.hpp index 5b943f4..9c2237f 100644 --- a/types.hpp +++ b/types.hpp @@ -26,6 +26,8 @@ using PropertyMap = std::map; using ObjectTree = std::map>>; +using InterfaceList = std::vector; + namespace sensor { @@ -110,10 +112,19 @@ constexpr auto DEFAULT_ADDRESS = "0.0.0.0"; constexpr auto MAC_ADDRESS_SIZE_BYTE = 6; constexpr auto VLAN_SIZE_BYTE = 2; +constexpr auto IPSRC_SIZE_BYTE = 1; constexpr auto BITS_32 = 32; constexpr auto MASK_32_BIT = 0xFFFFFFFF; constexpr auto VLAN_ID_MASK = 0x00000FFF; constexpr auto VLAN_ENABLE_MASK = 0x8000; +enum class IPOrigin: uint8_t +{ + UNSPECIFIED = 0, + STATIC = 1, + DHCP = 2, +}; + + }//namespace network }//namespace ipmi -- cgit v1.2.1