Lines Matching refs:nlh_src
135 const struct nlmsghdr *nlh_src, u16 type) in xfrm_nlmsg_put_compat() argument
145 nlh_dst = nlmsg_put(skb, nlh_src->nlmsg_pid, nlh_src->nlmsg_seq, in xfrm_nlmsg_put_compat()
146 nlh_src->nlmsg_type, payload, nlh_src->nlmsg_flags); in xfrm_nlmsg_put_compat()
152 switch (nlh_src->nlmsg_type) { in xfrm_nlmsg_put_compat()
165 memcpy(nlmsg_data(nlh_dst), nlmsg_data(nlh_src), src_len); in xfrm_nlmsg_put_compat()
173 memcpy(nlmsg_data(nlh_dst), nlmsg_data(nlh_src), payload); in xfrm_nlmsg_put_compat()
176 const struct xfrm_user_expire *src_ue = nlmsg_data(nlh_src); in xfrm_nlmsg_put_compat()
185 const struct xfrm_user_acquire *src_ua = nlmsg_data(nlh_src); in xfrm_nlmsg_put_compat()
196 const struct xfrm_user_polexpire *src_upe = nlmsg_data(nlh_src); in xfrm_nlmsg_put_compat()
205 const struct xfrm_userspi_info *src_usi = nlmsg_data(nlh_src); in xfrm_nlmsg_put_compat()
221 pr_warn_once("unsupported nlmsg_type %d\n", nlh_src->nlmsg_type); in xfrm_nlmsg_put_compat()
289 static int xfrm_xlate64(struct sk_buff *dst, const struct nlmsghdr *nlh_src) in xfrm_xlate64() argument
291 u16 type = nlh_src->nlmsg_type - XFRM_MSG_BASE; in xfrm_xlate64()
296 nlh_dst = xfrm_nlmsg_put_compat(dst, nlh_src, type); in xfrm_xlate64()
300 attrs = nlmsg_attrdata(nlh_src, xfrm_msg_min[type]); in xfrm_xlate64()
301 len = nlmsg_attrlen(nlh_src, xfrm_msg_min[type]); in xfrm_xlate64()
306 switch (nlh_src->nlmsg_type) { in xfrm_xlate64()
323 static int xfrm_alloc_compat(struct sk_buff *skb, const struct nlmsghdr *nlh_src) in xfrm_alloc_compat() argument
325 u16 type = nlh_src->nlmsg_type - XFRM_MSG_BASE; in xfrm_alloc_compat()
330 pr_warn_once("unsupported nlmsg_type %d\n", nlh_src->nlmsg_type); in xfrm_alloc_compat()
341 err = xfrm_xlate64(skb_shinfo(skb)->frag_list, nlh_src); in xfrm_alloc_compat()