Lines Matching refs:msg
99 struct msghdr msg = { 0 }; in ktls_send_ctrl_message() local
105 msg.msg_control = buf; in ktls_send_ctrl_message()
106 msg.msg_controllen = sizeof(buf); in ktls_send_ctrl_message()
107 cmsg = CMSG_FIRSTHDR(&msg); in ktls_send_ctrl_message()
112 msg.msg_controllen = cmsg->cmsg_len; in ktls_send_ctrl_message()
116 msg.msg_iov = &msg_iov; in ktls_send_ctrl_message()
117 msg.msg_iovlen = 1; in ktls_send_ctrl_message()
119 return sendmsg(fd, &msg, 0); in ktls_send_ctrl_message()
140 struct msghdr msg = { 0 }; in ktls_read_record() local
155 msg.msg_control = buf; in ktls_read_record()
156 msg.msg_controllen = sizeof(buf); in ktls_read_record()
160 msg.msg_iov = &msg_iov; in ktls_read_record()
161 msg.msg_iovlen = 1; in ktls_read_record()
163 ret = recvmsg(fd, &msg, 0); in ktls_read_record()
167 if ((msg.msg_flags & (MSG_EOR | MSG_CTRUNC)) != MSG_EOR) { in ktls_read_record()
172 if (msg.msg_controllen == 0) { in ktls_read_record()
177 cmsg = CMSG_FIRSTHDR(&msg); in ktls_read_record()
331 struct msghdr msg; in ktls_send_ctrl_message() local
340 memset(&msg, 0, sizeof(msg)); in ktls_send_ctrl_message()
341 msg.msg_control = cmsgbuf.buf; in ktls_send_ctrl_message()
342 msg.msg_controllen = sizeof(cmsgbuf.buf); in ktls_send_ctrl_message()
343 cmsg = CMSG_FIRSTHDR(&msg); in ktls_send_ctrl_message()
348 msg.msg_controllen = cmsg->cmsg_len; in ktls_send_ctrl_message()
352 msg.msg_iov = &msg_iov; in ktls_send_ctrl_message()
353 msg.msg_iovlen = 1; in ktls_send_ctrl_message()
355 return sendmsg(fd, &msg, 0); in ktls_send_ctrl_message()
385 struct msghdr msg; in ktls_read_record() local
401 memset(&msg, 0, sizeof(msg)); in ktls_read_record()
402 msg.msg_control = cmsgbuf.buf; in ktls_read_record()
403 msg.msg_controllen = sizeof(cmsgbuf.buf); in ktls_read_record()
407 msg.msg_iov = &msg_iov; in ktls_read_record()
408 msg.msg_iovlen = 1; in ktls_read_record()
410 ret = recvmsg(fd, &msg, 0); in ktls_read_record()
414 if (msg.msg_controllen > 0) { in ktls_read_record()
415 cmsg = CMSG_FIRSTHDR(&msg); in ktls_read_record()