diff options
author | Patrick McHardy <kaber@trash.net> | 2007-01-11 09:08:22 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2007-01-11 09:08:22 +0000 |
commit | 9561606bd938ed4b2614716a08a2856d4ef5e995 (patch) | |
tree | f51e0e9e85d9f1db5df9490785aad9988fe2ba51 /extensions/libipt_multiport.c | |
parent | 8a0b6ead35931422fbe02c63d9262ad9e40daacc (diff) |
Add UDPLITE multiport support
Diffstat (limited to 'extensions/libipt_multiport.c')
-rw-r--r-- | extensions/libipt_multiport.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/extensions/libipt_multiport.c b/extensions/libipt_multiport.c index 2a10abd4..58b6a0eb 100644 --- a/extensions/libipt_multiport.c +++ b/extensions/libipt_multiport.c @@ -59,6 +59,8 @@ proto_to_name(u_int8_t proto) return "tcp"; case IPPROTO_UDP: return "udp"; + case IPPROTO_UDPLITE: + return "udplite"; case IPPROTO_SCTP: return "sctp"; case IPPROTO_DCCP: @@ -141,16 +143,17 @@ check_proto(const struct ipt_entry *entry) if (entry->ip.invflags & IPT_INV_PROTO) exit_error(PARAMETER_PROBLEM, - "multiport only works with TCP or UDP"); + "multiport only works with TCP, UDP, UDPLITE, SCTP and DCCP"); if ((proto = proto_to_name(entry->ip.proto)) != NULL) return proto; else if (!entry->ip.proto) exit_error(PARAMETER_PROBLEM, - "multiport needs `-p tcp', `-p udp', `-p sctp' or `-p dccp'"); + "multiport needs `-p tcp', `-p udp', `-p udplite', " + "`-p sctp' or `-p dccp'"); else exit_error(PARAMETER_PROBLEM, - "multiport only works with TCP, UDP, SCTP and DCCP"); + "multiport only works with TCP, UDP, UDPLITE, SCTP and DCCP"); } /* Function which parses command options; returns true if it |