Lines Matching refs:nla
292 const struct nlattr *nla, *attrs;
303 nla_for_each_attr(nla, attrs, len, remaining) {
308 err = xfrm_nla_cpy(dst, nla, nla_len(nla));
311 err = xfrm_xlate64_attr(dst, nla);
403 struct nlattr *nla;
415 nla = dst + *pos;
417 memcpy(nla, src, nla_attr_size(copy_len));
418 nla->nla_len = nla_attr_size(payload);
420 nlmsg->nlmsg_len += nla->nla_len;
428 static int xfrm_xlate32_attr(void *dst, const struct nlattr *nla,
432 int type = nla_type(nla);
442 if (nla_len(nla) < compat_policy[type].len) {
452 if (nla_len(nla) != compat_policy[type].len) {
456 err = xfrm_attr_cpy32(dst, pos, nla, size, pol_len32, pol_len64);
461 return xfrm_attr_cpy32(dst, pos, nla, size, nla_len(nla), nla_len(nla));