]> The Tcpdump Group git mirrors - libpcap/commitdiff
Emphasize that this is *raw* USB traffic.
authorGuy Harris <[email protected]>
Tue, 15 Jan 2019 20:32:38 +0000 (12:32 -0800)
committerGuy Harris <[email protected]>
Tue, 15 Jan 2019 20:32:38 +0000 (12:32 -0800)
Hopefully that will make it less likely that people will think that, in
order to capture on a network adapter that happens to be connected via
USB, they should capture on the USB bus rather than on the adapter.
(Yes, that happens.)

pcap-usb-linux.c

index 09271631fb813b4ff15b5d01b67761d6db6a949e..3e70a8dc66a0d1757d6eb95b15bcfd4d67822b0e 100644 (file)
@@ -242,7 +242,7 @@ usb_dev_add(pcap_if_list_t *devlistp, int n, char *err_str)
                 */
                if (add_dev(devlistp, dev_name,
                    PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE,
-                   "All USB buses", err_str) == NULL)
+                   "Raw USB traffic, all USB buses", err_str) == NULL)
                        return -1;
        } else {
                /*
@@ -251,7 +251,7 @@ usb_dev_add(pcap_if_list_t *devlistp, int n, char *err_str)
                 * PCAP_IF_CONNECTION_STATUS_CONNECTED or
                 * PCAP_IF_CONNECTION_STATUS_DISCONNECTED?
                 */
-               pcap_snprintf(dev_descr, 30, "USB bus number %d", n);
+               pcap_snprintf(dev_descr, 30, "Raw USB traffic, bus number %d", n);
                if (add_dev(devlistp, dev_name, 0, dev_descr, err_str) == NULL)
                        return -1;
        }