#[repr(u32)]
pub enum Hook {
PreRouting,
LocalIn,
Forward,
LocalOut,
PostRouting,
Ingress,
}
Expand description
Hooks allowed in the super::Family::INet
, super::Family::Ipv4
, and
super::Family::Ipv6
families.
Variants
PreRouting
Inbound packets before routing decisions are made (i.e., before it’s determined if the packet is to be delivered locally or forwarded to another host).
LocalIn
Inbound packets that are meant to be delivered locally.
Forward
Inbound packets that are meant to be forwarded to another host.
LocalOut
Outbound packet created by the local networking stack.
PostRouting
All outbound packets (i.e., generated locally or being forwarded to another host).
Ingress
Equivalent to super::netdev::Hook::Ingress
, so a device must be specified. Packets
of all types (not just ipv4/ipv6) will be delivered to the filter.
Auto Trait Implementations
impl RefUnwindSafe for Hook
impl Send for Hook
impl Sync for Hook
impl Unpin for Hook
impl UnwindSafe for Hook
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more