Skip to content
  • Nick Briggs's avatar
    access/udp: use overflow block on recvmsg() to adjust mtu · 4f633b7a
    Nick Briggs authored and Ilkka Ollakka's avatar Ilkka Ollakka committed
    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.
    4f633b7a