summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_tables_api.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso2017-02-10 12:08:17 +0100
committerPablo Neira Ayuso2017-02-12 14:45:11 +0100
commit8c4d4e8b5626fec965fd5034e5bd5e57790f243f (patch)
treee8ce0acf10108f74d0ce8cd150f061baff0686bf /net/netfilter/nf_tables_api.c
parentnetfilter: nfnetlink: add nfnetlink_rcv_skb_batch() (diff)
downloadkernel-qcow2-linux-8c4d4e8b5626fec965fd5034e5bd5e57790f243f.tar.gz
kernel-qcow2-linux-8c4d4e8b5626fec965fd5034e5bd5e57790f243f.tar.xz
kernel-qcow2-linux-8c4d4e8b5626fec965fd5034e5bd5e57790f243f.zip
netfilter: nfnetlink: allow to check for generation ID
This patch allows userspace to specify the generation ID that has been used to build an incremental batch update. If userspace specifies the generation ID in the batch message as attribute, then nfnetlink compares it to the current generation ID so you make sure that you work against the right baseline. Otherwise, bail out with ERESTART so userspace knows that its changeset is stale and needs to respin. Userspace can do this transparently at the cost of taking slightly more time to refresh caches and rework the changeset. This check is optional, if there is no NFNL_BATCH_GENID attribute in the batch begin message, then no check is performed. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_tables_api.c')
0 files changed, 0 insertions, 0 deletions