Lines Matching refs:ut
1345 static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut, in copy_templates() argument
1351 for (i = 0; i < nr; i++, ut++) { in copy_templates()
1354 memcpy(&t->id, &ut->id, sizeof(struct xfrm_id)); in copy_templates()
1355 memcpy(&t->saddr, &ut->saddr, in copy_templates()
1357 t->reqid = ut->reqid; in copy_templates()
1358 t->mode = ut->mode; in copy_templates()
1359 t->share = ut->share; in copy_templates()
1360 t->optional = ut->optional; in copy_templates()
1361 t->aalgos = ut->aalgos; in copy_templates()
1362 t->ealgos = ut->ealgos; in copy_templates()
1363 t->calgos = ut->calgos; in copy_templates()
1366 t->encap_family = ut->family; in copy_templates()
1370 static int validate_tmpl(int nr, struct xfrm_user_tmpl *ut, u16 family) in validate_tmpl() argument
1385 if (!ut[i].family) in validate_tmpl()
1386 ut[i].family = family; in validate_tmpl()
1388 switch (ut[i].family) { in validate_tmpl()
2102 struct xfrm_user_tmpl *ut; in xfrm_add_acquire() local
2130 ut = nla_data(rt); in xfrm_add_acquire()
2132 for (i = 0; i < xp->xfrm_nr; i++, ut++) { in xfrm_add_acquire()
2137 x->props.family = ut->family; in xfrm_add_acquire()
2778 struct xfrm_user_tmpl *ut = (struct xfrm_user_tmpl *) (p + 1); in xfrm_compile_policy() local
2808 nr = ((len - sizeof(*p)) / sizeof(*ut)); in xfrm_compile_policy()
2809 if (validate_tmpl(nr, ut, p->sel.family)) in xfrm_compile_policy()
2823 copy_templates(xp, ut, nr); in xfrm_compile_policy()