+2010-03-29 Corinna Vinschen <corinna@vinschen.de>
+
+ * libc/rcmd.c: Enable IPv6.
+
2010-03-28 Christopher Faylor <me+cygwin@cgf.cx>
* fhandler.cc (fhandler_base::fstat): Set st_mtime to current time.
case AF_INET:
aport = ntohs(((struct sockaddr_in *)&from)->sin_port);
break;
-#ifdef INET6
case AF_INET6:
aport = ntohs(((struct sockaddr_in6 *)&from)->sin6_port);
break;
-#endif
default:
aport = 0; /* error */
break;
sport = &((struct sockaddr_in *)&ss)->sin_port;
((struct sockaddr_in *)&ss)->sin_addr.s_addr = INADDR_ANY;
break;
-#ifdef INET6
case AF_INET6:
sport = &((struct sockaddr_in6 *)&ss)->sin6_port;
((struct sockaddr_in6 *)&ss)->sin6_addr = in6addr_any;
break;
-#endif
default:
errno = EAFNOSUPPORT;
return -1;
salen = sizeof(struct sockaddr_in);
memcpy(&sin->sin_addr, raddr, sizeof(sin->sin_addr));
break;
-#ifdef INET6
case AF_INET6:
if (len != sizeof(sin6->sin6_addr))
return -1;
salen = sizeof(struct sockaddr_in6);
memcpy(&sin6->sin6_addr, raddr, sizeof(sin6->sin6_addr));
break;
-#endif
default:
return -1;
}