Enum netlink_packet_route::tc::TcActionType
source · #[non_exhaustive]pub enum TcActionType {
Unspec,
Ok,
Reclassify,
Shot,
Pipe,
Stolen,
Queued,
Repeat,
Redirect,
Trap,
Other(i32),
}
Expand description
Generic traffic control action types.
These are the possible “outcomes” for a packet after an action is applied to it.
This enum is non-exhaustive as new action types may be added to the kernel at any time.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspec
No specific outcome specified (i.e., take the default for that action).
Ok
Terminates packet processing and allows the packet to proceed.
Reclassify
Terminates packet processing and restart packet classification.
Shot
Drop the packet.
Pipe
Pipe the packet to the next action (if any).
Stolen
The packet is removed from this processing pipeline and returned to another. This happens, for example, when using the “mirred” redirect action.
Queued
Queue the packet for later processing.
Repeat
Repeat the action.
TODO: confirm this. I have not used this action before and its semantics are unclear.
Redirect
Redirect the packet.
TODO: confirm semantics of this action. It is unclear how
Redirect
differs fromStolen
.
Trap
Transition packet processing from the hardware to software.
If this action is encountered by in software, it is equivalent to
Shot
.
Other(i32)
Other action types not known at the time of writing or not yet supported by this library.
Trait Implementations§
source§impl Clone for TcActionType
impl Clone for TcActionType
source§fn clone(&self) -> TcActionType
fn clone(&self) -> TcActionType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TcActionType
impl Debug for TcActionType
source§impl Default for TcActionType
impl Default for TcActionType
source§fn default() -> TcActionType
fn default() -> TcActionType
source§impl From<TcActionType> for i32
impl From<TcActionType> for i32
source§fn from(v: TcActionType) -> i32
fn from(v: TcActionType) -> i32
source§impl From<i32> for TcActionType
impl From<i32> for TcActionType
source§impl PartialEq for TcActionType
impl PartialEq for TcActionType
impl Copy for TcActionType
impl Eq for TcActionType
impl StructuralPartialEq for TcActionType
Auto Trait Implementations§
impl Freeze for TcActionType
impl RefUnwindSafe for TcActionType
impl Send for TcActionType
impl Sync for TcActionType
impl Unpin for TcActionType
impl UnwindSafe for TcActionType
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
)