summaryrefslogtreecommitdiffstats
path: root/iptables.c
diff options
context:
space:
mode:
authorPatrick McHardyJesper Brouer <kaber@trash.nethawk@diku.dk>2006-07-25 01:50:48 +0000
committerPatrick McHardyPatrick McHardy <kaber@trash.netkaber@trash.net>2006-07-25 01:50:48 +0000
commitc1eae41e1957db56aaf7afcafa2f097042fa4217 (patch)
treea80ff9f6fa1b0710d477d84a56138e5a0def0233 /iptables.c
parenta6c1d926f6c3c00e0c1875d80b9579c95bde2cfa (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 74925af0..28917cf1 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;