RFR: 8241800: Disable IPV6_MULTICAST_ALL to prevent interference from all multicast groups [v4]
Michael McMahon
michaelm at openjdk.org
Mon Jun 19 15:26:24 UTC 2023
On Fri, 16 Jun 2023 16:40:06 GMT, Michael McMahon <michaelm at openjdk.org> wrote:
>> Hi,
>>
>> Can I get the following change reviewed please? It disables the IPV6_MULTICAST_ALL socket option on UDP sockets on Linux systems which support the option (kernel version 4.20+). This has the effect of disabling the surprising default behavior of multicast sockets on Linux where sockets can receive packets sent to groups the receiver has not joined, if some other socket has joined that group on the same system.
>>
>> The equivalent behavior has already been implemented for IPv4 sockets.
>>
>> Thanks,
>> Michael.
>
> Michael McMahon has updated the pull request incrementally with one additional commit since the last revision:
>
> test update
So, the test Promiscuous.java (the IPv4 version) can run on all platforms now. The IPv6 version (PromiscuousIPv6.java) still does not work on Windows.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14491#issuecomment-1597374568
More information about the nio-dev
mailing list