• Home
  • Raw
  • Download

Lines Matching refs:ut

1525 static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut,  in copy_templates()  argument
1531 for (i = 0; i < nr; i++, ut++) { in copy_templates()
1534 memcpy(&t->id, &ut->id, sizeof(struct xfrm_id)); in copy_templates()
1535 memcpy(&t->saddr, &ut->saddr, in copy_templates()
1537 t->reqid = ut->reqid; in copy_templates()
1538 t->mode = ut->mode; in copy_templates()
1539 t->share = ut->share; in copy_templates()
1540 t->optional = ut->optional; in copy_templates()
1541 t->aalgos = ut->aalgos; in copy_templates()
1542 t->ealgos = ut->ealgos; in copy_templates()
1543 t->calgos = ut->calgos; in copy_templates()
1546 t->encap_family = ut->family; in copy_templates()
1550 static int validate_tmpl(int nr, struct xfrm_user_tmpl *ut, u16 family) in validate_tmpl() argument
1568 if (!ut[i].family) in validate_tmpl()
1569 ut[i].family = family; in validate_tmpl()
1571 switch (ut[i].mode) { in validate_tmpl()
1576 if (ut[i].family != prev_family) in validate_tmpl()
1580 if (ut[i].mode >= XFRM_MODE_MAX) in validate_tmpl()
1583 prev_family = ut[i].family; in validate_tmpl()
1585 switch (ut[i].family) { in validate_tmpl()
1596 if (!xfrm_id_proto_valid(ut[i].id.proto)) in validate_tmpl()
2343 struct xfrm_user_tmpl *ut; in xfrm_add_acquire() local
2374 ut = nla_data(rt); in xfrm_add_acquire()
2376 for (i = 0; i < xp->xfrm_nr; i++, ut++) { in xfrm_add_acquire()
2381 x->props.family = ut->family; in xfrm_add_acquire()
3104 struct xfrm_user_tmpl *ut = (struct xfrm_user_tmpl *) (p + 1); in xfrm_compile_policy() local
3134 nr = ((len - sizeof(*p)) / sizeof(*ut)); in xfrm_compile_policy()
3135 if (validate_tmpl(nr, ut, p->sel.family)) in xfrm_compile_policy()
3149 copy_templates(xp, ut, nr); in xfrm_compile_policy()