-1999-10-17 Ken Raeburn <raeburn@raeburn.org>
+1999-10-18 Ken Raeburn <raeburn@mit.edu>
+
+ * localaddr.c (krb5_os_localaddr): Don't bother trying to create
+ inet6 socket; any socket type will do.
+
+1999-10-17 Ken Raeburn <raeburn@mit.edu>
* localaddr.c (krb5_os_localaddr): Raise buffer size to 10K.
Handle INET6 addresses. If INET6 support is built in but the
#include <netinet/in.h>
#ifndef USE_AF
-#ifdef AF_INET6
-#define USE_AF AF_INET6
-#define USE_AF2 AF_INET
-#else
#define USE_AF AF_INET
-#endif
#define USE_TYPE SOCK_DGRAM
#define USE_PROTO 0
#endif
ifc.ifc_buf = buf;
s = socket (USE_AF, USE_TYPE, USE_PROTO);
-#if defined (USE_AF2) && defined (EPROTONOSUPPORT)
- if (s < 0 && SOCKET_ERRNO == EPROTONOSUPPORT)
- s = socket (USE_AF2, USE_TYPE, USE_PROTO);
-#endif
if (s < 0)
return SOCKET_ERRNO;