Lines Matching refs:msg
215 struct msghdr msg = {0}; in flush_errqueue_recv() local
220 msg.msg_control = control; in flush_errqueue_recv()
221 msg.msg_controllen = sizeof(control); in flush_errqueue_recv()
222 ret = recvmsg(fd, &msg, MSG_ERRQUEUE); in flush_errqueue_recv()
227 if (msg.msg_flags != MSG_ERRQUEUE) in flush_errqueue_recv()
228 error(1, 0, "errqueue: flags 0x%x\n", msg.msg_flags); in flush_errqueue_recv()
230 for (cmsg = CMSG_FIRSTHDR(&msg); in flush_errqueue_recv()
232 cmsg = CMSG_NXTHDR(&msg, cmsg)) in flush_errqueue_recv()
235 msg.msg_flags = 0; in flush_errqueue_recv()
338 struct msghdr msg = {0}; in send_udp_sendmmsg() local
341 msg.msg_control = control; in send_udp_sendmmsg()
342 msg.msg_controllen = sizeof(control); in send_udp_sendmmsg()
343 cmsg = CMSG_FIRSTHDR(&msg); in send_udp_sendmmsg()
393 struct msghdr msg = {0}; in send_udp_segment() local
402 msg.msg_iov = &iov; in send_udp_segment()
403 msg.msg_iovlen = 1; in send_udp_segment()
405 msg.msg_control = control; in send_udp_segment()
406 msg.msg_controllen = sizeof(control); in send_udp_segment()
407 cmsg = CMSG_FIRSTHDR(&msg); in send_udp_segment()
411 cmsg = CMSG_NXTHDR(&msg, cmsg); in send_udp_segment()
416 msg.msg_controllen = msg_controllen; in send_udp_segment()
417 msg.msg_name = (void *)&cfg_dst_addr; in send_udp_segment()
418 msg.msg_namelen = cfg_alen; in send_udp_segment()
420 ret = sendmsg(fd, &msg, cfg_zerocopy ? MSG_ZEROCOPY : 0); in send_udp_segment()