client:# usbip list --remote <host>
- List exported USB devices on the <host>.
- client:# usbip attach --host <host> --busid 1-2
+ client:# usbip attach --remote <host> --busid 1-2
- Connect the remote USB device.
client:# usbip port
Attach a remote USB device:
- deux:# usbip attach --host 10.0.0.3 --busid 1-1
+ deux:# usbip attach --remote 10.0.0.3 --busid 1-1
port 0 attached
Show the devices attached to this client:
.PP
.HP
-\fBattach\fR \-\-host=<\fIhost\fR> \-\-busid=<\fIbus_id\fR>
+\fBattach\fR \-\-remote=<\fIhost\fR> \-\-busid=<\fIbus_id\fR>
.IP
Attach a remote USB device.
.PP
client:# usbip list --remote=server
- List exportable usb devices on the server.
- client:# usbip attach --host=server --busid=1-2
+ client:# usbip attach --remote=server --busid=1-2
- Connect the remote USB device.
client:# usbip detach --port=0
static const char usbip_attach_usage_string[] =
"usbip attach <args>\n"
- " -h, --host=<host> The machine with exported USB devices\n"
+ " -r, --remote=<host> The machine with exported USB devices\n"
" -b, --busid=<busid> Busid of the device on <host>\n";
void usbip_attach_usage(void)
int usbip_attach(int argc, char *argv[])
{
static const struct option opts[] = {
- { "host", required_argument, NULL, 'h' },
- { "busid", required_argument, NULL, 'b' },
- { NULL, 0, NULL, 0 }
+ { "remote", required_argument, NULL, 'r' },
+ { "busid", required_argument, NULL, 'b' },
+ { NULL, 0, NULL, 0 }
};
char *host = NULL;
char *busid = NULL;
int ret = -1;
for (;;) {
- opt = getopt_long(argc, argv, "h:b:", opts, NULL);
+ opt = getopt_long(argc, argv, "r:b:", opts, NULL);
if (opt == -1)
break;
switch (opt) {
- case 'h':
+ case 'r':
host = optarg;
break;
case 'b':