Lines Matching refs:t
32 static int ipt_init_target(struct net *net, struct xt_entry_target *t, in ipt_init_target() argument
40 target = xt_request_find_target(AF_INET, t->u.user.name, in ipt_init_target()
41 t->u.user.revision); in ipt_init_target()
45 t->u.kernel.target = target; in ipt_init_target()
51 par.targinfo = t->data; in ipt_init_target()
55 ret = xt_check_target(&par, t->u.target_size - sizeof(*t), 0, false); in ipt_init_target()
57 module_put(t->u.kernel.target->me); in ipt_init_target()
63 static void ipt_destroy_target(struct xt_entry_target *t, struct net *net) in ipt_destroy_target() argument
66 .target = t->u.kernel.target, in ipt_destroy_target()
67 .targinfo = t->data, in ipt_destroy_target()
104 struct xt_entry_target *td, *t; in __tcf_ipt_init() local
185 t = kmemdup(td, td->u.target_size, GFP_KERNEL); in __tcf_ipt_init()
186 if (unlikely(!t)) in __tcf_ipt_init()
189 err = ipt_init_target(net, t, tname, hook); in __tcf_ipt_init()
202 ipt->tcfi_t = t; in __tcf_ipt_init()
208 kfree(t); in __tcf_ipt_init()
334 struct xt_entry_target *t; in tcf_ipt_dump() local
344 t = kmemdup(ipt->tcfi_t, ipt->tcfi_t->u.user.target_size, GFP_ATOMIC); in tcf_ipt_dump()
345 if (unlikely(!t)) in tcf_ipt_dump()
350 strcpy(t->u.user.name, ipt->tcfi_t->u.kernel.target->name); in tcf_ipt_dump()
352 if (nla_put(skb, TCA_IPT_TARG, ipt->tcfi_t->u.user.target_size, t) || in tcf_ipt_dump()
364 kfree(t); in tcf_ipt_dump()
370 kfree(t); in tcf_ipt_dump()