netfilter: x_tables: Pass struct net in xt_action_param
As xt_action_param lives on the stack this does not bloat any persistent data structures. This is a first step in making netfilter code that needs to know which network namespace it is executing in simpler. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Esse commit está contido em:

commit de
Pablo Neira Ayuso

pai
6aa187f21c
commit
156c196f60
@@ -95,6 +95,7 @@ static int em_ipset_match(struct sk_buff *skb, struct tcf_ematch *em,
|
||||
if (skb->skb_iif)
|
||||
indev = dev_get_by_index_rcu(em->net, skb->skb_iif);
|
||||
|
||||
acpar.net = em->net;
|
||||
acpar.in = indev ? indev : dev;
|
||||
acpar.out = dev;
|
||||
|
||||
|
Referência em uma nova issue
Block a user