26 static size_t getMTU(
const std::string &interfaceName)
noexcept;
35 static result<std::vector<ip::address>>
getInterfaceIPs(
const std::string &interfaceName,
bool v6=
false)
noexcept;
43 static inline result<boost::tuple<std::string, u_int16_t, ip::address>> getInterfaceAndMTU(
const std::string &ipaddr)
45 return getInterfaceAndMTU(ip::make_address(ipaddr));
52 static result<boost::tuple<std::string, u_int16_t, ip::address>> getInterfaceAndMTU(
const ip::address &addr);
55 static result<int> getSocketOutstandingBytes(
int sockfd)
noexcept;
61 static bool isNonRoutable(
const std::string &addr_str)
noexcept;
66 static bool isNonRoutable(
const std::vector<std::string> &addrs)
noexcept;