summaryrefslogtreecommitdiffstats
path: root/iptables.c
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-07-25 01:50:48 +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-07-25 01:50:48 +0000
commit27a579fceeabfdffd47d1e6618e0fa5d8dfc2b93 (patch)
treea80ff9f6fa1b0710d477d84a56138e5a0def0233 /iptables.c
parentd80c89992996ea5a58576e8d55a047243143876f (diff)
Revert "proto_to_name duplication" patch, as noticed by Yasuyuki it can cause
invalid arguments to get accepted.
Diffstat (limited to 'iptables.c')
-rw-r--r--iptables.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/iptables.c b/iptables.c
index 74925af..28917cf 100644
--- a/iptables.c
+++ b/iptables.c
@@ -229,10 +229,9 @@ static const struct pprot chain_protos[] = {
{ "esp", IPPROTO_ESP },
{ "ah", IPPROTO_AH },
{ "sctp", IPPROTO_SCTP },
- { "dccp", IPPROTO_DCCP },
};
-char *
+static char *
proto_to_name(u_int8_t proto, int nolookup)
{
unsigned int i;