Lines Matching refs:ct

20 static inline int xt_ct_target(struct sk_buff *skb, struct nf_conn *ct)  in xt_ct_target()  argument
26 if (ct) { in xt_ct_target()
27 refcount_inc(&ct->ct_general.use); in xt_ct_target()
28 nf_ct_set(skb, ct, IP_CT_NEW); in xt_ct_target()
30 nf_ct_set(skb, ct, IP_CT_UNTRACKED); in xt_ct_target()
40 struct nf_conn *ct = info->ct; in xt_ct_target_v0() local
42 return xt_ct_target(skb, ct); in xt_ct_target_v0()
49 struct nf_conn *ct = info->ct; in xt_ct_target_v1() local
51 return xt_ct_target(skb, ct); in xt_ct_target_v1()
73 xt_ct_set_helper(struct nf_conn *ct, const char *helper_name, in xt_ct_set_helper() argument
93 help = nf_ct_helper_ext_add(ct, GFP_KERNEL); in xt_ct_set_helper()
104 xt_ct_set_timeout(struct nf_conn *ct, const struct xt_tgchk_param *par, in xt_ct_set_timeout() argument
118 return nf_ct_set_timeout(par->net, ct, par->family, l4proto->l4proto, in xt_ct_set_timeout()
159 struct nf_conn *ct; in xt_ct_tg_check() local
163 ct = NULL; in xt_ct_tg_check()
184 ct = nf_ct_tmpl_alloc(par->net, &zone, GFP_KERNEL); in xt_ct_tg_check()
185 if (!ct) { in xt_ct_tg_check()
191 !nf_ct_ecache_ext_add(ct, info->ct_events, info->exp_events, in xt_ct_tg_check()
203 ret = xt_ct_set_helper(ct, info->helper, par); in xt_ct_tg_check()
214 ret = xt_ct_set_timeout(ct, par, info->timeout); in xt_ct_tg_check()
218 __set_bit(IPS_CONFIRMED_BIT, &ct->status); in xt_ct_tg_check()
220 info->ct = ct; in xt_ct_tg_check()
224 help = nfct_help(ct); in xt_ct_tg_check()
227 nf_ct_tmpl_free(ct); in xt_ct_tg_check()
254 info->ct = info_v1.ct; in xt_ct_tg_check_v0()
282 struct nf_conn *ct = info->ct; in xt_ct_tg_destroy() local
285 if (ct) { in xt_ct_tg_destroy()
286 help = nfct_help(ct); in xt_ct_tg_destroy()
291 nf_ct_destroy_timeout(ct); in xt_ct_tg_destroy()
292 nf_ct_put(info->ct); in xt_ct_tg_destroy()
304 .ct = info->ct, in xt_ct_tg_destroy_v0()
321 .usersize = offsetof(struct xt_ct_target_info, ct),
333 .usersize = offsetof(struct xt_ct_target_info, ct),
345 .usersize = offsetof(struct xt_ct_target_info, ct),