From: Corinna Vinschen Date: Mon, 29 Mar 2010 09:00:25 +0000 (+0000) Subject: * libc/rcmd.c: Enable IPv6. X-Git-Tag: cygwin-1_7_3-release~10 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=f1c6730ba3460033fd796c96b9e061835f178be7;p=newlib-cygwin.git * libc/rcmd.c: Enable IPv6. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 394a5c5b8..0e1e6a2bc 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2010-03-29 Corinna Vinschen + + * libc/rcmd.c: Enable IPv6. + 2010-03-28 Christopher Faylor * fhandler.cc (fhandler_base::fstat): Set st_mtime to current time. diff --git a/winsup/cygwin/libc/rcmd.cc b/winsup/cygwin/libc/rcmd.cc index 225ac325b..a09157797 100644 --- a/winsup/cygwin/libc/rcmd.cc +++ b/winsup/cygwin/libc/rcmd.cc @@ -291,11 +291,9 @@ again: 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; @@ -373,12 +371,10 @@ cygwin_rresvport_af(int *alport, int family) 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; @@ -586,7 +582,6 @@ __ivaliduser_af(FILE *hostf, const void *raddr, const char *luser, 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; @@ -596,7 +591,6 @@ __ivaliduser_af(FILE *hostf, const void *raddr, const char *luser, salen = sizeof(struct sockaddr_in6); memcpy(&sin6->sin6_addr, raddr, sizeof(sin6->sin6_addr)); break; -#endif default: return -1; }