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 TryFrom<u8> for ExtensionHeaderOptionAction
impl TryFrom<u8> for ExtensionHeaderOptionAction
impl Copy for ExtensionHeaderOptionAction
impl Eq for ExtensionHeaderOptionAction
impl StructuralPartialEq for ExtensionHeaderOptionAction
Auto Trait Implementations§
impl Freeze for ExtensionHeaderOptionAction
impl RefUnwindSafe for ExtensionHeaderOptionAction
impl Send for ExtensionHeaderOptionAction
impl Sync for ExtensionHeaderOptionAction
impl Unpin for ExtensionHeaderOptionAction
impl UnwindSafe for ExtensionHeaderOptionAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)