diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-08-21 11:54:01 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-08-21 12:31:07 +0200 |
commit | 975aeec7d34419fece8710997b6ec88cc0abb580 (patch) | |
tree | 67b31b1f0299addd477962aa305d0d0653b96ee7 | |
parent | de1f06dca906bfcb82d7c7c2d555fbf3229d12b6 (diff) |
libip6t_hbh: restore setting IP6T_OPTS_LEN flag
Bug origin is in commit v1.4.11~26^2~17.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r-- | extensions/libip6t_hbh.c | 1 | ||||
-rw-r--r-- | tests/options-most.rules | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/extensions/libip6t_hbh.c b/extensions/libip6t_hbh.c index 809e80d5..c0389ed8 100644 --- a/extensions/libip6t_hbh.c +++ b/extensions/libip6t_hbh.c @@ -108,6 +108,7 @@ static void hbh_parse(struct xt_option_call *cb) case O_HBH_LEN: if (cb->invert) optinfo->invflags |= IP6T_OPTS_INV_LEN; + optinfo->flags |= IP6T_OPTS_LEN; break; case O_HBH_OPTS: optinfo->optsnr = parse_options(cb->arg, optinfo->opts); diff --git a/tests/options-most.rules b/tests/options-most.rules index 6839d89b..12090911 100644 --- a/tests/options-most.rules +++ b/tests/options-most.rules @@ -94,6 +94,8 @@ -A matches -m hashlimit --hashlimit-upto 1/hour --hashlimit-burst 1 --hashlimit-name mini3 -A matches -m hashlimit --hashlimit-upto 1/day --hashlimit-burst 1 --hashlimit-name mini4 -A matches +-A matches -m hbh ! --hbh-len 5 +-A matches -A matches -m ipvs --vaddr fe80::/64 --vport 1 --vdir REPLY --vmethod GATE --vportctl 21 -A matches -A matches -m length --length 1 |