21 #ifndef INCLUDE_OLA_NETWORK_NETWORKUTILS_H_
22 #define INCLUDE_OLA_NETWORK_NETWORKUTILS_H_
24 #include <ola/network/Interface.h>
39 uint8_t NetworkToHost(uint8_t value);
44 uint16_t NetworkToHost(uint16_t value);
49 uint32_t NetworkToHost(uint32_t value);
50 int8_t NetworkToHost(int8_t value);
55 int16_t NetworkToHost(int16_t value);
60 int32_t NetworkToHost(int32_t value);
61 uint8_t HostToNetwork(uint8_t value);
66 uint16_t HostToNetwork(uint16_t value);
71 uint32_t HostToNetwork(uint32_t value);
72 int8_t HostToNetwork(int8_t value);
73 int16_t HostToNetwork(int16_t value);
74 int32_t HostToNetwork(int32_t value);
76 uint8_t HostToLittleEndian(uint8_t value);
77 uint16_t HostToLittleEndian(uint16_t value);
78 uint32_t HostToLittleEndian(uint32_t value);
79 int8_t HostToLittleEndian(int8_t value);
80 int16_t HostToLittleEndian(int16_t value);
81 int32_t HostToLittleEndian(int32_t value);
82 uint8_t LittleEndianToHost(uint8_t value);
83 uint16_t LittleEndianToHost(uint16_t value);
84 uint32_t LittleEndianToHost(uint32_t value);
85 int8_t LittleEndianToHost(int8_t value);
86 int16_t LittleEndianToHost(int16_t value);
87 int32_t LittleEndianToHost(int32_t value);
131 bool NameServers(std::vector<ola::network::IPV4Address> *name_servers);
150 #endif // INCLUDE_OLA_NETWORK_NETWORKUTILS_H_