Fix "--match set" support for newer iptables
commitc384434909a099666798a96808ef1681d24534fa
authorFaidon Liambotis <paravoid@debian.org>
Mon, 11 Jul 2011 11:55:01 +0000 (11 14:55 +0300)
committerMax Kellermann <max@duempel.org>
Sun, 17 Jul 2011 14:52:46 +0000 (17 16:52 +0200)
treed1d59624f587082c5a8b4f49e8ec84e477a70424
parentf259ea2438d51f902bd516007b6ee509e2933264
Fix "--match set" support for newer iptables

The set module was merged into Linux 2.6.39 (d956798d) / iptables v1.4.9
(d40f1628). Unfortunately, the same iptables commit that merged it, also
deprecated support for --set in favor of --match-set (which was also
supported previously).

Hence using --set with iptables v1.4.9 results in the following warning,
printed in stderr:
  --set option deprecated, please use --match-set

This adds support for match-set to ferm and adjusts the test suite
accordingly. It does *not* remove "set" but makes it an alias to
"match-set" instead.

Due to the above, this /should/ be backwards-compatible both with older
ferm configurations and older iptables, since --match-set was supported
in the past.
Makefile
NEWS
src/ferm
test/modules/set.ferm
test/modules/set.result