mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
netfilter: remove nf_ct_is_untracked
This function is now obsolete and always returns false. This change has no effect on generated code. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
cc41c84b7e
commit
ab8bc7ed86
16 changed files with 17 additions and 49 deletions
|
|
@ -1555,7 +1555,7 @@ static inline void ip_vs_notrack(struct sk_buff *skb)
|
|||
enum ip_conntrack_info ctinfo;
|
||||
struct nf_conn *ct = nf_ct_get(skb, &ctinfo);
|
||||
|
||||
if (!ct || !nf_ct_is_untracked(ct)) {
|
||||
if (ct) {
|
||||
nf_conntrack_put(&ct->ct_general);
|
||||
nf_ct_set(skb, NULL, IP_CT_UNTRACKED);
|
||||
}
|
||||
|
|
@ -1616,7 +1616,7 @@ static inline bool ip_vs_conn_uses_conntrack(struct ip_vs_conn *cp,
|
|||
if (!(cp->flags & IP_VS_CONN_F_NFCT))
|
||||
return false;
|
||||
ct = nf_ct_get(skb, &ctinfo);
|
||||
if (ct && !nf_ct_is_untracked(ct))
|
||||
if (ct)
|
||||
return true;
|
||||
#endif
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -273,11 +273,6 @@ static inline int nf_ct_is_dying(const struct nf_conn *ct)
|
|||
return test_bit(IPS_DYING_BIT, &ct->status);
|
||||
}
|
||||
|
||||
static inline int nf_ct_is_untracked(const struct nf_conn *ct)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Packet is received from loopback */
|
||||
static inline bool nf_is_loopback_packet(const struct sk_buff *skb)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ static inline int nf_conntrack_confirm(struct sk_buff *skb)
|
|||
struct nf_conn *ct = (struct nf_conn *)skb_nfct(skb);
|
||||
int ret = NF_ACCEPT;
|
||||
|
||||
if (ct && !nf_ct_is_untracked(ct)) {
|
||||
if (ct) {
|
||||
if (!nf_ct_is_confirmed(ct))
|
||||
ret = __nf_conntrack_confirm(skb);
|
||||
if (likely(ret == NF_ACCEPT))
|
||||
|
|
|
|||
Loading…
Reference in a new issue