]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
netfilter: nft_log: complete logging support
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 25 Jun 2014 11:37:13 +0000 (13:37 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 27 Jun 2014 11:21:37 +0000 (13:21 +0200)
commit09d27b88f15f08fcfbaf57d9b0b4489816264815
treed96b5e0c64a72ced3abcf8ede763eda8da0f11ba
parent85d30e24166e86686aa2d805e2ef1fa8d770852c
netfilter: nft_log: complete logging support

Use the unified nf_log_packet() interface that allows us explicit
logger selection through the nf_loginfo structure.

If you specify the group attribute, this means you want to receive
logging messages through nfnetlink_log. In that case, the snaplen
and qthreshold attributes allows you to tune internal aspects of
the netlink logging infrastructure.

On the other hand, if the level is specified, then the plain text
format through the kernel logging ring is used instead, which is
also used by default if neither group nor level are indicated.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nft_log.c