Lines Matching refs:msg
42 struct msghdr msg; in send_to_from()
67 memset(&msg, 0, sizeof(msg)); in send_to_from()
68 msg.msg_name = (void *)(struct sockaddr *)to; /* or compiler will annoy us */ in send_to_from()
69 msg.msg_namelen = tolen; in send_to_from()
70 msg.msg_iov = iov; in send_to_from()
71 msg.msg_iovlen = 1; in send_to_from()
72 msg.msg_control = &u; in send_to_from()
73 msg.msg_controllen = sizeof(u); in send_to_from()
74 msg.msg_flags = flags; in send_to_from()
76 cmsgptr = CMSG_FIRSTHDR(&msg); in send_to_from()
109 msg.msg_controllen = cmsgptr->cmsg_len; in send_to_from()
111 return sendmsg(fd, &msg, flags); in send_to_from()
137 struct msghdr msg; in recv_from_to()
143 memset(&msg, 0, sizeof(msg)); in recv_from_to()
144 msg.msg_name = (struct sockaddr *)from; in recv_from_to()
145 msg.msg_namelen = sa_size; in recv_from_to()
146 msg.msg_iov = iov; in recv_from_to()
147 msg.msg_iovlen = 1; in recv_from_to()
148 msg.msg_control = &u; in recv_from_to()
149 msg.msg_controllen = sizeof(u); in recv_from_to()
151 recv_length = recvmsg(fd, &msg, flags); in recv_from_to()
158 for (cmsgptr = CMSG_FIRSTHDR(&msg); in recv_from_to()
160 cmsgptr = CMSG_NXTHDR(&msg, cmsgptr) in recv_from_to()