Lines Matching refs:msghdr
188 struct nmsghdr msghdr; in ksocket_send() local
217 msghdr.msg_name = NULL; in ksocket_send()
218 msghdr.msg_namelen = 0; in ksocket_send()
219 msghdr.msg_control = NULL; in ksocket_send()
220 msghdr.msg_controllen = 0; in ksocket_send()
221 msghdr.msg_flags = flags | MSG_EOR; in ksocket_send()
223 error = socket_sendmsg(KSTOSO(ks), &msghdr, &auio, cr); in ksocket_send()
240 struct nmsghdr msghdr; in ksocket_sendto() local
269 msghdr.msg_iov = &iov; in ksocket_sendto()
270 msghdr.msg_iovlen = 1; in ksocket_sendto()
271 msghdr.msg_name = (char *)name; in ksocket_sendto()
272 msghdr.msg_namelen = namelen; in ksocket_sendto()
273 msghdr.msg_control = NULL; in ksocket_sendto()
274 msghdr.msg_controllen = 0; in ksocket_sendto()
275 msghdr.msg_flags = flags | MSG_EOR; in ksocket_sendto()
277 error = socket_sendmsg(KSTOSO(ks), &msghdr, &auio, cr); in ksocket_sendto()
347 struct nmsghdr msghdr; in ksocket_recv() local
376 msghdr.msg_name = NULL; in ksocket_recv()
377 msghdr.msg_namelen = 0; in ksocket_recv()
378 msghdr.msg_control = NULL; in ksocket_recv()
379 msghdr.msg_controllen = 0; in ksocket_recv()
380 msghdr.msg_flags = flags & (MSG_OOB | MSG_PEEK | MSG_WAITALL | in ksocket_recv()
383 error = socket_recvmsg(KSTOSO(ks), &msghdr, &auio, cr); in ksocket_recv()
400 struct nmsghdr msghdr; in ksocket_recvfrom() local
429 msghdr.msg_name = (char *)name; in ksocket_recvfrom()
430 msghdr.msg_namelen = *namelen; in ksocket_recvfrom()
431 msghdr.msg_control = NULL; in ksocket_recvfrom()
432 msghdr.msg_controllen = 0; in ksocket_recvfrom()
433 msghdr.msg_flags = flags & (MSG_OOB | MSG_PEEK | MSG_WAITALL | in ksocket_recvfrom()
436 error = socket_recvmsg(KSTOSO(ks), &msghdr, &auio, cr); in ksocket_recvfrom()
445 bcopy(msghdr.msg_name, name, msghdr.msg_namelen); in ksocket_recvfrom()
446 bcopy(&msghdr.msg_namelen, namelen, sizeof (msghdr.msg_namelen)); in ksocket_recvfrom()