Searched refs:xfrm_nr (Results 1 - 4 of 4) sorted by relevance

/linux-4.1.27/net/xfrm/
H A Dxfrm_policy.c1352 newp->xfrm_nr = old->xfrm_nr; clone_policy()
1356 newp->xfrm_nr*sizeof(struct xfrm_tmpl)); clone_policy()
1405 for (nx = 0, i = 0; i < policy->xfrm_nr; i++) { xfrm_tmpl_resolve_one()
1462 if (cnx + pols[i]->xfrm_nr >= XFRM_MAX_DEPTH) { xfrm_tmpl_resolve()
1811 *num_xfrms = pols[0]->xfrm_nr; xfrm_expand_policies()
1826 (*num_xfrms) += pols[1]->xfrm_nr; xfrm_expand_policies()
2450 int xfrm_nr; __xfrm_policy_check() local
2553 if (ti + pols[pi]->xfrm_nr >= XFRM_MAX_DEPTH) { __xfrm_policy_check()
2557 for (i = 0; i < pols[pi]->xfrm_nr; i++) __xfrm_policy_check()
2560 xfrm_nr = ti; __xfrm_policy_check()
2562 xfrm_tmpl_sort(stp, tpp, xfrm_nr, family, net); __xfrm_policy_check()
2572 for (i = xfrm_nr-1, k = 0; i >= 0; i--) { __xfrm_policy_check()
3233 for (i = 0; i < pol->xfrm_nr; i++) { xfrm_policy_migrate()
H A Dxfrm_user.c1327 xp->xfrm_nr = nr; copy_templates()
1385 pol->xfrm_nr = 0; copy_from_user_tmpl()
1528 if (xp->xfrm_nr == 0) copy_to_user_tmpl()
1531 for (i = 0; i < xp->xfrm_nr; i++) { copy_to_user_tmpl()
1549 sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr, vec); copy_to_user_tmpl()
2107 for (i = 0; i < xp->xfrm_nr; i++, ut++) { xfrm_add_acquire()
2685 + nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr) xfrm_acquire_msgsize()
2808 + nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr) xfrm_polexpire_msgsize()
2862 int len = nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr); xfrm_notify_policy()
/linux-4.1.27/net/key/
H A Daf_key.c1858 for (i=0; i<xp->xfrm_nr; i++) { check_reqid()
1890 struct xfrm_tmpl *t = xp->xfrm_vec + xp->xfrm_nr; parse_ipsecrequest()
1893 if (xp->xfrm_nr >= XFRM_MAX_DEPTH) parse_ipsecrequest()
1933 xp->xfrm_nr++; parse_ipsecrequest()
1975 for (i=0; i<xp->xfrm_nr; i++) { pfkey_xfrm_policy2msg_size()
1985 (xp->xfrm_nr * sizeof(struct sadb_x_ipsecrequest)) + pfkey_xfrm_policy2msg_size()
2090 if (xp->xfrm_nr) pfkey_xfrm_policy2msg()
2100 for (i=0; i<xp->xfrm_nr; i++) { pfkey_xfrm_policy2msg()
2272 xp->xfrm_nr = 0; pfkey_spdadd()
3238 xp->xfrm_nr = 0; pfkey_compile_policy()
/linux-4.1.27/include/net/
H A Dxfrm.h545 u8 xfrm_nr; member in struct:xfrm_policy

Completed in 145 milliseconds