From 0859fdf5d0ae24c88e64246164c4959ad3b0d098 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 21 Aug 2011 11:59:58 +0200 Subject: libip6t_dst: restore setting IP6T_OPTS_LEN flag Bug origin is in commit v1.4.11~26^2~18. Signed-off-by: Jan Engelhardt --- extensions/libip6t_dst.c | 3 +++ tests/options-most.rules | 2 ++ 2 files changed, 5 insertions(+) diff --git a/extensions/libip6t_dst.c b/extensions/libip6t_dst.c index 4125bd3d..3fd4c019 100644 --- a/extensions/libip6t_dst.c +++ b/extensions/libip6t_dst.c @@ -111,6 +111,9 @@ static void dst_parse(struct xt_option_call *cb) xtables_option_parse(cb); switch (cb->entry->id) { + case O_DSTLEN: + optinfo->flags |= IP6T_OPTS_LEN; + break; case O_DSTOPTS: optinfo->optsnr = parse_options(cb->arg, optinfo->opts); optinfo->flags |= IP6T_OPTS_OPTS; diff --git a/tests/options-most.rules b/tests/options-most.rules index 12090911..cd6aab80 100644 --- a/tests/options-most.rules +++ b/tests/options-most.rules @@ -79,6 +79,8 @@ -A matches -A matches -m conntrack ! --ctstate NEW ! --ctproto tcp ! --ctorigsrc ::1/127 ! --ctorigdst ::2/127 ! --ctreplsrc ::2/127 ! --ctrepldst ::2/127 ! --ctorigsrcport 3 ! --ctorigdstport 4 ! --ctreplsrcport 5 ! --ctrepldstport 6 ! --ctstatus ASSURED ! --ctexpire 8:9 -A matches +-A matches -m dst ! --dst-len 12 +-A matches -A matches -p esp -m esp --espspi 1 -A matches -A matches -p esp -m esp --espspi :2 -- cgit v1.2.3