Date: Wed, 11 Feb 1998 17:31:43 -0800 From: Steve Byrne <sbb@freegate.com> To: "freebsd-java@hub.freebsd.org" <freebsd-java@hub.freebsd.org>, "java-port@hub.freebsd.org" <java-port@hub.freebsd.org>, "'Jeffrey Hsu'" <hsu@FreeBSD.ORG> Subject: RE: IP address byte order bug Message-ID: <01BD3712.ED774E80@sbb.hq.stevelab.com>
next in thread | raw e-mail | index | archive | help
Yes, but they *do* have the problem on Solaris x86, so it still is a bug. Note how there is lots of other code in this file that properly does ntohl etc. This was just a careless omission. I had to fix this in my Linux port too. Yuk. ---------- From: Jeffrey Hsu Sent: Wednesday, February 11, 1998 5:14 PM To: freebsd-java@hub.freebsd.org; java-port@hub.freebsd.org Subject: IP address byte order bug Here's something I just fixed in my tree which you won't see in Sun's tree because they don't have this problem on their big-endian SPARC processor. In src/solaris/net/socket.c: *************** *** 620,626 **** NET_ERROR(0, JAVANETPKG "SocketException", strerror(errno)); return -1; } ! return (him.sin_addr.s_addr == INADDR_ANY) ? -1: him.sin_addr.s_addr; } else if (opt == JSO_LINGER) { struct linger arg; int len = sizeof(struct linger); --- 704,710 ---- NET_ERROR(0, JAVANETPKG "SocketException", strerror(errno)); return -1; } ! return (him.sin_addr.s_addr == INADDR_ANY) ? -1: ntohl(him.sin_addr.s_addr); } else if (opt == JSO_LINGER) { struct linger arg; int len = sizeof(struct linger); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01BD3712.ED774E80>