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

IPv6 regression tests failing on machines with multiple network interfaces

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 5.0
    • core-libs
    • beta
    • generic
    • generic

      I believe this is a problem in the networking code, which is causing
      all the regression tests to fail on my machine. Any machine with a similar
      setup will probably fail in the same manner.

      The problem code looks like:

      NetworkInterface.getNetworkInterfaces().getInetAddresses();

      I have XP Pro with both a wired and wireless network card.

      Before testing, the wireless adapter appears in the getNetworkInterfaces()
      list (and ipconfig /all) *FIRST* before the wired one. When tests
      like java/net/ipv6tests/TcpTest.java run, they look for the first IP
      address, regardless of whether the adapter is actually on and enabled/disabled.
      In my case, the wireless card was initially turned off,
      and in the second case, it was completely
      disabled. For some reason, an IP address is still somehow being obtained from
      this adapter, and the connection is then attempted, which of course times out.
      Even when I completely disabled my wireless adapter, it is still showing this as
      a valid interface via getInterfaces().

      In the disabled case, ipconfig /all doesn't even
      mention the wireless interface. In the active case, it doesn't report any
      active IPs when the wireless card is turned off.

      See attachments for more info. output is the result of java/net/ipv6tests/TcpTest.java when run on this machine.`

      ###@###.### 2004-09-17

            yuwangsunw Yujiang Wang (Inactive)
            wetmore Bradford Wetmore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: