Module filter

Module filter 

Source
Expand description

Framework for packet filtering.

Structs§

FilterApi
The filtering API.
Hook
A particular entry point for packet processing in which filtering routines are installed.
IpRoutines
Routines that perform ordinary IP filtering.
NatRoutines
Routines that can perform NAT.
PacketMatcher
Top-level matcher for IP packets.
ProofOfEgressCheck
A witness type to indicate that the egress filtering hook has been run.
Routine
A sequence of Rules.
Routines
IP version-specific filtering routine state.
Rule
A set of criteria (matchers) and a resultant action to take if a given packet matches.
TransportProtocolMatcher
A matcher for transport-layer protocol or port numbers.
Tuple
A tuple for a flow in a single direction.
UninstalledRoutine
A handle to a Routine that is not installed in a particular hook, and therefore is only run if jumped to from another routine.

Enums§

Action
The action to take on a packet.
MarkAction
An action that can be applied to a mark.
SocketEgressFilterResult
Result returned from SocketOpsFilter::on_egress.
SocketIngressFilterResult
Result returned from SocketOpsFilter::on_ingress.
TransparentProxy
Transparently intercept the packet and deliver it to a local socket without changing the packet header.
ValidationError
Provided filtering state was invalid.

Traits§

FilterBindingsContext
Trait aggregating functionality required from bindings.
FilterBindingsTypes
Trait defining required types for filtering provided by bindings.
FilterIpExt
An IP extension trait for the filtering crate.
IpPacket
An IP packet that provides header inspection.
SocketOpsFilter
Trait for a socket operations filter.
SocketOpsFilterBindingContext
Implemented by bindings to provide socket operations filtering.