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

VISTA: MulticastSocket.setInterface fails to set Interface (ipv4)

XMLWordPrintable

    • generic
    • windows_vista

      MulticastSocket.setInterface(InetAddress) simply sets the socket option IP_MULTICAST_IF. This interface value is then used when joining/leaving a group as the in_addr for ip_mreq.imr_interface. The problem is that the address returned from getsockopt is not the same as the one used in setsockopt.

      This is a native vista issue and can be reproduced with a simple native testcase (attached, TestIP_MULTICAST_IF.c). This needs to be fixed in the vista platform.
       Native Tests show:
        T:\6358574>TestIP_MULTICAST_IF
          Set IP_MULTICAST_IF = 129.156.232.46
          Get IP_MULTICAST_IF = 10.0.0.0

      This causes the following jck tests to fail:
        api/java_net/MulticastSocket/descriptions.html#send
        api/java_net/MulticastSocket/descriptions.html#setTimeToLive[MulticastSocket1021]
        api/java_net/MulticastSocket/descriptions.html#setTimeToLive[MulticastSocket1022]
        api/java_net/MulticastSocket/descriptions.html#setTTL[MulticastSocket1018]
        api/java_net/MulticastSocket/descriptions.html#setTTL[MulticastSocket1019]

            chegar Chris Hegarty
            chegar Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: