diff options
-rw-r--r-- | extensions/libip6t_dst.c | 3 | ||||
-rw-r--r-- | tests/options-most.rules | 2 |
2 files changed, 5 insertions, 0 deletions
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 |