mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
netfilter: add and use nf_ct_set helper
Add a helper to assign a nf_conn entry and the ctinfo bits to an sk_buff. This avoids changing code in followup patch that merges skb->nfct and skb->nfctinfo into skb->_nfct. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
cb9c68363e
commit
c74454fadd
12 changed files with 24 additions and 34 deletions
|
@ -1559,8 +1559,7 @@ static inline void ip_vs_notrack(struct sk_buff *skb)
|
|||
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_ct_set(skb, untracked, IP_CT_NEW);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue