Lines Matching refs:msg
154 static void printpacket(struct msghdr *msg, int res, in printpacket() argument
159 struct sockaddr_in *from_addr = (struct sockaddr_in *)msg->msg_name; in printpacket()
172 msg->msg_controllen); in printpacket()
173 for (cmsg = CMSG_FIRSTHDR(msg); in printpacket()
175 cmsg = CMSG_NXTHDR(msg, cmsg)) { in printpacket()
285 struct msghdr msg; in recvpacket() local
294 memset(&msg, 0, sizeof(msg)); in recvpacket()
295 msg.msg_iov = &entry; in recvpacket()
296 msg.msg_iovlen = 1; in recvpacket()
299 msg.msg_name = (caddr_t)&from_addr; in recvpacket()
300 msg.msg_namelen = sizeof(from_addr); in recvpacket()
301 msg.msg_control = &control; in recvpacket()
302 msg.msg_controllen = sizeof(control); in recvpacket()
304 res = recvmsg(sock, &msg, recvmsg_flags|MSG_DONTWAIT); in recvpacket()
311 printpacket(&msg, res, data, in recvpacket()