Struct kernel::network::ipv4::IPv4 [] [src]

pub struct IPv4 {
    pub header: IPv4Header,
    pub options: Vec<u8>,
    pub data: Vec<u8>,
}

Fields

header
options
data

Trait Implementations

impl FromBytes for IPv4

fn from_bytes(bytes: Vec<u8>) -> Option<Self>

impl ToBytes for IPv4

fn to_bytes(&self) -> Vec<u8>