path: root/iptables/xtables-restore.c
diff options
authorFlorian Westphal <>2018-06-18 13:27:59 +0200
committerFlorian Westphal <>2018-06-18 14:52:07 +0200
commitc9f5e18d72d3a010e9a53024290f9f4802ada9fd (patch)
treeb4679a9e2e2ace115ba45dc0cc18efdd40a34b98 /iptables/xtables-restore.c
parente5fed16ab0b0da71dc92b052b3858d20ad9d542b (diff)
xtables: add nf_tables vs. legacy postfix to version strings
-V now yields: arptables (nf_tables) ebtables 1.6.2 (nf_tables) ip6tables v1.6.2 (legacy) ip6tables v1.6.2 (nf_tables) ip6tables-restore v1.6.2 (nf_tables) ip6tables-save v1.6.2 (nf_tables) ip6tables-restore v1.6.2 (legacy) ip6tables-restore-translate v1.6.2 ip6tables-save v1.6.2 (legacy) ip6tables-translate v1.6.2 (nf_tables) iptables v1.6.2 (legacy) iptables v1.6.2 (nf_tables) iptables-restore v1.6.2 (nf_tables) iptables-save v1.6.2 (nf_tables) iptables-restore v1.6.2 (legacy) iptables-restore-translate v1.6.2 iptables-save v1.6.2 (legacy) iptables-translate v1.6.2 (nf_tables) This allows to see wheter "iptables" is using old set/getsockopt or new nf_tables infrastructure. Suggested-by: Harald Welte <> Signed-off-by: Florian Westphal <>
Diffstat (limited to 'iptables/xtables-restore.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c
index 3270ec02..4a768535 100644
--- a/iptables/xtables-restore.c
+++ b/iptables/xtables-restore.c
@@ -485,7 +485,7 @@ xtables_restore_main(int family, const char *progname, int argc, char *argv[])
verbose = 1;
case 'V':
- printf("%s v%s\n", prog_name, prog_vers);
+ printf("%s v%s (nf_tables)\n", prog_name, prog_vers);
case 't':
p.testing = 1;