op_common
struct op_common *op_common)
op_common->version = usbip_net_pack_uint16_t(pack, op_common->version);
op_common->code = usbip_net_pack_uint16_t(pack, op_common->code);
op_common->status = usbip_net_pack_uint32_t(pack, op_common->status);
struct op_common op_common;
memset(&op_common, 0, sizeof(op_common));
op_common.version = USBIP_VERSION;
op_common.code = code;
op_common.status = status;
usbip_net_pack_op_common(1, &op_common);
rc = usbip_net_send(sockfd, &op_common, sizeof(op_common));
struct op_common op_common;
memset(&op_common, 0, sizeof(op_common));
rc = usbip_net_recv(sockfd, &op_common, sizeof(op_common));
usbip_net_pack_op_common(0, &op_common);
if (op_common.version != USBIP_VERSION) {
op_common.version, USBIP_VERSION);
if (op_common.code != *code) {
dbg("unexpected pdu %#0x for %#0x", op_common.code,
*status = op_common.status;
if (op_common.status != ST_OK) {
dbg("request failed at peer: %d", op_common.status);
*code = op_common.code;