mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
usbip: tools: add more error codes for usbip request/reply messages
Currently ST_OK and ST_NA are the only values defined to communicate status of a request from a client. Add more error codes to clearly indicate what failed. For example, when client sends request to import a device that isn't export-able, server can send a specific error code to the client. Existing defines are moved to a common header in libsrc to be included in the libusbip_la-usbip_common.o to be used by all the usbip tools. Supporting interface to print error strings is added to the common lib. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8fe8f5821c
commit
f6bcbf2e24
@@ -27,9 +27,7 @@ struct op_common {
|
||||
#define OP_REPLY (0x00 << 8)
|
||||
uint16_t code;
|
||||
|
||||
/* add more error code */
|
||||
#define ST_OK 0x00
|
||||
#define ST_NA 0x01
|
||||
/* status codes defined in usbip_common.h */
|
||||
uint32_t status; /* op_code status (for reply) */
|
||||
|
||||
} __attribute__((packed));
|
||||
|
||||
Reference in New Issue
Block a user