From 5a942f9501f7ce287e1c37c553eb02a1e269e081 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Tue, 4 Nov 2008 13:22:40 +0100 Subject: Add SCTP/DCCP support to NAT targets Signed-off-by: Patrick McHardy --- extensions/libipt_REDIRECT.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extensions/libipt_REDIRECT.c') diff --git a/extensions/libipt_REDIRECT.c b/extensions/libipt_REDIRECT.c index ffef3bf8..e30c1392 100644 --- a/extensions/libipt_REDIRECT.c +++ b/extensions/libipt_REDIRECT.c @@ -84,6 +84,8 @@ static int REDIRECT_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 @@ -93,7 +95,7 @@ static int REDIRECT_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, -- cgit v1.2.3