diff options
author | guy <guy> | 2003-07-25 05:32:02 +0000 |
---|---|---|
committer | guy <guy> | 2003-07-25 05:32:02 +0000 |
commit | cd0d893ef99fbd6e06311242d8631b8a5cf9502e (patch) | |
tree | ae17f58218c26d028d2390c1229b006bb270d415 /pcap-null.c | |
parent | 08658f1c932c872f1d920e72e62d200471bd80d0 (diff) | |
download | libpcap-cd0d893ef99fbd6e06311242d8631b8a5cf9502e.tar.gz |
Add a "read" function pointer to the pcap_t structure, which handles
reading packets from a pcap_t, and make "pcap_read()" call it. That
removes the last place where we have to check for a pcap_t that refers
to a DAG card rather than a live capture, so get rid of the "is_dag" flag.
Diffstat (limited to 'pcap-null.c')
-rw-r--r-- | pcap-null.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/pcap-null.c b/pcap-null.c index 013185a2..2a80c0ac 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.19 2003-07-25 05:07:02 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-null.c,v 1.20 2003-07-25 05:32:04 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -39,13 +39,6 @@ static const char rcsid[] = static char nosup[] = "live packet capture not supported on this system"; -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); - return (-1); -} - pcap_t * pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, char *ebuf) |