summaryrefslogtreecommitdiff
path: root/pcap-usb-linux.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-06-11 13:22:34 -0700
committerGuy Harris <guy@alum.mit.edu>2012-06-11 13:22:34 -0700
commit2426611584e9099af5f98d18ef37337df9bef025 (patch)
tree4a79e50330d0f179362445bab756177565991310 /pcap-usb-linux.h
parent4e14566d51233686b7f4563f0a48a11a3f9eb808 (diff)
downloadlibpcap-2426611584e9099af5f98d18ef37337df9bef025.tar.gz
Have non-interface modules take responsibility for identifying their devices.
Have a table of routines to do pcap_create() for devices that aren't regular network interfaces. Try each of those in succession until one says "it's mine" (whether it succeeds or fails); if none do, do a pcap_create() for a regular interface. Have those routines do more stringent tests of the name - don't just accept any name that has a particular substring anywhere in it. That reduces the likelihood of a false match (as happened with the CANbus module when somebody renamed their Ethernet interface "canopy"). Have the table also include routines for pcap_findalldevs().
Diffstat (limited to 'pcap-usb-linux.h')
-rw-r--r--pcap-usb-linux.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-usb-linux.h b/pcap-usb-linux.h
index 2d9638c5..d64386db 100644
--- a/pcap-usb-linux.h
+++ b/pcap-usb-linux.h
@@ -36,5 +36,5 @@
/*
* Prototypes for USB-related functions
*/
-int usb_platform_finddevs(pcap_if_t **alldevsp, char *err_str);
-pcap_t *usb_create(const char *device, char *ebuf);
+int usb_findalldevs(pcap_if_t **alldevsp, char *err_str);
+pcap_t *usb_create(const char *device, char *ebuf, int *is_ours);