* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
#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)";
+static const char rcsid[] _U_ =
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-null.c,v 1.21 2003-11-15 23:24:03 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
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);
- return (-1);
-}
-
pcap_t *
pcap_open_live(const char *device, int snaplen, int promisc, int to_ms,
char *ebuf)
{
return (0);
}
-
-int
-pcap_setfilter(pcap_t *p, struct bpf_program *fp)
-{
- if (p->sf.rfile == NULL) {
- (void)snprintf(p->errbuf, sizeof(p->errbuf),
- "pcap_setfilter: %s", nosup);
- return (-1);
- }
- if (install_bpf_program(p, fp) < 0)
- return (-1);
- return (0);
-}
-
-int
-pcap_set_datalink_platform(pcap_t *p, int dlt)
-{
- return (0);
-}