path: root/iptables/iptables.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/iptables.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/iptables.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/iptables.c b/iptables/iptables.c
index 03ac63b8..9e3d696a 100644
--- a/iptables/iptables.c
+++ b/iptables/iptables.c
@@ -81,7 +81,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 OPT_FRAGMENT 0x00800U
#define NUMBER_OF_OPT ARRAY_SIZE(optflags)