Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Nov 10, 2025

Allow netlink sockets to send to RTMGRP_LINK

sendmsg() to the multicast group now works. connect() is still disallowed.

This patch also reduces the length for which a netlink socket's mu is held.
Previously, once it was taken in Socket.sendMsg(), it was held throughout
Protocol.Receive() -> Socket.ProcessMessages() -> Socket.SendResponse().
When in fact the only field it was needed for was Socket.portID.

@copybara-service copybara-service bot added the exported Issue was exported automatically label Nov 10, 2025
sendmsg() to the multicast group now works. connect() is still disallowed.

This patch also reduces the length for which a netlink socket's mu is held.
Previously, once it was taken in Socket.sendMsg(), it was held throughout
Protocol.Receive() -> Socket.ProcessMessages() -> Socket.SendResponse().
When in fact the only field it was needed for was Socket.portID.

PiperOrigin-RevId: 830546353
@copybara-service copybara-service bot changed the title [WIP] Allow netlink sockets to send to RTMGRP_LINK Allow netlink sockets to send to RTMGRP_LINK Nov 10, 2025
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.

2 participants