]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
iptables: fix wrong error messages
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 6 Sep 2012 22:55:18 +0000 (22:55 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 8 Sep 2012 21:44:50 +0000 (23:44 +0200)
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 <pablo@netfilter.org>
iptables/ip6tables.c
iptables/iptables.c

index b191d5df677b3cead97fbba0145c891a823cd686..7a16b974006b11a5990067ef61857a4831a3af08 100644 (file)
@@ -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[]
index 03ac63b89655113f7df268dc26f33edaeabd4cf9..9e3d696a69ff342bc451427a3b9f88b52eb483fa 100644 (file)
@@ -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)