]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: add NFTA_RULE_ID attribute
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 10 Feb 2017 11:08:23 +0000 (12:08 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 12 Feb 2017 13:45:13 +0000 (14:45 +0100)
commit923354fe5352537ee333171865e7661fbf917503
tree58a49f5fc667dea423a331fa5665897c574d1edb
parent3e76258ef32df70de03d07b9213237ebeca7a4ad
netfilter: nf_tables: add NFTA_RULE_ID attribute

This new attribute allows us to uniquely identify a rule in transaction.
Robots may trigger an insertion followed by deletion in a batch, in that
scenario we still don't have a public rule handle that we can use to
delete the rule. This is similar to the NFTA_SET_ID attribute that
allows us to refer to an anonymous set from a batch.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c