Skip to content

Report per-interface multicast support - #16991

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl1013946624
Open

copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl1013946624

Conversation

@copybara-service

Copy link
Copy Markdown

Report per-interface multicast support

Interfaces with usable IPv6 addresses were reported without
IFF_MULTICAST through SIOCGIFFLAGS and netlink. Java consequently
treated them as unable to multicast and skipped its IPv6 socket tests.

Preserve each imported host interface's multicast flag through network
setup and NIC state. Apply Linux defaults to sandbox-created veth,
bridge, TUN and TAP devices, and preserve the flag across network
namespace moves. Import the actual loopback flag too: Linux permits
changing it, and device type alone does not determine multicast support.
The new option controls the reported flag, not packet reception.

Validation on the qualification branch passed the owning unit and
analyzer checks, focused ioctl/netlink and TUN/TAP tests, and both Java
PromiscuousIPv6 bodies in directfs, shared-filesystem and native-
reference modes. Each Java body exercised both IPv6 multicast scopes,
including expected receives and nonreceives. The same ABI regression
failed before the fix. Checkpoint roundtrips and flag mutation were not
tested.
Auto-fixed-by: [🤖] @EtiennePerot
FUTURE_COPYBARA_INTEGRATE_REVIEW=#16059 from tamird:fix/netstack-multicast-capability b584529

@copybara-service copybara-service Bot added the exported Issue was exported automatically label Nov 4, 2026
@copybara-service
copybara-service Bot force-pushed the test/cl1013946624 branch 3 times, most recently from fea051b to 8b2a628 Compare November 5, 2026 04:43
Interfaces with usable IPv6 addresses were reported without
IFF_MULTICAST through SIOCGIFFLAGS and netlink. Java consequently
treated them as unable to multicast and skipped its IPv6 socket tests.

Preserve each imported host interface's multicast flag through network
setup and NIC state. Apply Linux defaults to sandbox-created veth,
bridge, TUN and TAP devices, and preserve the flag across network
namespace moves. Import the actual loopback flag too: Linux permits
changing it, and device type alone does not determine multicast support.
The new option controls the reported flag, not packet reception.

Validation on the qualification branch passed the owning unit and
analyzer checks, focused ioctl/netlink and TUN/TAP tests, and both Java
PromiscuousIPv6 bodies in directfs, shared-filesystem and native-
reference modes. Each Java body exercised both IPv6 multicast scopes,
including expected receives and nonreceives. The same ABI regression
failed before the fix. Checkpoint roundtrips and flag mutation were not
tested.
Auto-fixed-by: [🤖] @EtiennePerot
FUTURE_COPYBARA_INTEGRATE_REVIEW=#16059 from tamird:fix/netstack-multicast-capability b584529
PiperOrigin-RevId: 1013946624
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant