summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_MASQUERADE.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-11-04 13:22:40 +0100
committerPatrick McHardy <kaber@trash.net>2008-11-04 13:22:40 +0100
commit5a942f9501f7ce287e1c37c553eb02a1e269e081 (patch)
treeae2aa2308f22746e8d7761b30a418d150fa3a5d4 /extensions/libipt_MASQUERADE.c
parent6362bc843fa1fb4071b3deb5b9363f0c9dd95747 (diff)
Add SCTP/DCCP support to NAT targets
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'extensions/libipt_MASQUERADE.c')
-rw-r--r--extensions/libipt_MASQUERADE.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/libipt_MASQUERADE.c b/extensions/libipt_MASQUERADE.c
index 76707651..32410c09 100644
--- a/extensions/libipt_MASQUERADE.c
+++ b/extensions/libipt_MASQUERADE.c
@@ -77,6 +77,8 @@ static int MASQUERADE_parse(int c, char **argv, int invert, unsigned int *flags,
if (entry->ip.proto == IPPROTO_TCP
|| entry->ip.proto == IPPROTO_UDP
+ || entry->ip.proto == IPPROTO_SCTP
+ || entry->ip.proto == IPPROTO_DCCP
|| entry->ip.proto == IPPROTO_ICMP)
portok = 1;
else
@@ -86,7 +88,7 @@ static int MASQUERADE_parse(int c, char **argv, int invert, unsigned int *flags,
case '1':
if (!portok)
exit_error(PARAMETER_PROBLEM,
- "Need TCP or UDP with port specification");
+ "Need TCP, UDP, SCTP or DCCP with port specification");
if (check_inverse(optarg, &invert, NULL, 0))
exit_error(PARAMETER_PROBLEM,