Changeset 85279 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Jul 12, 2020 2:26:32 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139256
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/generic/USBProxyBackendUsbIp.cpp
r82968 r85279 123 123 uint16_t u16Cmd; 124 124 /** Status field, unused. */ 125 int32_t u32Status;125 int32_t i32Status; 126 126 } UsbIpReqDevList; 127 127 /** Pointer to a device list request. */ … … 144 144 uint16_t u16Cmd; 145 145 /** Status field, unused. */ 146 int32_t u32Status;146 int32_t i32Status; 147 147 /** Number of exported devices. */ 148 148 uint32_t u32DevicesExported; … … 782 782 ReqDevList.u16Version = RT_H2N_U16(USBIP_VERSION); 783 783 ReqDevList.u16Cmd = RT_H2N_U16(USBIP_INDICATOR_REQ | USBIP_REQ_RET_DEVLIST); 784 ReqDevList.u32Status = RT_H2N_U32(0); 784 ReqDevList.i32Status = RT_H2N_S32(0); 785 785 786 rc = RTTcpWrite(m->hSocket, &ReqDevList, sizeof(ReqDevList)); 786 787 if (RT_SUCCESS(rc)) … … 895 896 if ( RT_N2H_U16(m->Scratch.RetDevList.u16Version) == USBIP_VERSION 896 897 && RT_N2H_U16(m->Scratch.RetDevList.u16Cmd) == USBIP_REQ_RET_DEVLIST 897 && RT_N2H_U32(m->Scratch.RetDevList.u32Status) == USBIP_STATUS_SUCCESS) 898 && RT_N2H_S32(m->Scratch.RetDevList.i32Status) == USBIP_STATUS_SUCCESS) 899 898 900 { 899 901 /* Populate the number of exported devices in the list and go to the next state. */ … … 908 910 LogRelMax(10, ("USB/IP: Host sent an invalid reply to the list exported device request (Version: %#x Cmd: %#x Status: %#x)\n", 909 911 RT_N2H_U16(m->Scratch.RetDevList.u16Version), RT_N2H_U16(m->Scratch.RetDevList.u16Cmd), 910 RT_N2H_ U32(m->Scratch.RetDevList.u32Status)));912 RT_N2H_S32(m->Scratch.RetDevList.i32Status))); 911 913 /* Disconnect and start over. */ 912 914 advanceState(kUsbIpRecvState_None);
Note:
See TracChangeset
for help on using the changeset viewer.