From 5a85948f8007df45ed2d328034031955c681dd85 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 9 Oct 2001 03:53:38 +0000 Subject: We don't actually use HAVE_FREEIFADDRS, so there's no point in checking whether we have "freeifaddrs()" (we don't check whether we have "getifaddrs()", and if we have "getifaddrs()" but not "freeifaddrs()", we're stuck with leaking memory). Give the "any" device an instance number of INT_MAX, so it shows up after all other non-loopback devices. "getifaddrs()" sometimes appears to supply a destination address even for non-point-to-point interfaces (it did so on a FreeBSD 4.1 system); don't use the broadcast address it supplies if an interface isn't a broadcast interface, and don't use the destination address it supplies if an interface isn't a point-to-point interface. If we had an error constructing the list of interfaces, don't attempt to add the "any" device to the list. --- config.h.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config.h.in') diff --git a/config.h.in b/config.h.in index c02efad..da91ee0 100644 --- a/config.h.in +++ b/config.h.in @@ -9,9 +9,6 @@ /* Define if you have the ether_hostton function. */ #undef HAVE_ETHER_HOSTTON -/* Define if you have the freeifaddrs function. */ -#undef HAVE_FREEIFADDRS - /* Define if you have the strerror function. */ #undef HAVE_STRERROR @@ -21,6 +18,9 @@ /* Define if you have the header file. */ #undef HAVE_IFADDRS_H +/* Define if you have the header file. */ +#undef HAVE_LIMITS_H + /* Define if you have the header file. */ #undef HAVE_NETINET_IF_ETHER_H -- cgit v1.2.3