JDK-6404473 : VISTA: MulticastSocket.setInterface fails to set Interface (ipv4)
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows_vista
  • CPU: generic
  • Submitted: 2006-03-27
  • Updated: 2012-03-23
  • Resolved: 2006-08-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6Resolved
Related Reports
Relates :  
Relates :  
Relates :  
Description
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]

Comments
EVALUATION This has been fixed in Vista build 5456. The failing tests (from jck beta2 b27) now pass.
28-06-2006

EVALUATION see description
28-03-2006