[NETFILTER]: x_tables: add NFLOG target
Add new NFLOG target to allow use of nfnetlink_log for both IPv4 and IPv6.
Currently we have two (unsupported by userspace) hacks in the LOG and ULOG
targets to optionally call to the nflog API. They lack a few features,
namely the IPv4 and IPv6 LOG targets can not specify a number of arguments
related to nfnetlink_log, while the ULOG target is only available for IPv4.
Remove those hacks and add a clean way to use nfnetlink_log.
Signed-off-by:
Patrick McHardy <kaber@trash.net>
Showing
- include/linux/netfilter/Kbuild 1 addition, 0 deletionsinclude/linux/netfilter/Kbuild
- include/linux/netfilter/xt_NFLOG.h 18 additions, 0 deletionsinclude/linux/netfilter/xt_NFLOG.h
- include/linux/netfilter_ipv4/ipt_LOG.h 1 addition, 1 deletioninclude/linux/netfilter_ipv4/ipt_LOG.h
- include/linux/netfilter_ipv6/ip6t_LOG.h 1 addition, 1 deletioninclude/linux/netfilter_ipv6/ip6t_LOG.h
- net/ipv4/netfilter/ipt_LOG.c 2 additions, 7 deletionsnet/ipv4/netfilter/ipt_LOG.c
- net/ipv6/netfilter/ip6t_LOG.c 2 additions, 7 deletionsnet/ipv6/netfilter/ip6t_LOG.c
- net/netfilter/Kconfig 11 additions, 0 deletionsnet/netfilter/Kconfig
- net/netfilter/Makefile 1 addition, 0 deletionsnet/netfilter/Makefile
- net/netfilter/xt_NFLOG.c 86 additions, 0 deletionsnet/netfilter/xt_NFLOG.c
Please register or sign in to comment