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.
Loading
Please register or sign in to comment