Lines Matching refs:ipt

73 	struct tcf_ipt *ipt = to_ipt(a);  in tcf_ipt_release()  local
74 ipt_destroy_target(ipt->tcfi_t); in tcf_ipt_release()
75 kfree(ipt->tcfi_tname); in tcf_ipt_release()
76 kfree(ipt->tcfi_t); in tcf_ipt_release()
90 struct tcf_ipt *ipt; in tcf_ipt_init() local
117 ret = tcf_hash_create(index, est, a, sizeof(*ipt), bind); in tcf_ipt_init()
129 ipt = to_ipt(a); in tcf_ipt_init()
149 spin_lock_bh(&ipt->tcf_lock); in tcf_ipt_init()
151 ipt_destroy_target(ipt->tcfi_t); in tcf_ipt_init()
152 kfree(ipt->tcfi_tname); in tcf_ipt_init()
153 kfree(ipt->tcfi_t); in tcf_ipt_init()
155 ipt->tcfi_tname = tname; in tcf_ipt_init()
156 ipt->tcfi_t = t; in tcf_ipt_init()
157 ipt->tcfi_hook = hook; in tcf_ipt_init()
158 spin_unlock_bh(&ipt->tcf_lock); in tcf_ipt_init()
177 struct tcf_ipt *ipt = a->priv; in tcf_ipt() local
183 spin_lock(&ipt->tcf_lock); in tcf_ipt()
185 ipt->tcf_tm.lastuse = jiffies; in tcf_ipt()
186 bstats_update(&ipt->tcf_bstats, skb); in tcf_ipt()
194 par.hooknum = ipt->tcfi_hook; in tcf_ipt()
195 par.target = ipt->tcfi_t->u.kernel.target; in tcf_ipt()
196 par.targinfo = ipt->tcfi_t->data; in tcf_ipt()
205 ipt->tcf_qstats.drops++; in tcf_ipt()
216 spin_unlock(&ipt->tcf_lock); in tcf_ipt()
224 struct tcf_ipt *ipt = a->priv; in tcf_ipt_dump() local
234 t = kmemdup(ipt->tcfi_t, ipt->tcfi_t->u.user.target_size, GFP_ATOMIC); in tcf_ipt_dump()
238 c.bindcnt = ipt->tcf_bindcnt - bind; in tcf_ipt_dump()
239 c.refcnt = ipt->tcf_refcnt - ref; in tcf_ipt_dump()
240 strcpy(t->u.user.name, ipt->tcfi_t->u.kernel.target->name); in tcf_ipt_dump()
242 if (nla_put(skb, TCA_IPT_TARG, ipt->tcfi_t->u.user.target_size, t) || in tcf_ipt_dump()
243 nla_put_u32(skb, TCA_IPT_INDEX, ipt->tcf_index) || in tcf_ipt_dump()
244 nla_put_u32(skb, TCA_IPT_HOOK, ipt->tcfi_hook) || in tcf_ipt_dump()
246 nla_put_string(skb, TCA_IPT_TABLE, ipt->tcfi_tname)) in tcf_ipt_dump()
248 tm.install = jiffies_to_clock_t(jiffies - ipt->tcf_tm.install); in tcf_ipt_dump()
249 tm.lastuse = jiffies_to_clock_t(jiffies - ipt->tcf_tm.lastuse); in tcf_ipt_dump()
250 tm.expires = jiffies_to_clock_t(ipt->tcf_tm.expires); in tcf_ipt_dump()