packet_formats::ipv6::ext_hdrs

Type Alias HopByHopOption

Source
pub type HopByHopOption<'a> = ExtensionHeaderOption<HopByHopOptionData<'a>>;
Expand description

An option found in a Hop By Hop Options extension header.

Aliased Type§

struct HopByHopOption<'a> {
    pub action: ExtensionHeaderOptionAction,
    pub mutable: bool,
    pub data: HopByHopOptionData<'a>,
}

Fields§

§action: ExtensionHeaderOptionAction

Action to take if the option type is unrecognized.

§mutable: bool

Whether or not the option data of the option can change en route to the packet’s final destination. When an Authentication header is present in the packet, the option data must be treated as 0s when computing or verifying the packet’s authenticating value when the option data can change en route.

§data: HopByHopOptionData<'a>

Option data associated with a specific extension header.

Trait Implementations§

Source§

impl<'a> AlignedOptionBuilder for HopByHopOption<'a>

Source§

fn alignment_requirement(&self) -> (usize, usize)

Returns the alignment requirement of self. Read more
Source§

fn serialize_padding(buf: &mut [u8], length: usize)

Serializes the padding between subsequent aligned options. Read more
Source§

impl<'a> OptionBuilder for HopByHopOption<'a>

Source§

type Layout = HopByHopOptionLayout

Information about the option’s layout.
Source§

fn serialized_len(&self) -> usize

Returns the serialized length, in bytes, of self. Read more
Source§

fn option_kind(&self) -> u8

Returns the wire value for this option kind.
Source§

fn serialize_into(&self, buffer: &mut [u8])

Serializes self into data. Read more