pub trait Filter {
    type Data: PointerWrapper + Sync = ();

    fn filter(
        _data: <Self::Data as PointerWrapper>::Borrowed<'_>,
        _skb: &SkBuff
    ) -> Disposition; }
Expand description

A network filter.

Provided Associated Types

The type of the context data stored on registration and made available to the Filter::filter function.

Required Methods

Filters the packet stored in the given buffer.

It dictates to the netfilter core what the fate of the packet should be.

Implementors

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