netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nftables add vs replace
@ 2014-01-21 11:06 Patrick McHardy
  2014-01-21 11:27 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 20+ messages in thread
From: Patrick McHardy @ 2014-01-21 11:06 UTC (permalink / raw)
  To: netfilter-devel; +Cc: pablo

We currently only support "add table" and "add chain" with NLM_F_EXCL.
This means we can't replace entire tables without a lot of extra effort,
also its not possible to create tables/chains just in case they don't
already exist.

To fix this, I'd propose to add two new commands, so we have the following:

- add: add without NLM_F_EXCL
- create: add with NLM_F_EXCL
- replace: replace the entire thing

This most likely will also require updates to the transaction handling
so we don't only process rules, but table, chain and set updates in a
transaction.

Comments?

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2014-01-22  9:30 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-21 11:06 nftables add vs replace Patrick McHardy
2014-01-21 11:27 ` Pablo Neira Ayuso
2014-01-21 11:32   ` Patrick McHardy
2014-01-21 11:37   ` Arturo Borrero Gonzalez
2014-01-21 11:45     ` Patrick McHardy
2014-01-21 15:15       ` Phil Oester
2014-01-21 17:37         ` Patrick McHardy
2014-01-22  8:38       ` Pablo Neira Ayuso
2014-01-22  8:54         ` Patrick McHardy
2014-01-22  9:17           ` Pablo Neira Ayuso
2014-01-22  9:30             ` Patrick McHardy
2014-01-21 11:46     ` Tomasz Bursztyka
2014-01-21 11:49       ` Patrick McHardy
2014-01-21 12:08         ` Tomasz Bursztyka
2014-01-21 12:11           ` Patrick McHardy
2014-01-21 12:17             ` Tomasz Bursztyka
2014-01-21 12:25               ` Patrick McHardy
2014-01-21 12:49                 ` Tomasz Bursztyka
2014-01-21 14:05                   ` Arturo Borrero Gonzalez
2014-01-21 15:10                     ` Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).