]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: extend NFT_MSG_DELTABLE to support flushing the ruleset
authorArturo Borrero <arturo.borrero.glez@gmail.com>
Tue, 2 Sep 2014 14:42:26 +0000 (16:42 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 9 Sep 2014 14:31:26 +0000 (16:31 +0200)
commita49eb7ff6607fe2e0b87bc25b21ce9a5e92e1179
tree21fb83c32a8606b8a1382b860bc87abdf8a9a3a4
parentb5825f53d2bbc534a2e7df57da802c403d957c8a
netfilter: nf_tables: extend NFT_MSG_DELTABLE to support flushing the ruleset

This patch extend the NFT_MSG_DELTABLE call to support flushing the entire
ruleset.

The options now are:
 * No family speficied, no table specified: flush all the ruleset.
 * Family specified, no table specified: flush all tables in the AF.
 * Family specified, table specified: flush the given table.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c