Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1229992

Solaris DatagramSocket methods ignore byte order at a few places

XMLWordPrintable

    • 1.0beta2
    • sparc
    • solaris_2.4
    • Not verified

      [pgt, 11/30/95]

      In java/src/solaris/java/runtime/socket.c:

      The java_net_DatagramSocket_datagramSocketBind function sets
      the localPort field in network-byte-order (which is the form that
      getsockname(3N) returns it in). It should probably set it in host-byte-order.

      The java_net_DatagramSocket_datagramSocketPeek function also
      returns the port number in network-byte-order instead of host-byte-order.
      It also converts the remote_addr to network-byte-order, although
      remote_addr is already in network-byte-order (recvfrom(3n) will
      return the address of the received packet in network-byte-order).
      The same mistake is repeated in the java_net_DatagramSocket_datagramSocketReceive
      function.


            tlindholsunw Timothy Lindholm (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: