]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-null.c
Fix a typo; this fixes bug 1854436.
[libpcap] / pcap-null.c
index 588c4d320a3c3c5a39ea1830cbe9ec63171854cb..9fa00a0c424b09de90a297cd7f792a48eab104b1 100644 (file)
@@ -19,8 +19,8 @@
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 #ifndef lint
-static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/libpcap/pcap-null.c,v 1.12 2000-07-11 00:37:06 assar 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
@@ -39,35 +39,16 @@ 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);
-       return (-1);
-}
-
 pcap_t *
-pcap_open_live(char *device, int snaplen, int promisc, int to_ms, char *ebuf)
+pcap_open_live(const char *device, int snaplen, int promisc, int to_ms,
+    char *ebuf)
 {
        (void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE);
        return (NULL);
 }
 
 int
-pcap_setfilter(pcap_t *p, struct bpf_program *fp)
+pcap_platform_finddevs(pcap_if_t **alldevsp, char *errbuf)
 {
-       if (p->sf.rfile == NULL) {
-               (void)snprintf(p->errbuf, sizeof(p->errbuf),
-                   "pcap_setfilter: %s", nosup);
-               return (-1);
-       }
-       p->fcode = *fp;
        return (0);
 }