Home
last modified time | relevance | path

Searched refs:xfrm_nr (Results 1 – 3 of 3) sorted by relevance

/net/xfrm/
Dxfrm_policy.c1332 newp->xfrm_nr = old->xfrm_nr; in clone_policy()
1337 newp->xfrm_nr*sizeof(struct xfrm_tmpl)); in clone_policy()
1395 for (nx = 0, i = 0; i < policy->xfrm_nr; i++) { in xfrm_tmpl_resolve_one()
1455 if (cnx + pols[i]->xfrm_nr >= XFRM_MAX_DEPTH) { in xfrm_tmpl_resolve()
1714 *num_xfrms = pols[0]->xfrm_nr; in xfrm_expand_policies()
1730 (*num_xfrms) += pols[1]->xfrm_nr; in xfrm_expand_policies()
2330 int xfrm_nr; in __xfrm_policy_check() local
2437 if (ti + pols[pi]->xfrm_nr >= XFRM_MAX_DEPTH) { in __xfrm_policy_check()
2441 for (i = 0; i < pols[pi]->xfrm_nr; i++) in __xfrm_policy_check()
2444 xfrm_nr = ti; in __xfrm_policy_check()
[all …]
Dxfrm_user.c1464 xp->xfrm_nr = nr; in copy_templates()
1542 pol->xfrm_nr = 0; in copy_from_user_tmpl()
1688 if (xp->xfrm_nr == 0) in copy_to_user_tmpl()
1691 for (i = 0; i < xp->xfrm_nr; i++) { in copy_to_user_tmpl()
1709 sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr, vec); in copy_to_user_tmpl()
2287 for (i = 0; i < xp->xfrm_nr; i++, ut++) { in xfrm_add_acquire()
2902 + nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr) in xfrm_acquire_msgsize()
3027 + nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr) in xfrm_polexpire_msgsize()
3083 int len = nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr); in xfrm_notify_policy()
/net/key/
Daf_key.c1914 for (i=0; i<xp->xfrm_nr; i++) { in check_reqid()
1946 struct xfrm_tmpl *t = xp->xfrm_vec + xp->xfrm_nr; in parse_ipsecrequest()
1949 if (xp->xfrm_nr >= XFRM_MAX_DEPTH) in parse_ipsecrequest()
1986 xp->xfrm_nr++; in parse_ipsecrequest()
2032 for (i=0; i<xp->xfrm_nr; i++) { in pfkey_xfrm_policy2msg_size()
2042 (xp->xfrm_nr * sizeof(struct sadb_x_ipsecrequest)) + in pfkey_xfrm_policy2msg_size()
2142 if (xp->xfrm_nr) in pfkey_xfrm_policy2msg()
2152 for (i=0; i<xp->xfrm_nr; i++) { in pfkey_xfrm_policy2msg()
2324 xp->xfrm_nr = 0; in pfkey_spdadd()
3295 xp->xfrm_nr = 0; in pfkey_compile_policy()