Lines Matching refs:tmpl
177 static int xfrm_tmpl_parse(struct xfrm_user_tmpl *tmpl, in xfrm_tmpl_parse() argument
187 xfrm_mode_parse(&tmpl->mode, &argc, &argv); in xfrm_tmpl_parse()
190 xfrm_reqid_parse(&tmpl->reqid, &argc, &argv); in xfrm_tmpl_parse()
195 tmpl->optional = 0; in xfrm_tmpl_parse()
197 tmpl->optional = 1; in xfrm_tmpl_parse()
208 xfrm_id_parse(&tmpl->saddr, &tmpl->id, &tmpl->family, in xfrm_tmpl_parse()
210 preferred_family = tmpl->family; in xfrm_tmpl_parse()
330 struct xfrm_user_tmpl *tmpl; in xfrm_policy_modify() local
332 if (tmpls_len + sizeof(*tmpl) > sizeof(tmpls_buf)) { in xfrm_policy_modify()
336 tmpl = (struct xfrm_user_tmpl *)((char *)tmpls_buf + tmpls_len); in xfrm_policy_modify()
338 tmpl->family = preferred_family; in xfrm_policy_modify()
339 tmpl->aalgos = (~(__u32)0); in xfrm_policy_modify()
340 tmpl->ealgos = (~(__u32)0); in xfrm_policy_modify()
341 tmpl->calgos = (~(__u32)0); in xfrm_policy_modify()
344 xfrm_tmpl_parse(tmpl, &argc, &argv); in xfrm_policy_modify()
346 tmpls_len += sizeof(*tmpl); in xfrm_policy_modify()