Enum etherparse::IpHeader [−][src]
pub enum IpHeader {
Version4(Ipv4Header, Ipv4Extensions),
Version6(Ipv6Header, Ipv6Extensions),
}
Expand description
Internet protocol headers version 4 & 6
Variants
Version4(Ipv4Header, Ipv4Extensions)
Version6(Ipv6Header, Ipv6Extensions)
Implementations
👎 Deprecated since 0.10.1: Renamed to IpHeader::from_slice
👎 Deprecated since 0.10.1:
Renamed to IpHeader::from_slice
Renamed to IpHeader::from_slice
Read an IpvHeader from a slice and return the header & unused parts of the slice.
Reads an IP (v4 or v6) header from the current position.
Writes an IP (v4 or v6) header to the current position
Returns the size when the ip header & extensions are serialized
Returns the last next header number following the ip header and header extensions.
Sets all the next_header fields in the ipv4 & ipv6 header as well as in all extension headers and returns the ether type number.
The given number will be set as the last “next_header” or protocol number.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for IpHeader
impl UnwindSafe for IpHeader
Blanket Implementations
Mutably borrows from an owned value. Read more