best_packet_size

Function best_packet_size 

Source
pub fn best_packet_size(mtu: u32) -> u32
Expand description

Compute an optimal GVSP payload size from the link MTU.

The resulting value subtracts the Ethernet, IPv4 and UDP headers to produce the maximum amount of user payload that fits in a single packet.