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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

This documentation is an old archive. Please see https://rust.docs.kernel.org instead.