diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-11-05 23:32:09 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-11-05 23:32:09 +0000 |
| commit | d8d2fdb2f5559f3ad94a18578ded01f771af9345 (patch) | |
| tree | d11cf9069698e5bc495ba0cb0be0850c496fe73d /src/lib/cross.cc | |
| parent | e8a6e330570b817c6c5fdfef0f508f2cbe0168ef (diff) | |
Remove apparently not-required network_interfaces().
Diffstat (limited to 'src/lib/cross.cc')
| -rw-r--r-- | src/lib/cross.cc | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/lib/cross.cc b/src/lib/cross.cc index 45c38da2b..41051ee2e 100644 --- a/src/lib/cross.cc +++ b/src/lib/cross.cc @@ -269,28 +269,3 @@ openssl_path () #endif } - -list<string> -network_interfaces () -{ - list<string> interfaces; - -#ifdef DCPOMATIC_POSIX - struct ifaddrs* addresses = 0; - - getifaddrs (&addresses); - - for (struct ifaddrs* i = addresses; i; i = i->ifa_next) { - if (i->ifa_addr->sa_family == AF_INET) { - void* p = &((struct sockaddr_in *) i->ifa_addr)->sin_addr; - char b[INET_ADDRSTRLEN]; - inet_ntop (AF_INET, p, b, INET_ADDRSTRLEN); - interfaces.push_back (b); - } - } - - freeifaddrs (addresses); -#endif - - return interfaces; -} |
