diff --git a/gmlc/netif/NetIF.hpp b/gmlc/netif/NetIF.hpp index ef1f3df1..47e3f8f2 100644 --- a/gmlc/netif/NetIF.hpp +++ b/gmlc/netif/NetIF.hpp @@ -223,7 +223,7 @@ namespace netif { * AF_UNSPEC (both) * @return a list of addresses as text */ - std::vector getInterfaceAddresses(int family) + inline std::vector getInterfaceAddresses(int family) { std::vector result_list; @@ -266,7 +266,7 @@ namespace netif { * returns a list of all IPv4 addresses associated with network interfaces on the system. * @return a list of IPv4 addresses as text */ - std::vector getInterfaceAddressesV4() + inline std::vector getInterfaceAddressesV4() { return getInterfaceAddresses(AF_INET); } @@ -275,7 +275,7 @@ namespace netif { * returns a list of all IPv6 addresses associated with network interfaces on the system. * @return a list of IPv6 addresses as text */ - std::vector getInterfaceAddressesV6() + inline std::vector getInterfaceAddressesV6() { return getInterfaceAddresses(AF_INET6); } @@ -285,7 +285,7 @@ namespace netif { * system. * @return a list of IPv4 and IPv6 addresses as text */ - std::vector getInterfaceAddressesAll() + inline std::vector getInterfaceAddressesAll() { return getInterfaceAddresses(AF_UNSPEC); }