Linux::Netfilter::Log::Group - Recieve packets for a particular NFLOG group
NFLOG
This object represents an NFLOG group to which we are bound and receiving packets from.
Sets the callback subroutine used to process packets logged in this group.
$group->callback_register(sub { my ($packet) = @_; ... });
The $packet is a Linux::Netfilter::Log::Packet reference.
$packet
Sets the amount of data to be copied to userspace for each packet logged to the given group.
NFULNL_COPY_NONE
Do not copy any data.
NFULNL_COPY_META
Copy only packet metadata.
NFULNL_COPY_PACKET
Copy entire packet. Packets larger than $range will be truncated.
$range
This method sets the size (in bytes) of the buffer that is used to stack log messages in nflog.
This method determines the maximum number of log entries to queue in the kernel until it is pushed to userspace. This can be overridden by the NFLOG iptables target.
This method determines the maximum time (in centiseconds) that a logged packet will be queued in the kernel before being pushed to userspace.
Set the nflog flags for this group. Takes a bitwise OR'd set of the following:
NFULNL_CFG_F_SEQ
This enables local nflog sequence numbering (see Packet->seq()).
NFULNL_CFG_F_SEQ_GLOBAL
This enables global nflog sequence numbering (see Packet->seq_global()).
Linux::Netfilter::Log, Linux::Netfilter::Log::Packet
To install Linux::Netfilter::Log, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Linux::Netfilter::Log
CPAN shell
perl -MCPAN -e shell install Linux::Netfilter::Log
For more information on module installation, please visit the detailed CPAN module installation guide.