xarxa

Crates

git

Versions

default

Flavors

Skip to main content

LINK_HEADER_LEN

Constant LINK_HEADER_LEN 

Source
pub const LINK_HEADER_LEN: usize = ETHERNET_HEADER_LEN; // 14usize
Expand description

The headroom every egress packet reserves for the link-layer header below IP.

The Ethernet header in a build that drives Ethernet interfaces, since an IP packet may end up going out of one. Zero in a build that only drives Medium::Ip interfaces, which prepend nothing.