summaryrefslogtreecommitdiffstats
path: root/ip6tables.c
diff options
context:
space:
mode:
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=yasuyuki/emailAddress=yasuyuki@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=yasuyuki/emailAddress=yasuyuki@netfilter.org>2006-04-15 03:09:37 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=yasuyuki/emailAddress=yasuyuki@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=yasuyuki/emailAddress=yasuyuki@netfilter.org>2006-04-15 03:09:37 +0000
commit2dfe0f2daaae4cd97075d2a03a8830d1814ec2f3 (patch)
treedb34a75d1f9e67e5146e3e363fd1165c7ad06822 /ip6tables.c
parentfcd2fdd2a22bbc0530e09ac00118ea2f4732d87f (diff)
[IP6TABLES] kill manual comparing protocol name with "ipv6-icmp".
Diffstat (limited to 'ip6tables.c')
-rw-r--r--ip6tables.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ip6tables.c b/ip6tables.c
index 00c4f6d..a375a2e 100644
--- a/ip6tables.c
+++ b/ip6tables.c
@@ -222,6 +222,7 @@ static const struct pprot chain_protos[] = {
{ "tcp", IPPROTO_TCP },
{ "udp", IPPROTO_UDP },
{ "icmpv6", IPPROTO_ICMPV6 },
+ { "ipv6-icmp", IPPROTO_ICMPV6 },
{ "esp", IPPROTO_ESP },
{ "ah", IPPROTO_AH },
};
@@ -1759,7 +1760,6 @@ int do_command6(int argc, char *argv[], char **table, ip6tc_handle_t *handle)
char *protocol = NULL;
const char *modprobe = NULL;
int proto_used = 0;
- char icmp6p[] = "icmpv6";
memset(&fw, 0, sizeof(fw));
@@ -1928,8 +1928,6 @@ int do_command6(int argc, char *argv[], char **table, ip6tc_handle_t *handle)
*protocol = tolower(*protocol);
protocol = argv[optind-1];
- if ( strcmp(protocol,"ipv6-icmp") == 0)
- protocol = icmp6p;
fw.ipv6.proto = parse_protocol(protocol);
fw.ipv6.flags |= IP6T_F_PROTO;