aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-null.c
diff options
context:
space:
mode:
authorguy <guy>2003-07-25 04:04:56 +0000
committerguy <guy>2003-07-25 04:04:56 +0000
commit9792990eb80889004b39ee70caa98b3d91ac8012 (patch)
tree599047dd2650b318c82f4f9832485661d8f50c3d /pcap-null.c
parente648c9e593e7a7f0c3d031eb2e2c146de9efc67e (diff)
Add a "stats" function pointer to the pcap_t structure, which handles
getting statistics for a pcap_t. Have "pcap_stats()" call it, rather than being a per-platform function; have stats routines for non-live pcap_t's that return an error.
Diffstat (limited to 'pcap-null.c')
-rw-r--r--pcap-null.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/pcap-null.c b/pcap-null.c
index 6be5ab4..67f2a60 100644
--- a/pcap-null.c
+++ b/pcap-null.c
@@ -20,7 +20,7 @@
*/
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-null.c,v 1.16 2002-12-22 02:36:49 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-null.c,v 1.17 2003-07-25 04:04:58 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -40,13 +40,6 @@ static const char rcsid[] =
static char nosup[] = "live packet capture not supported on this system";
int
-pcap_stats(pcap_t *p, struct pcap_stat *ps)
-{
- (void)snprintf(p->errbuf, sizeof(p->errbuf), "pcap_stats: %s", nosup);
- return (-1);
-}
-
-int
pcap_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user)
{
(void)snprintf(p->errbuf, sizeof(p->errbuf), "pcap_read: %s", nosup);