Lines Matching refs:msg

195 	struct msghdr msg[1];
229 udp_make_msghdr(sin, hp->msg.iov, hp->msg.iovlen, msg);
246 if (sendmsg(sockfd, msg, 0) < 0) {
338 struct msghdr msg[1];
353 udp_make_msghdr(sin, hp->msg.iov, hp->msg.iovlen, msg);
374 /* send msg */
375 if (mc_sendmsg(pfd, msg, &bcifs) != SLP_OK) {
528 if (writev(tcp_sockfd, hp->msg.iov, hp->msg.iovlen)
599 /* This buffer gets freed by a msg-specific unpacking routine later */
647 hp->msg.iov[0].iov_base = header;
648 hp->msg.iov[0].iov_len = msgLen; /* now the length of the hdr */
651 hp->msg.prlist->iov_base = header + msgLen;
653 for (i = 1; i < hp->msg.iovlen; i++) {
654 msgLen += hp->msg.iov[i].iov_len;
664 hp->msg.prlist->iov_len = 0;
668 if ((err = slp_add_sht((char *)hp->msg.scopeslen.iov_base,
672 hp->msg.scopes->iov_base = (caddr_t)scopes;
673 hp->msg.scopes->iov_len = slen;
682 int iovlen, struct msghdr *msg) {
683 msg->msg_name = (caddr_t)sin;
684 msg->msg_namelen = 16;
685 msg->msg_iov = iov;
686 msg->msg_iovlen = iovlen;
687 msg->msg_accrights = NULL;
688 msg->msg_accrightslen = 0;
919 * Sends msg on 1st fd in fds for multicast, or on all interfaces
921 * msg was sent successfully on at least one interface; otherwise
922 * returns SLP_NETWORK_ERROR if msg was not sent on any interfaces.
925 struct msghdr *msg, struct bc_ifs *bcifs) {
931 if (ifs && *ifs && bc_sendmsg(fds, msg, bcifs) == SLP_OK) {
950 if (sendmsg(fds[0].fd, msg, 0) < 0) {
960 * Send msg to each subnet broadcast address in bcifs->sin. Note
965 static SLPError bc_sendmsg(struct pollfd *fds, struct msghdr *msg,
971 msg->msg_name = (caddr_t)&(bcifs->sin[i]);
973 if (sendmsg(fds[0].fd, msg, 0) < 0) {
1072 if (add2pr_list(&(hp->msg), &responder, collator)) {
1203 * previous responder list. The message is contained in 'msg'.
1213 slp_msg_t *msg,
1239 /* new responder: add to the msg PR list if there is room */
1242 header = msg->iov[0].iov_base;
1250 prlen = (unsigned short)msg->prlist->iov_len;
1251 p = msg->prlist->iov_base + prlen;
1260 /* update msg and pr list length */
1265 (void) slp_add_sht(msg->prlistlen.iov_base, 2, prlen, &off);
1266 msg->prlist->iov_len += namelen;