Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_policy.c2312 newp->xfrm_nr = old->xfrm_nr; in clone_policy()
2317 newp->xfrm_nr*sizeof(struct xfrm_tmpl)); in clone_policy()
2375 for (nx = 0, i = 0; i < policy->xfrm_nr; i++) { in xfrm_tmpl_resolve_one()
2435 if (cnx + pols[i]->xfrm_nr >= XFRM_MAX_DEPTH) { in xfrm_tmpl_resolve()
2688 *num_xfrms = pols[0]->xfrm_nr; in xfrm_expand_policies()
2705 (*num_xfrms) += pols[1]->xfrm_nr; in xfrm_expand_policies()
3555 int xfrm_nr; in __xfrm_policy_check() local
3672 if (ti + pols[pi]->xfrm_nr >= XFRM_MAX_DEPTH) { in __xfrm_policy_check()
3676 for (i = 0; i < pols[pi]->xfrm_nr; i++) in __xfrm_policy_check()
3679 xfrm_nr = ti; in __xfrm_policy_check()
[all …]
Dxfrm_user.c1529 xp->xfrm_nr = nr; in copy_templates()
1607 pol->xfrm_nr = 0; in copy_from_user_tmpl()
1753 if (xp->xfrm_nr == 0) in copy_to_user_tmpl()
1756 for (i = 0; i < xp->xfrm_nr; i++) { in copy_to_user_tmpl()
1774 sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr, vec); in copy_to_user_tmpl()
2459 for (i = 0; i < xp->xfrm_nr; i++, ut++) { in xfrm_add_acquire()
3124 + nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr) in xfrm_acquire_msgsize()
3250 + nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr) in xfrm_polexpire_msgsize()
3307 unsigned int len = nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr); in xfrm_notify_policy()
/kernel/linux/linux-5.10/net/key/
Daf_key.c1918 for (i=0; i<xp->xfrm_nr; i++) { in check_reqid()
1951 struct xfrm_tmpl *t = xp->xfrm_vec + xp->xfrm_nr; in parse_ipsecrequest()
1954 if (xp->xfrm_nr >= XFRM_MAX_DEPTH) in parse_ipsecrequest()
1994 xp->xfrm_nr++; in parse_ipsecrequest()
2040 for (i=0; i<xp->xfrm_nr; i++) { in pfkey_xfrm_policy2msg_size()
2050 (xp->xfrm_nr * sizeof(struct sadb_x_ipsecrequest)) + in pfkey_xfrm_policy2msg_size()
2150 if (xp->xfrm_nr) in pfkey_xfrm_policy2msg()
2160 for (i=0; i<xp->xfrm_nr; i++) { in pfkey_xfrm_policy2msg()
2334 xp->xfrm_nr = 0; in pfkey_spdadd()
3321 xp->xfrm_nr = 0; in pfkey_compile_policy()
/kernel/linux/linux-5.10/include/net/
Dxfrm.h528 u8 xfrm_nr; member