Skip to content
Snippets Groups Projects
Commit 4f633b7a authored by Nick Briggs's avatar Nick Briggs Committed by Ilkka Ollakka
Browse files

access/udp: use overflow block on recvmsg() to adjust mtu

Add second block on recvmsg() to check if we need to adjust mtu to be
higher. With this approach, we will do extra memcpy and allocation in
codepaths where mtu should be increased, but not on normal codepath.

Allocates the minimum sized overflow block to capture the maximum
sized datagram when combined with the normal (mtu sized) block.

This uses the same approach on all platforms and doesn't rely on
MSG_TRUNC in linux case and something else in other cases.
parent d9735b44
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment