From a6c1d926f6c3c00e0c1875d80b9579c95bde2cfa Mon Sep 17 00:00:00 2001 From: Phil Oester Date: Sat, 22 Jul 2006 14:10:53 +0000 Subject: proto_to_name duplication (Phil Oester ) Update multiport match to use the iptables version of proto_to_name instead of reinventing the wheel. --- iptables.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'iptables.c') diff --git a/iptables.c b/iptables.c index 28917cf1..74925af0 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; -- cgit v1.2.3