Lines Matching refs:ut
1322 static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut, in copy_templates() argument
1328 for (i = 0; i < nr; i++, ut++) { in copy_templates()
1331 memcpy(&t->id, &ut->id, sizeof(struct xfrm_id)); in copy_templates()
1332 memcpy(&t->saddr, &ut->saddr, in copy_templates()
1334 t->reqid = ut->reqid; in copy_templates()
1335 t->mode = ut->mode; in copy_templates()
1336 t->share = ut->share; in copy_templates()
1337 t->optional = ut->optional; in copy_templates()
1338 t->aalgos = ut->aalgos; in copy_templates()
1339 t->ealgos = ut->ealgos; in copy_templates()
1340 t->calgos = ut->calgos; in copy_templates()
1343 t->encap_family = ut->family; in copy_templates()
1347 static int validate_tmpl(int nr, struct xfrm_user_tmpl *ut, u16 family) in validate_tmpl() argument
1362 if (!ut[i].family) in validate_tmpl()
1363 ut[i].family = family; in validate_tmpl()
1365 switch (ut[i].family) { in validate_tmpl()
2077 struct xfrm_user_tmpl *ut; in xfrm_add_acquire() local
2105 ut = nla_data(rt); in xfrm_add_acquire()
2107 for (i = 0; i < xp->xfrm_nr; i++, ut++) { in xfrm_add_acquire()
2112 x->props.family = ut->family; in xfrm_add_acquire()
2753 struct xfrm_user_tmpl *ut = (struct xfrm_user_tmpl *) (p + 1); in xfrm_compile_policy() local
2783 nr = ((len - sizeof(*p)) / sizeof(*ut)); in xfrm_compile_policy()
2784 if (validate_tmpl(nr, ut, p->sel.family)) in xfrm_compile_policy()
2798 copy_templates(xp, ut, nr); in xfrm_compile_policy()