Commit 825bd5ae by Geoff Berry Committed by Tom Tromey

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
parent 3fc5037b
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> 1999-04-08 Tom Tromey <tromey@cygnus.com>
* java/lang/Long.java (parseLong): Corrected overflow detection * java/lang/Long.java (parseLong): Corrected overflow detection
......
...@@ -154,7 +154,7 @@ java::net::InetAddress::lookup (jstring host, java::net::InetAddress* iaddr, ...@@ -154,7 +154,7 @@ java::net::InetAddress::lookup (jstring host, java::net::InetAddress* iaddr,
else if (len == 16) else if (len == 16)
{ {
val = (char *) &chars; val = (char *) &chars;
type = AF_INET16; type = AF_INET6;
} }
#endif /* HAVE_INET6 */ #endif /* HAVE_INET6 */
else else
......
...@@ -155,6 +155,7 @@ java::net::PlainSocketImpl::accept (java::net::PlainSocketImpl *s) ...@@ -155,6 +155,7 @@ java::net::PlainSocketImpl::accept (java::net::PlainSocketImpl *s)
rport = ntohs (u.address.sin_port); rport = ntohs (u.address.sin_port);
} }
#ifdef HAVE_INET6 #ifdef HAVE_INET6
else if (u.address.sin_family == AF_INET6)
{ {
raddr = JvNewByteArray (16); raddr = JvNewByteArray (16);
memcpy (elements (raddr), &u.address6.sin6_addr, 16); memcpy (elements (raddr), &u.address6.sin6_addr, 16);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment