diff options
author | Harald Welte <laforge@gnumonks.org> | 2006-04-21 11:56:30 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2006-04-21 11:56:30 +0000 |
commit | 0eca33f8a830d1aaca53b590abe791109a9524e3 (patch) | |
tree | bbb846708e68471e699337d271f2b7dca4864b7a /iptables.c | |
parent | 2c627cf60cfb1a4e67aea1b2333f2a11e23fecd8 (diff) |
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)
Diffstat (limited to 'iptables.c')
-rw-r--r-- | iptables.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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' }; |