Lines Matching refs:newp
2296 struct xfrm_policy *newp = xfrm_policy_alloc(xp_net(old), GFP_ATOMIC); in clone_policy() local
2299 if (newp) { in clone_policy()
2300 newp->selector = old->selector; in clone_policy()
2302 &newp->security)) { in clone_policy()
2303 kfree(newp); in clone_policy()
2306 newp->lft = old->lft; in clone_policy()
2307 newp->curlft = old->curlft; in clone_policy()
2308 newp->mark = old->mark; in clone_policy()
2309 newp->if_id = old->if_id; in clone_policy()
2310 newp->action = old->action; in clone_policy()
2311 newp->flags = old->flags; in clone_policy()
2312 newp->xfrm_nr = old->xfrm_nr; in clone_policy()
2313 newp->index = old->index; in clone_policy()
2314 newp->type = old->type; in clone_policy()
2315 newp->family = old->family; in clone_policy()
2316 memcpy(newp->xfrm_vec, old->xfrm_vec, in clone_policy()
2317 newp->xfrm_nr*sizeof(struct xfrm_tmpl)); in clone_policy()
2319 xfrm_sk_policy_link(newp, dir); in clone_policy()
2321 xfrm_pol_put(newp); in clone_policy()
2323 return newp; in clone_policy()