Struct pnet_packet::ipv4::Ipv4 [−][src]
pub struct Ipv4 {Show 15 fields
pub version: u4,
pub header_length: u4,
pub dscp: u6,
pub ecn: u2,
pub total_length: u16be,
pub identification: u16be,
pub flags: u3,
pub fragment_offset: u13be,
pub ttl: u8,
pub next_level_protocol: IpNextHeaderProtocol,
pub checksum: u16be,
pub source: Ipv4Addr,
pub destination: Ipv4Addr,
pub options: Vec<Ipv4Option>,
pub payload: Vec<u8>,
}Expand description
Represents an IPv4 Packet.
Fields
version: u4header_length: u4dscp: u6ecn: u2total_length: u16beidentification: u16beflags: u3fragment_offset: u13bettl: u8next_level_protocol: IpNextHeaderProtocolchecksum: u16besource: Ipv4Addrdestination: Ipv4Addroptions: Vec<Ipv4Option>payload: Vec<u8>Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Ipv4
impl UnwindSafe for Ipv4
Blanket Implementations
Mutably borrows from an owned value. Read more
