From 737558aa98d3b86de65ff8e1fd0fe39d5debcde7 Mon Sep 17 00:00:00 2001 From: fenner Date: Tue, 27 May 1997 00:01:12 +0000 Subject: Virgin import of libpcap 0.3 --- contrib/libpcap/pcap-pf.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'contrib/libpcap/pcap-pf.c') 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 #include #include @@ -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) { -- cgit v1.1