Struct unix_udp_sock::RecvMeta
source · pub struct RecvMeta {
pub addr: SocketAddr,
pub len: usize,
pub stride: usize,
pub ecn: Option<EcnCodepoint>,
pub dst_ip: Option<IpAddr>,
pub dst_local_ip: Option<IpAddr>,
pub ifindex: u32,
}Expand description
Metadata about received packet. Includes which address we recv’d from, how many bytes, ecn codepoints, what the destination IP used was and what interface index was used.
Fields§
§addr: SocketAddraddress we received datagram on
len: usizelength of datagram
stride: usizereceived datagram stride
ecn: Option<EcnCodepoint>ECN codepoint
dst_ip: Option<IpAddr>The destination IP address for this datagram (ipi_addr)
dst_local_ip: Option<IpAddr>The destination local IP address for this datagram (ipi_spec_dst)
ifindex: u32interface index that datagram was received on