Struct nfq::Queue

source · []
pub struct Queue { /* private fields */ }
Expand description

A NetFilter queue.

Implementations

Open a NetFilter socket and queue connection.

Change whether ENOBUFS should be received by the application if the kernel queue is full. As user-space usually cannot do any special about this, open will turn this off by default.

Bind to a specific queue number.

This method will set the copy range to 65535 by default. It can be changed by using set_copy_range.

Set whether the kernel should drop or accept a packet if the queue is full.

Set whether we should receive GSO-enabled and partial checksum packets.

Set whether we should receive UID/GID along with packets.

Set whether we should receive security context strings along with packets.

Set copy range. Packet larger than the specified range will be truncated. If the range given is 0, only metadata will be copied.

To get the original length of truncated packet, use Message::get_original_len.

Set the maximum kernel queue length. If the application cannot recv fast enough, newly queued packet will be dropped (or accepted if fail open is enabled).

Set whether the recv function blocks or not

Unbind from a specific queue number.

Receive a packet from the queue.

Verdict a message.

Trait Implementations

Executes the destructor for this type. Read more

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

Performs the conversion.

Performs the conversion.

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.