diff options
author | Jan Engelhardt <jengelh@inai.de> | 2015-07-15 14:53:39 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-08-12 19:49:40 +0200 |
commit | 4264de1f270a0fac44dde8ece6fde0a879aebc8e (patch) | |
tree | e77b75bbe0a6bb2c5d7349949d6035c860086017 /extensions/libipt_ah.c | |
parent | 34344db9878ed53b387180362b1be77001e03e45 (diff) |
extensions: restore matching any SPI id by default
This is the same as commit v1.4.15-12-g8a988f6.
If no id option is given, the extensions only match packets with a
zero-valued identification field. This behavior deviates from what it
used to do back in v1.4.10-273-g6944f2c^.
Signed-off-by: Jan Engelhardt <jengelh@inai.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/libipt_ah.c')
-rw-r--r-- | extensions/libipt_ah.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/extensions/libipt_ah.c b/extensions/libipt_ah.c index 8cf167c4..a490729d 100644 --- a/extensions/libipt_ah.c +++ b/extensions/libipt_ah.c @@ -21,6 +21,13 @@ static const struct xt_option_entry ah_opts[] = { XTOPT_TABLEEND, }; +static void ah_init(struct xt_entry_match *m) +{ + struct ipt_ah *ahinfo = (void *)m->data; + + ahinfo->spis[1] = ~0U; +} + static void ah_parse(struct xt_option_call *cb) { struct ipt_ah *ahinfo = cb->data; @@ -92,6 +99,7 @@ static struct xtables_match ah_mt_reg = { .size = XT_ALIGN(sizeof(struct ipt_ah)), .userspacesize = XT_ALIGN(sizeof(struct ipt_ah)), .help = ah_help, + .init = ah_init, .print = ah_print, .save = ah_save, .x6_parse = ah_parse, |