netfilter: x_tables: added hook number into match extension parameter structure.

Signed-off-by: Evgeniy Polyakov <[email protected]>
Signed-off-by: Patrick McHardy <[email protected]>
This commit is contained in:
Evgeniy Polyakov 2009-06-04 16:54:42 +02:00 • committed by Patrick McHardy
commit a5e7882096
4 changed files with 7 additions and 5 deletions

View file

@ -343,7 +343,7 @@ ipt_do_table(struct sk_buff *skb,
mtpar.in = tgpar.in = in;
mtpar.out = tgpar.out = out;
mtpar.family = tgpar.family = NFPROTO_IPV4;
tgpar.hooknum = hook;
mtpar.hooknum = tgpar.hooknum = hook;
IP_NF_ASSERT(table->valid_hooks & (1 << hook));
xt_info_rdlock_bh();