aboutsummaryrefslogtreecommitdiff
path: root/pcap-snf.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-snf.h
parent4e14566d51233686b7f4563f0a48a11a3f9eb808 (diff)
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-snf.h')
-rw-r--r--pcap-snf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-snf.h b/pcap-snf.h
index 8c197551..c9d7722b 100644
--- a/pcap-snf.h
+++ b/pcap-snf.h
@@ -1,2 +1,2 @@
-pcap_t *snf_create(const char *, char *);
-int snf_platform_finddevs(pcap_if_t **devlistp, char *errbuf);
+pcap_t *snf_create(const char *, char *, int *);
+int snf_findalldevs(pcap_if_t **devlistp, char *errbuf);