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:
parent
3fc5037bd1
commit
825bd5ae6f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user