summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_ecn.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2002-07-23 13:44:41 +0000
committerHarald Welte <laforge@gnumonks.org>2002-07-23 13:44:41 +0000
commit158b0909fe185e7b6dfe3881add797b6d9bda30a (patch)
treecef6ff78501a7907d02d342b6cda711f9135f2a9 /extensions/libipt_ecn.c
parentb7ff0ae0f43d338bcdaac3e334f95c7835b49774 (diff)
add hint about local-nat.patch to KNOWN_BUGS, make libipt_ecn work
Diffstat (limited to 'extensions/libipt_ecn.c')
-rw-r--r--extensions/libipt_ecn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libipt_ecn.c b/extensions/libipt_ecn.c
index 7dcee2c8..92bdbf06 100644
--- a/extensions/libipt_ecn.c
+++ b/extensions/libipt_ecn.c
@@ -83,7 +83,7 @@ parse(int c, char **argv, int invert, unsigned int *flags,
if (string_to_number(optarg, 0, 3, &result))
exit_error(PARAMETER_PROBLEM,
"ECN match: Value out of range");
- einfo->ip_ect = result;
+ einfo->ip_ect = (result << IPT_ECN_SHIFT);
break;
default:
return 0;