]> git.baikalelectronics.ru Git - kernel.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)
commit144fee4c638e5cc21c4570024b9183ae730ead22
treedac36b02c3026506d5fe2199ebbd0cc6e10ee61b
parente62398ba6bde61433cebe4e3297c1dfe03cfaab8
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