Lines Matching refs:ut
972 static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut,
978 for (i = 0; i < nr; i++, ut++) {
981 memcpy(&t->id, &ut->id, sizeof(struct xfrm_id));
982 memcpy(&t->saddr, &ut->saddr,
984 t->reqid = ut->reqid;
985 t->mode = ut->mode;
986 t->share = ut->share;
987 t->optional = ut->optional;
988 t->aalgos = ut->aalgos;
989 t->ealgos = ut->ealgos;
990 t->calgos = ut->calgos;
991 t->encap_family = ut->family;
995 static int validate_tmpl(int nr, struct xfrm_user_tmpl *ut, u16 family)
1003 /* We never validated the ut->family value, so many
1005 * never made and ut->family was ignored because all
1010 if (!ut[i].family)
1011 ut[i].family = family;
1013 switch (ut[i].family) {
1690 struct xfrm_user_tmpl *ut;
1719 ut = RTA_DATA(rt);
1721 for (i = 0; i < xp->xfrm_nr; i++, ut++) {
1726 x->props.family = ut->family;
2282 struct xfrm_user_tmpl *ut = (struct xfrm_user_tmpl *) (p + 1);
2312 nr = ((len - sizeof(*p)) / sizeof(*ut));
2313 if (validate_tmpl(nr, ut, p->sel.family))
2327 copy_templates(xp, ut, nr);