netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 0/2] Ipset patches
@ 2011-01-19 20:26 holger
  2011-01-19 20:26 ` [patch 1/2] ipset: remove the unneeded argvloop holger
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: holger @ 2011-01-19 20:26 UTC (permalink / raw)
  To: Jozsef Kadlecsik; +Cc: netfilter-devel

Hi Jozsef,

what follows are two small patches which remove unneeded argv[]
loops when parsing the ipset commands.  They are in particular no
change in command line handling.

The command line handling can still be improved, as e. g.

 $ ipset -o xml create foo hash:ip
 $ ipset -s add foo 192.168.1.1

both work, but the options are just ignored.  And they don't
make much sense for either 'create' or 'add'.

Also we should consider to make the argument handling a little
more strict, as e. g.

 $ ipset -o xml list foo
 $ ipset list -o xml foo
 $ ipset list foo -o xml

all work.  By removing some of those possibilities it should even
get simpler code wise.

 /holger

-- 

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

end of thread, other threads:[~2011-01-19 21:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-19 20:26 [patch 0/2] Ipset patches holger
2011-01-19 20:26 ` [patch 1/2] ipset: remove the unneeded argvloop holger
2011-01-19 20:26 ` [patch 2/2] ipset: remove " holger
2011-01-19 21:59 ` [patch 0/2] Ipset patches Jozsef Kadlecsik

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