]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_ct: add helper set support
authorFlorian Westphal <fw@strlen.de>
Wed, 8 Mar 2017 15:48:44 +0000 (16:48 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 13 Mar 2017 12:42:09 +0000 (13:42 +0100)
commit685483db24abdb4cf6515839900ec8da11e41ad2
tree3256d122501a216f23ab53975cdd891e86628d9c
parentfb03e2b716f0d11531c04cbd45d48cbf9bd317a4
netfilter: nft_ct: add helper set support

this allows to assign connection tracking helpers to
connections via nft objref infrastructure.

The idea is to first specifiy a helper object:

 table ip filter {
    ct helper some-name {
      type "ftp"
      protocol tcp
      l3proto ip
    }
 }

and then assign it via

nft add ... ct helper set "some-name"

helper assignment works for new conntracks only as we cannot expand the
conntrack extension area once it has been committed to the main conntrack
table.

ipv4 and ipv6 protocols are tracked stored separately so
we can also handle families that observe both ipv4 and ipv6 traffic.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nft_ct.c