summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org>2006-11-14 07:50:54 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org>2006-11-14 07:50:54 +0000
commit40626ec5e23fc107b698d9ea0c234775808bfe6d (patch)
treee5f5360aad790167f5f9dea718f7c83dc8a60369
parent9ac91e90a41df3858bd22a9658179778f6019490 (diff)
[PATCH] Fix -E (rename) in iptables/ip6tables
Remove ununsed CHECK entry in commands_v_options. It makes -E (rename) working again - generic_opt_check expects options for RENAME not for CHECK at that table index. Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl> Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r--ip6tables.c1
-rw-r--r--iptables.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/ip6tables.c b/ip6tables.c
index 8bb7661..9b1370a 100644
--- a/ip6tables.c
+++ b/ip6tables.c
@@ -170,7 +170,6 @@ static char commands_v_options[NUMBER_OF_CMD][NUMBER_OF_OPT] =
/*NEW_CHAIN*/ {'x','x','x','x','x',' ','x','x','x','x','x'},
/*DEL_CHAIN*/ {'x','x','x','x','x',' ','x','x','x','x','x'},
/*SET_POLICY*/{'x','x','x','x','x',' ','x','x','x','x','x'},
-/*CHECK*/ {'x','+','+','+','x',' ','x',' ',' ','x','x'},
/*RENAME*/ {'x','x','x','x','x',' ','x','x','x','x','x'}
};
diff --git a/iptables.c b/iptables.c
index b627d3a..610e96d 100644
--- a/iptables.c
+++ b/iptables.c
@@ -171,7 +171,6 @@ static char commands_v_options[NUMBER_OF_CMD][NUMBER_OF_OPT] =
/*NEW_CHAIN*/ {'x','x','x','x','x',' ','x','x','x','x','x','x'},
/*DEL_CHAIN*/ {'x','x','x','x','x',' ','x','x','x','x','x','x'},
/*SET_POLICY*/{'x','x','x','x','x',' ','x','x','x','x','x','x'},
-/*CHECK*/ {'x','+','+','+','x',' ','x',' ',' ',' ','x','x'},
/*RENAME*/ {'x','x','x','x','x',' ','x','x','x','x','x','x'}
};