pub struct Queue { /* private fields */ }
Expand description
A NetFilter queue.
Implementations
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