natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).

1999-04-08  Geoff Berry  <gcb@gnu.org>
	* natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
	* natPlainSocketImpl.cc (accept): Add missing else if check
	for AF_INET6.

From-SVN: r26297
This commit is contained in:
Geoff Berry 1999-04-08 13:22:59 +00:00 committed by Tom Tromey
parent 3fc5037bd1
commit 825bd5ae6f
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
1999-04-08 Geoff Berry <gcb@gnu.org>
* natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
* natPlainSocketImpl.cc (accept): Add missing else if check
for AF_INET6.
1999-04-08 Tom Tromey <tromey@cygnus.com>
* java/lang/Long.java (parseLong): Corrected overflow detection

View File

@ -154,7 +154,7 @@ java::net::InetAddress::lookup (jstring host, java::net::InetAddress* iaddr,
else if (len == 16)
{
val = (char *) &chars;
type = AF_INET16;
type = AF_INET6;
}
#endif /* HAVE_INET6 */
else

View File

@ -155,6 +155,7 @@ java::net::PlainSocketImpl::accept (java::net::PlainSocketImpl *s)
rport = ntohs (u.address.sin_port);
}
#ifdef HAVE_INET6
else if (u.address.sin_family == AF_INET6)
{
raddr = JvNewByteArray (16);
memcpy (elements (raddr), &u.address6.sin6_addr, 16);