diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-06-29 20:45:03 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-06-29 20:45:03 -0700 |
commit | d6998249084df8dc1131b8dd3cbce0d65a075b4f (patch) | |
tree | a8e5e12973f2fa5c6797b578441f165dde7f5005 /pcap-usb-linux.c | |
parent | 8924ffeafc0cef74a399e9c8eb285b46c5a04e0f (diff) |
Rename opt.source to opt.device.
For local captures, it's jut the device. If we add remote capture
support, we'll be handed a URL, and will split the URL into multiple
components, and will store the various components in the opt structure,
with the path of the URL being opt.device.
Diffstat (limited to 'pcap-usb-linux.c')
-rw-r--r-- | pcap-usb-linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c index bf526a38..8201209f 100644 --- a/pcap-usb-linux.c +++ b/pcap-usb-linux.c @@ -395,10 +395,10 @@ usb_activate(pcap_t* handle) handle->setnonblock_op = pcap_setnonblock_fd; /*get usb bus index from device name */ - if (sscanf(handle->opt.source, USB_IFACE"%d", &handlep->bus_index) != 1) + if (sscanf(handle->opt.device, USB_IFACE"%d", &handlep->bus_index) != 1) { pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, - "Can't get USB bus index from %s", handle->opt.source); + "Can't get USB bus index from %s", handle->opt.device); return PCAP_ERROR; } |