Lines Matching defs:msg

192 	struct msghdr msg[1];
226 udp_make_msghdr(sin, hp->msg.iov, hp->msg.iovlen, msg);
243 if (sendmsg(sockfd, msg, 0) < 0) {
335 struct msghdr msg[1];
350 udp_make_msghdr(sin, hp->msg.iov, hp->msg.iovlen, msg);
371 /* send msg */
372 if (mc_sendmsg(pfd, msg, &bcifs) != SLP_OK) {
525 if (writev(tcp_sockfd, hp->msg.iov, hp->msg.iovlen)
596 /* This buffer gets freed by a msg-specific unpacking routine later */
644 hp->msg.iov[0].iov_base = header;
645 hp->msg.iov[0].iov_len = msgLen; /* now the length of the hdr */
648 hp->msg.prlist->iov_base = header + msgLen;
650 for (i = 1; i < hp->msg.iovlen; i++) {
651 msgLen += hp->msg.iov[i].iov_len;
661 hp->msg.prlist->iov_len = 0;
665 if ((err = slp_add_sht((char *)hp->msg.scopeslen.iov_base,
669 hp->msg.scopes->iov_base = (caddr_t)scopes;
670 hp->msg.scopes->iov_len = slen;
679 int iovlen, struct msghdr *msg) {
680 msg->msg_name = (caddr_t)sin;
681 msg->msg_namelen = 16;
682 msg->msg_iov = iov;
683 msg->msg_iovlen = iovlen;
684 msg->msg_accrights = NULL;
685 msg->msg_accrightslen = 0;
916 * Sends msg on 1st fd in fds for multicast, or on all interfaces
918 * msg was sent successfully on at least one interface; otherwise
919 * returns SLP_NETWORK_ERROR if msg was not sent on any interfaces.
922 struct msghdr *msg, struct bc_ifs *bcifs) {
928 if (ifs && *ifs && bc_sendmsg(fds, msg, bcifs) == SLP_OK) {
947 if (sendmsg(fds[0].fd, msg, 0) < 0) {
957 * Send msg to each subnet broadcast address in bcifs->sin. Note
962 static SLPError bc_sendmsg(struct pollfd *fds, struct msghdr *msg,
968 msg->msg_name = (caddr_t)&(bcifs->sin[i]);
970 if (sendmsg(fds[0].fd, msg, 0) < 0) {
1068 if (add2pr_list(&(hp->msg), &responder, collator)) {
1199 * previous responder list. The message is contained in 'msg'.
1209 slp_msg_t *msg,
1235 /* new responder: add to the msg PR list if there is room */
1238 header = msg->iov[0].iov_base;
1246 prlen = (unsigned short)msg->prlist->iov_len;
1247 p = (char *)msg->prlist->iov_base + prlen;
1256 /* update msg and pr list length */
1261 (void) slp_add_sht(msg->prlistlen.iov_base, 2, prlen, &off);
1262 msg->prlist->iov_len += namelen;