summaryrefslogtreecommitdiffstats
path: root/contrib/libpcap/pcap-pf.c
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>1997-05-27 00:01:12 +0000
committerfenner <fenner@FreeBSD.org>1997-05-27 00:01:12 +0000
commit737558aa98d3b86de65ff8e1fd0fe39d5debcde7 (patch)
treede061620aa05599ec749d528046e58091ef80529 /contrib/libpcap/pcap-pf.c
parent498933506f435a155849919ee10bbdbc9ad42caa (diff)
downloadFreeBSD-src-737558aa98d3b86de65ff8e1fd0fe39d5debcde7.zip
FreeBSD-src-737558aa98d3b86de65ff8e1fd0fe39d5debcde7.tar.gz
Virgin import of libpcap 0.3
Diffstat (limited to 'contrib/libpcap/pcap-pf.c')
-rw-r--r--contrib/libpcap/pcap-pf.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/contrib/libpcap/pcap-pf.c b/contrib/libpcap/pcap-pf.c
index 64cd2ae..b0b318e 100644
--- a/contrib/libpcap/pcap-pf.c
+++ b/contrib/libpcap/pcap-pf.c
@@ -17,19 +17,16 @@
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- */
-#ifndef lint
-static char rcsid[] =
- "@(#)$Header: pcap-pf.c,v 1.50 96/07/16 14:30:28 vern Exp $ (LBL)";
-#endif
-
-/*
+ *
* packet filter subroutines for tcpdump
* Extraction/creation by Jeffrey Mogul, DECWRL
- *
- * Extracted from tcpdump.c.
*/
+#ifndef lint
+static const char rcsid[] =
+ "@(#) $Header: pcap-pf.c,v 1.54 96/12/10 23:15:01 leres Exp $ (LBL)";
+#endif
+
#include <sys/types.h>
#include <sys/time.h>
#include <sys/timeb.h>
@@ -290,6 +287,7 @@ your system may not be properly configured; see \"man packetfilter(4)\"\n",
}
p->snapshot = snaplen;
/* accept all packets */
+ bzero((char *)&Filter, sizeof(Filter));
Filter.enf_Priority = 37; /* anything > 2 */
Filter.enf_FilterLen = 0; /* means "always true" */
if (ioctl(p->fd, EIOCSETF, (caddr_t)&Filter) < 0) {
OpenPOWER on IntegriCloud