netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC][PATCH] nftables: add slash to chain syntax
@ 2013-11-30 23:20 Phil Oester
  2013-11-30 23:22 ` Phil Oester
  0 siblings, 1 reply; 4+ messages in thread
From: Phil Oester @ 2013-11-30 23:20 UTC (permalink / raw)
  To: netfilter-devel

The current syntax when handling chains seems counterintuitive to me.  I would
expect that "add chain" would have the name of the chain directly after the
keyword "chain".  But instead, the name of the table is there, with the chain
after.  I think a better syntax might be this:

        add chain <table>/<chain>

which seems clearer to me.  And it has the added benefit of following the
"everything is a file" paradigm.  Who knows - maybe someday we can add a sysfs
interface for nftables, and this will fit nicely within a tree:

        nftables
          tables
            chains
              rules

Thoughts?  Attached patch is a general proof of concept.

Phil


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

end of thread, other threads:[~2013-12-04 15:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-30 23:20 [RFC][PATCH] nftables: add slash to chain syntax Phil Oester
2013-11-30 23:22 ` Phil Oester
2013-12-04 14:05   ` Pablo Neira Ayuso
2013-12-04 15:16     ` Arturo Borrero Gonzalez

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).