Lines Matching defs:cmh
156 static void svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh)
162 struct in_pktinfo *pki = CMSG_DATA(cmh);
164 cmh->cmsg_level = SOL_IP;
165 cmh->cmsg_type = IP_PKTINFO;
169 cmh->cmsg_len = CMSG_LEN(sizeof(*pki));
174 struct in6_pktinfo *pki = CMSG_DATA(cmh);
177 cmh->cmsg_level = SOL_IPV6;
178 cmh->cmsg_type = IPV6_PKTINFO;
181 cmh->cmsg_len = CMSG_LEN(sizeof(*pki));
501 struct cmsghdr *cmh)
503 struct in_pktinfo *pki = CMSG_DATA(cmh);
506 if (cmh->cmsg_type != IP_PKTINFO)
518 struct cmsghdr *cmh)
520 struct in6_pktinfo *pki = CMSG_DATA(cmh);
523 if (cmh->cmsg_type != IPV6_PKTINFO)
540 struct cmsghdr *cmh)
542 switch (cmh->cmsg_level) {
544 return svc_udp_get_dest_address4(rqstp, cmh);
546 return svc_udp_get_dest_address6(rqstp, cmh);
572 struct cmsghdr *cmh = &buffer.hdr;
575 .msg_control = cmh,
618 if (!svc_udp_get_dest_address(rqstp, cmh))
666 cmh->cmsg_level, cmh->cmsg_type);
695 struct cmsghdr *cmh = &buffer.hdr;
699 .msg_control = cmh,
709 svc_set_cmsg_data(rqstp, cmh);