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

IPV6 site or global addr: MulticastSocket.getNetworkInterface returns wrong intr

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta2
    • generic
    • generic


      On Solaris network interfaces are collected by interface name. This
      results in seperate NetworkInterface instances when there are logical
      interfaces configured (ie: multi-homed machines where one has interfaces
      such as hme0:1, hme0:2, ...).

      Although the approach ensures consistency between NetworkInterface
      and ifconfig it creates two inconsistencies :-

      1. On Windows there is one NetworkInterface instance per physical
      interface whereas on Solaris we can have multiple instances per p
      hysical interface.

      2. With IPv6 it's possible for MulticastSocket.getNetworkInterface
      to return a different interface that we set with setNetworkInterface.
      This will arise on multi-homed systems as multiple instances of
      NetworkInterface can have the same index. This issue can be
      duplicate using the regression test :-
          test/java/net/MulticastSocket/TestInterfaces.java
      if an IPv6 site or global address configured.



      For beta-refresh we need to re-examine this with a view to
      collecting interfaces by physical interface.

      alan.bateman@ireland 2001-07-30

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: