Lines Matching refs:mhdr
1472 pr_pack(u_char *buf, int cc, struct msghdr *mhdr)
1494 if (!mhdr || !mhdr->msg_name ||
1495 mhdr->msg_namelen != sizeof(struct sockaddr_in6) ||
1496 ((struct sockaddr *)mhdr->msg_name)->sa_family != AF_INET6) {
1501 from = (struct sockaddr *)mhdr->msg_name;
1502 fromlen = mhdr->msg_namelen;
1509 if (((mhdr->msg_flags & MSG_CTRUNC) != 0) &&
1516 if ((hoplim = get_hoplim(mhdr)) == -1) {
1520 if ((pktinfo = get_rcvpktinfo(mhdr)) == NULL) {
1751 pr_exthdrs(mhdr);
1758 pr_exthdrs(struct msghdr *mhdr)
1765 bufp = mhdr->msg_control;
1766 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(mhdr); cm;
1767 cm = (struct cmsghdr *)CMSG_NXTHDR(mhdr, cm)) {
2111 get_hoplim(struct msghdr *mhdr)
2115 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(mhdr); cm;
2116 cm = (struct cmsghdr *)CMSG_NXTHDR(mhdr, cm)) {
2130 get_rcvpktinfo(struct msghdr *mhdr)
2134 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(mhdr); cm;
2135 cm = (struct cmsghdr *)CMSG_NXTHDR(mhdr, cm)) {
2149 get_pathmtu(struct msghdr *mhdr)
2155 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(mhdr); cm;
2156 cm = (struct cmsghdr *)CMSG_NXTHDR(mhdr, cm)) {