#[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 more