Lines Matching defs:recv
100 struct ipmi_recv recv;
142 recv.addr = (unsigned char *) &addr;
143 recv.addr_len = sizeof (addr);
144 recv.msg.data = (unsigned char *)ibp->ib_msg;
145 recv.msg.data_len = ibp->ib_msglen;
148 if (ioctl(ibp->ib_fd, IPMICTL_RECEIVE_MSG_TRUNC, &recv) < 0) {
154 if (recv.recv_type != IPMI_RESPONSE_RECV_TYPE) {
156 "unknown BMC message type %d", recv.recv_type);
160 response->ic_netfn = recv.msg.netfn;
163 response->ic_cmd = recv.msg.cmd;
164 if (recv.msg.data[0] != 0) {
165 *completion = recv.msg.data[0];
170 response->ic_dlen = (recv.msg.data_len > 0) ?
171 recv.msg.data_len - 1 : 0;
172 response->ic_data = &(recv.msg.data[1]);