Skip to main content

MAX_UDP_PAYLOAD

Constant MAX_UDP_PAYLOAD 

Source
pub const MAX_UDP_PAYLOAD: usize = 65527;
Expand description

Largest UDP payload that can be represented (RFC 9298 §5).

A UDP datagram’s length field covers the 8-byte header, so the payload cannot exceed 65535 - 8.