path: root/iptables/ip6tables.c
diff options
authorPablo Neira Ayuso <>2012-09-06 22:55:18 +0000
committerPablo Neira Ayuso <>2012-09-08 23:44:50 +0200
commit067a9baf6dc82babe466078ab3c05354c7741271 (patch)
tree89f228eab0e9a766d27ea4224f581bdd3ca77349 /iptables/ip6tables.c
parent3abf5cc5ac0c32eba2436567d25e175d7e0f42bc (diff)
iptables: fix wrong error messages
iptables -P INPUT iptables v1.4.15: -X requires a chain and a policy Try `iptables -h' or 'iptables --help' for more information. Note that it says -X when we have used -P. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'iptables/ip6tables.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/ip6tables.c b/iptables/ip6tables.c
index b191d5df..7a16b974 100644
--- a/iptables/ip6tables.c
+++ b/iptables/ip6tables.c
@@ -85,7 +85,7 @@
#define CMD_CHECK 0x4000U
#define NUMBER_OF_CMD 16
static const char cmdflags[] = { 'I', 'D', 'D', 'R', 'A', 'L', 'F', 'Z',
- 'Z', 'N', 'X', 'P', 'E', 'S', 'C' };
+ 'N', 'X', 'P', 'E', 'S', 'Z', 'C' };
#define NUMBER_OF_OPT ARRAY_SIZE(optflags)
static const char optflags[]