diff options
Diffstat (limited to 'pcap-linux.c')
-rw-r--r-- | pcap-linux.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/pcap-linux.c b/pcap-linux.c index aed291fc..f5afcca4 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 |