Skip to content

Auto-port 5.0: Epoll: Fix support for IP_RECVORIGDSTADDR#16469

Merged
normanmaurer merged 1 commit into
5.0from
auto-port-pr-16461-to-5.0
Mar 16, 2026
Merged

Auto-port 5.0: Epoll: Fix support for IP_RECVORIGDSTADDR#16469
normanmaurer merged 1 commit into
5.0from
auto-port-pr-16461-to-5.0

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16461 to 5.0
Cherry-picked commit: d97f5e6


Motivation:

We incorrectly used the return value of netty_unix_socket_getOption(...,IP_RECVORIGDSTADDR) and so did not correctly support IP_RECVORIGDSTADDR when using recvmmsg.

Modifications:

  • Correctly use the return value and also validate that the socket option is actually set before allocating the control message buffer.

Result:

Fix support of IP_RECVORIGDSTADDR when using recvmmsg

Motivation:

We incorrectly used the return value of
netty_unix_socket_getOption(...,IP_RECVORIGDSTADDR) and so did not
correctly support IP_RECVORIGDSTADDR when using recvmmsg.

Modifications:

- Correctly use the return value and also validate that the socket
option is actually set before allocating the control message buffer.

Result:

Fix support of IP_RECVORIGDSTADDR when using recvmmsg

(cherry picked from commit d97f5e6)
@normanmaurer normanmaurer added this to the 5.0.0.Final milestone Mar 16, 2026
@normanmaurer normanmaurer merged commit dee1780 into 5.0 Mar 16, 2026
12 of 13 checks passed
@normanmaurer normanmaurer deleted the auto-port-pr-16461-to-5.0 branch March 16, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants