[pgt, 11/30/95]
In java/src/solaris/java/runtime/socket.c, the methods set the
localport field using the htons macro to convert the result of getsockname(2).
This is incorrect.
getsockname(2) returns sin_port in network-byte-order, and the correct
macro to use is ntohs for converting back to host-byte-order.
In java/src/solaris/java/runtime/socket.c, the methods set the
localport field using the htons macro to convert the result of getsockname(2).
This is incorrect.
getsockname(2) returns sin_port in network-byte-order, and the correct
macro to use is ntohs for converting back to host-byte-order.