diff options
author | Patrick McHardy <kaber@trash.net> | 2011-05-25 05:34:04 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-05-25 05:34:04 +0200 |
commit | 790845385fb84ce8e79a96e91fc6c4f7df60713d (patch) | |
tree | 3a0269859e66b8703af172f8e0debe846db124a6 /extensions/libipt_ah.c | |
parent | 17f7937f79af4d260c60cb800e56fc0df0a48b37 (diff) | |
parent | db50b83bc3cd634beb71f38978ad7d035c88ff11 (diff) |
Merge branch 'master' of git://dev.medozas.de/iptables
Diffstat (limited to 'extensions/libipt_ah.c')
-rw-r--r-- | extensions/libipt_ah.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/extensions/libipt_ah.c b/extensions/libipt_ah.c index 53adfd87..8cf167c4 100644 --- a/extensions/libipt_ah.c +++ b/extensions/libipt_ah.c @@ -21,18 +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 = (struct ipt_ah *)m->data; - - ahinfo->spis[1] = 0xFFFFFFFF; -} - static void ah_parse(struct xt_option_call *cb) { struct ipt_ah *ahinfo = cb->data; xtables_option_parse(cb); + if (cb->nvals == 1) + ahinfo->spis[1] = ahinfo->spis[0]; if (cb->invert) ahinfo->invflags |= IPT_AH_INV_SPI; } @@ -97,7 +92,6 @@ 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, |