Searched refs:msgh (Results 1 – 2 of 2) sorted by relevance
290 struct msghdr msgh; in ni_recv() local301 memset(&msgh, 0, sizeof(msgh)); in ni_recv()302 msgh.msg_name = (struct sockaddr *)&p->addr; in ni_recv()303 msgh.msg_namelen = sizeof(p->addr); in ni_recv()304 msgh.msg_iov = iov; in ni_recv()305 msgh.msg_iovlen = 1; in ni_recv()306 msgh.msg_control = recvcbuf; in ni_recv()307 msgh.msg_controllen = sizeof(recvcbuf); in ni_recv()309 if ((cc = recvmsg(sock, &msgh, 0)) < 0) in ni_recv()313 p->addrlen = msgh.msg_namelen; in ni_recv()[all …]
82 struct msghdr msgh; in send_request() local110 memset(&msgh, 0, sizeof(msgh)); in send_request()111 msgh.msg_iov = iov; in send_request()112 msgh.msg_iovlen = sizeof(iov) / sizeof(iov[0]); in send_request()118 while (((count = sendmsg(fd, &msgh, MSG_NOSIGNAL)) < 0) in send_request()