aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-linux.c
diff options
context:
space:
mode:
authorguy <guy>2002-07-11 09:06:30 +0000
committerguy <guy>2002-07-11 09:06:30 +0000
commit243b20ec553e192599e5280f17703454b4420fe0 (patch)
tree8b56a1369d487e0ca62902e7bc2bf7999dac2d1e /pcap-linux.c
parent0d020002007bc5fc8b3c058f78c8d9456ee5acfd (diff)
Add SunATM support, based on code from Yen Yen Lim at North Dakota State
University.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index aed291f..f5afcca 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -26,7 +26,7 @@
*/
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.82 2002-07-06 21:22:35 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.83 2002-07-11 09:06:38 guy Exp $ (LBL)";
#endif
/*
@@ -737,6 +737,20 @@ pcap_stats(pcap_t *handle, struct pcap_stat *stats)
}
/*
+ * Description string for the "any" device.
+ */
+static const char any_descr[] = "Pseudo-device that captures on all interfaces";
+
+int
+pcap_platform_finddevs(pcap_if_t **alldevsp, char *errbuf)
+{
+ if (pcap_add_if(&devlist, "any", 0, any_descr, errbuf) < 0)
+ return (-1);
+
+ return (0);
+}
+
+/*
* Attach the given BPF code to the packet capture device.
*/
int