Searched refs:ip_mtu (Results 1 – 6 of 6) sorted by relevance
61 let ip_mtu = ifreq_ioctl(lower, &mut self.ifreq, imp::SIOCGIFMTU).map(|mtu| mtu as usize); in interface_mtu() localVariable68 let ip_mtu = ip_mtu?; in interface_mtu() localVariable74 Medium::Ip => ip_mtu, in interface_mtu()76 Medium::Ethernet => ip_mtu + EthernetFrame::<&[u8]>::header_len(), in interface_mtu()
242 pub fn ip_mtu(&self) -> usize { in ip_mtu() method
336 let mtu_max = self.ip_mtu(); in dispatch_ipv4_frag()
1061 pub(crate) fn ip_mtu(&self) -> usize { in ip_mtu() method1062 self.caps.ip_mtu() in ip_mtu()1772 let first_frag_ip_len = self.caps.ip_mtu(); in dispatch_ip()
537 max_size: Some((cx.ip_mtu() - MAX_IPV4_HEADER_LEN - UDP_HEADER_LEN) as u16), in dispatch()
1878 let local_mss = cx.ip_mtu() - ip_header_len - TCP_HEADER_LEN; in seq_to_transmit()2116 .min(cx.ip_mtu() - ip_repr.header_len() - TCP_HEADER_LEN); in dispatch()2178 let max_segment_size = cx.ip_mtu() - ip_repr.header_len() - TCP_HEADER_LEN; in dispatch()