21 #ifndef INCLUDE_OLA_NETWORK_INTERFACE_H_
22 #define INCLUDE_OLA_NETWORK_INTERFACE_H_
27 #include <net/if_arp.h>
30 #define ARPHRD_VOID 0xFFFF
47 enum { DEFAULT_INDEX = -1 };
56 int32_t index = DEFAULT_INDEX,
57 uint16_t type = ARPHRD_VOID);
81 void SetName(
const std::string &name) { m_name = name; }
83 bool SetAddress(
const std::string &ip_address);
85 m_ip_address = ip_address;
90 m_broadcast_address = broadcast_address;
98 void SetHardwareAddress(
const MACAddress &mac_address) {
99 m_hw_address = mac_address;
127 return (if1.index < if2.index);
132 #endif // INCLUDE_OLA_NETWORK_INTERFACE_H_