From: Guy Harris Date: Tue, 15 Jan 2019 20:32:38 +0000 (-0800) Subject: Emphasize that this is *raw* USB traffic. X-Git-Tag: libpcap-1.10-bp~609 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/c83e81ea443de5a1250ad5f8977e175ddae7a05c Emphasize that this is *raw* USB traffic. 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.) --- diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c index 09271631..3e70a8dc 100644 --- a/pcap-usb-linux.c +++ b/pcap-usb-linux.c @@ -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; }