Skip to content

Ipset patches

[email protected] netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ipset: remove the unneeded argvloopsrc/ipset.c+42 -460 replies
2/2ipset: remove unneeded argvloopsrc/ipset.c+37 -420 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/2] Ipset patches

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