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-22 14:10:53 +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-22 14:10:53 +0000
commitd80c89992996ea5a58576e8d55a047243143876f (patch)
treef0e3e44030eb3278ec8098e53e2acd2b02154bf0 /iptables.c
parent55c79c9d91f1125c5ef97e3046dbad832b32cc10 (diff)
[PATCH] proto_to_name duplication (Phil Oester <kernel@linuxace.com>)
Update multiport match to use the iptables version of proto_to_name instead of reinventing the wheel.
Diffstat (limited to 'iptables.c')
-rw-r--r--iptables.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/iptables.c b/iptables.c
index 28917cf..74925af 100644
--- a/iptables.c
+++ b/iptables.c
@@ -229,9 +229,10 @@ static const struct pprot chain_protos[] = {
{ "esp", IPPROTO_ESP },
{ "ah", IPPROTO_AH },
{ "sctp", IPPROTO_SCTP },
+ { "dccp", IPPROTO_DCCP },
};
-static char *
+char *
proto_to_name(u_int8_t proto, int nolookup)
{
unsigned int i;