https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298076

            Bug ID: 298076
           Summary: linux: disabling IP_MULTICAST_ALL should be noop
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: [email protected]
          Reporter: [email protected]

On Linux, the Java Runtime disables IP_MULTICAST_ALL (and/or
IPV6_MULTICAST_ALL) on all UDP sockets to avoid "interference" from other
programs on the same system that have joined multicast groups. (On Linux,
multicast memberships are effectively maintained with
system-wide/interface-level.)

When a Linux build of the JDK runs unmodified on BSD then it will still attempt
to disable IP_MULTICAST_ALL and fail with ENOPROTOOPT.

The JDK recent changed to fail if disabling IP_MULTICAST_ALL fails This socket
option was added in Linux 2.6.31 (2009) and the JDK tolerated ENOPROTOOPT to
allow running on older systems. Newer releases of the JDK have not been
supported on these old JDK releases for many years.

For the Linuxulator/Linux compatibility layer, have you considered an attempt
to set IP_MULTICAST_ALL=0 as a no-op? (and continue to fail with ENOPROTOOPT
for IP_MULTICAST_ALL=1). BSD behavior is the equivalent of IP_MULTICAST_ALL=0
already.

JDK bug on this issue: https://bugs.openjdk.org/browse/JDK-8391445

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to