Lines Matching refs:ct
150 static inline u_int16_t nf_ct_l3num(const struct nf_conn *ct)
152 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num;
155 static inline u_int8_t nf_ct_protonum(const struct nf_conn *ct)
157 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum;
160 #define nf_ct_tuple(ct, dir) (&(ct)->tuplehash[dir].tuple)
167 static inline struct net *nf_ct_net(const struct nf_conn *ct)
169 return read_pnet(&ct->ct_net);
174 nf_conntrack_alter_reply(struct nf_conn *ct,
192 static inline void nf_ct_put(struct nf_conn *ct)
194 NF_CT_ASSERT(ct);
195 nf_conntrack_put(&ct->ct_general);
214 extern void nf_conntrack_hash_insert(struct nf_conn *ct);
215 extern void nf_ct_delete_from_lists(struct nf_conn *ct);
216 extern void nf_ct_insert_dying_list(struct nf_conn *ct);
226 extern void __nf_ct_refresh_acct(struct nf_conn *ct,
233 static inline void nf_ct_refresh_acct(struct nf_conn *ct,
238 __nf_ct_refresh_acct(ct, ctinfo, skb, extra_jiffies, 1);
242 static inline void nf_ct_refresh(struct nf_conn *ct,
246 __nf_ct_refresh_acct(ct, 0, skb, extra_jiffies, 0);
249 extern bool __nf_ct_kill_acct(struct nf_conn *ct,
255 static inline bool nf_ct_kill_acct(struct nf_conn *ct,
259 return __nf_ct_kill_acct(ct, ctinfo, skb, 1);
263 static inline bool nf_ct_kill(struct nf_conn *ct)
265 return __nf_ct_kill_acct(ct, 0, NULL, 0);
269 extern s16 (*nf_ct_nat_offset)(const struct nf_conn *ct,
284 extern void nf_conntrack_free(struct nf_conn *ct);
291 static inline int nf_ct_is_template(const struct nf_conn *ct)
293 return test_bit(IPS_TEMPLATE_BIT, &ct->status);
297 static inline int nf_ct_is_confirmed(struct nf_conn *ct)
299 return test_bit(IPS_CONFIRMED_BIT, &ct->status);
302 static inline int nf_ct_is_dying(struct nf_conn *ct)
304 return test_bit(IPS_DYING_BIT, &ct->status);
307 static inline int nf_ct_is_untracked(const struct nf_conn *ct)
309 return test_bit(IPS_UNTRACKED_BIT, &ct->status);
317 __this_cpu_inc((net)->ct.stat->count)
321 __this_cpu_inc((net)->ct.stat->count); \