You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
netfilter: reduce direct skb->nfct usage
Next patch makes direct skb->nfct access illegal, reduce noise in next patch by using accessors we already have. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
committed by
Pablo Neira Ayuso
parent
6e10148c5c
commit
97a6ad13de
+6
-3
@@ -1554,10 +1554,13 @@ static inline void ip_vs_notrack(struct sk_buff *skb)
|
||||
struct nf_conn *ct = nf_ct_get(skb, &ctinfo);
|
||||
|
||||
if (!ct || !nf_ct_is_untracked(ct)) {
|
||||
nf_conntrack_put(skb->nfct);
|
||||
skb->nfct = &nf_ct_untracked_get()->ct_general;
|
||||
struct nf_conn *untracked;
|
||||
|
||||
nf_conntrack_put(&ct->ct_general);
|
||||
untracked = nf_ct_untracked_get();
|
||||
nf_conntrack_get(&untracked->ct_general);
|
||||
skb->nfct = &untracked->ct_general;
|
||||
skb->nfctinfo = IP_CT_NEW;
|
||||
nf_conntrack_get(skb->nfct);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user