]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
cmdflags is used in cmd2char() to return the option for a command. It uses the
authorHarald Welte <laforge@gnumonks.org>
Fri, 21 Apr 2006 11:56:30 +0000 (11:56 +0000)
committerHarald Welte <laforge@gnumonks.org>
Fri, 21 Apr 2006 11:56:30 +0000 (11:56 +0000)
bit position of the command mask as an index in the array.  There's no entry for
CMD_CHECK (0x0800U), so lookups for CMD_RENAME_CHAIN (0x1000U) index outside the
array. (Closes: #463)

ip6tables.c
iptables.c

index a375a2e9832aa8182c41317bd6d9f6bbc347c6ba..ae3cb6214a9e1b4f5bfbdcd1359e1110d7a99578 100644 (file)
@@ -81,8 +81,7 @@
 #define CMD_NEW_CHAIN          0x0100U
 #define CMD_DELETE_CHAIN       0x0200U
 #define CMD_SET_POLICY         0x0400U
-#define CMD_CHECK              0x0800U
-#define CMD_RENAME_CHAIN       0x1000U
+#define CMD_RENAME_CHAIN       0x0800U
 #define NUMBER_OF_CMD  13
 static const char cmdflags[] = { 'I', 'D', 'D', 'R', 'A', 'L', 'F', 'Z',
                                 'N', 'X', 'P', 'E' };
index e79d64f1af0fd8d8f9556bcca6de27f9d9757bf0..4cb9ae4d167268d7ae85e35bf4ea324b50b5da38 100644 (file)
@@ -79,8 +79,7 @@
 #define CMD_NEW_CHAIN          0x0100U
 #define CMD_DELETE_CHAIN       0x0200U
 #define CMD_SET_POLICY         0x0400U
-#define CMD_CHECK              0x0800U
-#define CMD_RENAME_CHAIN       0x1000U
+#define CMD_RENAME_CHAIN       0x0800U
 #define NUMBER_OF_CMD  13
 static const char cmdflags[] = { 'I', 'D', 'D', 'R', 'A', 'L', 'F', 'Z',
                                 'N', 'X', 'P', 'E' };