Home
last modified time | relevance | path

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

/linux-2.6.39/net/xfrm/
Dxfrm_policy.c1127 newp->xfrm_nr = old->xfrm_nr; in clone_policy()
1131 newp->xfrm_nr*sizeof(struct xfrm_tmpl)); in clone_policy()
1180 for (nx=0, i = 0; i < policy->xfrm_nr; i++) { in xfrm_tmpl_resolve_one()
1237 if (cnx + pols[i]->xfrm_nr >= XFRM_MAX_DEPTH) { in xfrm_tmpl_resolve()
1579 *num_xfrms = pols[0]->xfrm_nr; in xfrm_expand_policies()
1594 (*num_xfrms) += pols[1]->xfrm_nr; in xfrm_expand_policies()
2036 int xfrm_nr; in __xfrm_policy_check() local
2139 if (ti + pols[pi]->xfrm_nr >= XFRM_MAX_DEPTH) { in __xfrm_policy_check()
2143 for (i = 0; i < pols[pi]->xfrm_nr; i++) in __xfrm_policy_check()
2146 xfrm_nr = ti; in __xfrm_policy_check()
[all …]
Dxfrm_user.c1193 xp->xfrm_nr = nr; in copy_templates()
1251 pol->xfrm_nr = 0; in copy_from_user_tmpl()
1397 if (xp->xfrm_nr == 0) in copy_to_user_tmpl()
1400 for (i = 0; i < xp->xfrm_nr; i++) { in copy_to_user_tmpl()
1417 sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr, vec); in copy_to_user_tmpl()
1986 for (i = 0; i < xp->xfrm_nr; i++, ut++) { in xfrm_add_acquire()
2526 + nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr) in xfrm_acquire_msgsize()
2650 + nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr) in xfrm_polexpire_msgsize()
2709 int len = nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr); in xfrm_notify_policy()
/linux-2.6.39/net/key/
Daf_key.c1840 for (i=0; i<xp->xfrm_nr; i++) { in check_reqid()
1872 struct xfrm_tmpl *t = xp->xfrm_vec + xp->xfrm_nr; in parse_ipsecrequest()
1875 if (xp->xfrm_nr >= XFRM_MAX_DEPTH) in parse_ipsecrequest()
1915 xp->xfrm_nr++; in parse_ipsecrequest()
1954 for (i=0; i<xp->xfrm_nr; i++) { in pfkey_xfrm_policy2msg_size()
1964 (xp->xfrm_nr * sizeof(struct sadb_x_ipsecrequest)) + in pfkey_xfrm_policy2msg_size()
2069 if (xp->xfrm_nr) in pfkey_xfrm_policy2msg()
2078 for (i=0; i<xp->xfrm_nr; i++) { in pfkey_xfrm_policy2msg()
2254 xp->xfrm_nr = 0; in pfkey_spdadd()
3185 xp->xfrm_nr = 0; in pfkey_compile_policy()
/linux-2.6.39/include/net/
Dxfrm.h519 u8 xfrm_nr; member