pub enum ExtensionHeaderOptionAction {
SkipAndContinue,
DiscardPacket,
DiscardPacketSendIcmp,
DiscardPacketSendIcmpNoMulticast,
}
Expand description
Action to take when an unrecognized option type is encountered.
ExtensionHeaderOptionAction
is an action that MUST be taken (according
to RFC 8200 section 4.2) when an IPv6 processing node does not
recognize an option’s type.
Variants§
SkipAndContinue
Skip over the option and continue processing the header. value = 0.
DiscardPacket
Just discard the packet. value = 1.
DiscardPacketSendIcmp
Discard the packet and, regardless of whether or not the packet’s destination address was a multicast address, send an ICMP parameter problem, code 2 (unrecognized option), message to the packet’s source address, pointing to the unrecognized type. value = 2.
DiscardPacketSendIcmpNoMulticast
Discard the packet and, and only if the packet’s destination address was not a multicast address, send an ICMP parameter problem, code 2 (unrecognized option), message to the packet’s source address, pointing to the unrecognized type. value = 3.
Trait Implementations§
source§impl Clone for ExtensionHeaderOptionAction
impl Clone for ExtensionHeaderOptionAction
source§fn clone(&self) -> ExtensionHeaderOptionAction
fn clone(&self) -> ExtensionHeaderOptionAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExtensionHeaderOptionAction
impl Debug for ExtensionHeaderOptionAction
source§impl From<ExtensionHeaderOptionAction> for u8
impl From<ExtensionHeaderOptionAction> for u8
source§fn from(a: ExtensionHeaderOptionAction) -> u8
fn from(a: ExtensionHeaderOptionAction) -> u8
source§impl PartialEq for ExtensionHeaderOptionAction
impl PartialEq for ExtensionHeaderOptionAction
source§fn eq(&self, other: &ExtensionHeaderOptionAction) -> bool
fn eq(&self, other: &ExtensionHeaderOptionAction) -> bool
self
and other
values to be equal, and is used
by ==
.