Lines Matching refs:ct
25 struct nf_conntrack_tuple *ctt = &flow->ct->tuplehash[dir].tuple;
52 struct flow_offload *flow_offload_alloc(struct nf_conn *ct)
56 if (unlikely(nf_ct_is_dying(ct)))
63 refcount_inc(&ct->ct_general.use);
64 flow->ct = ct;
69 if (ct->status & IPS_SRC_NAT)
71 if (ct->status & IPS_DST_NAT)
170 static void flow_offload_fixup_ct(struct nf_conn *ct)
172 struct net *net = nf_ct_net(ct);
173 int l4num = nf_ct_protonum(ct);
179 flow_offload_fixup_tcp(&ct->proto.tcp);
181 timeout = tn->timeouts[ct->proto.tcp.state];
186 test_bit(IPS_SEEN_REPLY_BIT, &ct->status) ?
198 if (nf_flow_timeout_delta(READ_ONCE(ct->timeout)) > (__s32)timeout)
199 WRITE_ONCE(ct->timeout, nfct_time_stamp + timeout);
217 nf_ct_put(flow->ct);
259 struct net *net = nf_ct_net(flow->ct);
260 int l4num = nf_ct_protonum(flow->ct);
297 nf_ct_offload_timeout(flow->ct);
345 clear_bit(IPS_OFFLOAD_BIT, &flow->ct->status);
347 flow_offload_fixup_ct(flow->ct);
369 if (unlikely(nf_ct_is_dying(flow->ct)))
421 nf_ct_is_dying(flow->ct) ||
575 if (net_eq(nf_ct_net(flow->ct), dev_net(dev)) &&