[netfilter-cvslog] r6584 - trunk/iptables
laforge at netfilter.org
laforge at netfilter.org
Fri Apr 21 13:56:34 CEST 2006
Author: laforge at netfilter.org
Date: 2006-04-21 13:56:30 +0200 (Fri, 21 Apr 2006)
New Revision: 6584
Modified:
trunk/iptables/ip6tables.c
trunk/iptables/iptables.c
Log:
cmdflags is used in cmd2char() to return the option for a command. It uses the
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)
Modified: trunk/iptables/ip6tables.c
===================================================================
--- trunk/iptables/ip6tables.c 2006-04-21 06:55:36 UTC (rev 6583)
+++ trunk/iptables/ip6tables.c 2006-04-21 11:56:30 UTC (rev 6584)
@@ -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' };
Modified: trunk/iptables/iptables.c
===================================================================
--- trunk/iptables/iptables.c 2006-04-21 06:55:36 UTC (rev 6583)
+++ trunk/iptables/iptables.c 2006-04-21 11:56:30 UTC (rev 6584)
@@ -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' };
More information about the netfilter-cvslog
mailing list