diff options
author | Florian Westphal <fw@strlen.de> | 2018-06-18 09:18:28 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-06-27 23:44:04 +0200 |
commit | be70918eab26e0c5fe219fefab325056144976d9 (patch) | |
tree | ab256347ade0a13ccc8f91da83282436a18c8957 /iptables-test.py | |
parent | d49ba500efd4dc50eef10324f3c0b4f7ce5d6e3e (diff) |
xtables: rename xt-multi binaries to -nft, -legacy
This adds a clear distinction between old iptables (formerly
xtables-multi, now xtables-legacy-multi) and new iptables
(formerly xtables-compat-multi, now xtables-nft-multi).
Users will get the ip/ip6tables names via symbolic links, having
a distinct name postfix for the legacy/nft variants helps to
make a clear distinction, as iptables-nft will always use
nf_tables and iptables-legacy always uses get/setsockopt wheres
"iptables" could be symlinked to either -nft or -legacy.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables-test.py')
-rwxr-xr-x | iptables-test.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/iptables-test.py b/iptables-test.py index 75095d2d..9bfb8086 100755 --- a/iptables-test.py +++ b/iptables-test.py @@ -269,6 +269,8 @@ def main(): parser.add_argument('filename', nargs='?', metavar='path/to/file.t', help='Run only this test') + parser.add_argument('-l', '--legacy', action='store_true', + help='Test iptables-legacy') parser.add_argument('-m', '--missing', action='store_true', help='Check for missing tests') parser.add_argument('-n', '--nftables', action='store_true', @@ -283,9 +285,9 @@ def main(): return global EXECUTEABLE - EXECUTEABLE = "xtables-multi" + EXECUTEABLE = "xtables-legacy-multi" if args.nftables: - EXECUTEABLE = "xtables-compat-multi" + EXECUTEABLE = "xtables-nft-multi" if os.getuid() != 0: print "You need to be root to run this, sorry" |