21 #ifndef INCLUDE_OLA_NETWORK_INTERFACE_H_
22 #define INCLUDE_OLA_NETWORK_INTERFACE_H_
37 enum { DEFAULT_INDEX = -1 };
46 int32_t index = DEFAULT_INDEX,
47 uint16_t type = ARP_VOID_TYPE);
62 static const uint16_t ARP_VOID_TYPE;
63 static const uint16_t ARP_ETHERNET_TYPE;
75 void SetName(
const std::string &name) { m_name = name; }
77 bool SetAddress(
const std::string &ip_address);
79 m_ip_address = ip_address;
84 m_broadcast_address = broadcast_address;
92 void SetHardwareAddress(
const MACAddress &mac_address) {
93 m_hw_address = mac_address;
121 return (if1.index < if2.index);
126 #endif // INCLUDE_OLA_NETWORK_INTERFACE_H_