Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Feb 1998 17:14:31 -0800 (PST)
From:      Jeffrey Hsu <hsu>
To:        freebsd-java, java-port
Subject:   IP address byte order bug
Message-ID:  <199802120114.RAA29206@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802120114.RAA29206>