]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
netfilter: nf_tables: fix log/queue expressions for NFPROTO_INET
authorPatrick McHardy <kaber@trash.net>
Thu, 6 Feb 2014 09:17:41 +0000 (09:17 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 6 Feb 2014 10:41:38 +0000 (11:41 +0100)
commitb8ecbee67c732ef9fc47fcf50aed6b7bb6231d98
treedac36b02c3026506d5fe2199ebbd0cc6e10ee61b
parent05513e9e33dbded8124567466a444d32173eecc6
netfilter: nf_tables: fix log/queue expressions for NFPROTO_INET

The log and queue expressions both store the family during ->init() and
use it to deliver packets. This is wrong when used in NFPROTO_INET since
they should both deliver to the actual AF of the packet, not the dummy
NFPROTO_INET.

Use the family from the hook ops to fix this.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_log.c
net/netfilter/nft_queue.c