diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-06-11 13:22:34 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-06-11 13:22:34 -0700 |
commit | 2426611584e9099af5f98d18ef37337df9bef025 (patch) | |
tree | 4a79e50330d0f179362445bab756177565991310 /pcap-septel.h | |
parent | 4e14566d51233686b7f4563f0a48a11a3f9eb808 (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-septel.h')
-rw-r--r-- | pcap-septel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-septel.h b/pcap-septel.h index 227d0568..b72f35bc 100644 --- a/pcap-septel.h +++ b/pcap-septel.h @@ -11,5 +11,5 @@ * @(#) $Header: /tcpdump/master/libpcap/pcap-septel.h,v 1.2 2008-04-04 19:37:45 guy Exp $ */ -pcap_t *septel_create(const char *device, char *ebuf); - +pcap_t *septel_create(const char *device, char *ebuf, int *is_ours); +int septel_findalldevs(pcap_if_t **devlistp, char *errbuf); |