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

ServerSocket local port has bytes reversed on Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • core-libs
    • beta
    • x86
    • linux
    • Verified

      NET_GetPortFromSockaddr returns the port in host byte order,
      but the calling function reverses the order by calling ntohs().
      In other words ntohs() is called twice. Effect only noticed
      on Linux and Solaris x86.

            ywangsunw Yingxian Wang (Inactive)
            michaelm Michael McMahon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: