dect
/
libpcap
Archived
13
0
Fork 0
Commit Graph

7 Commits

Author SHA1 Message Date
guy 0446821e49 Make some arguments const pointers if that makes sense.
Add some additional checks to bpf_validate(), from OpenBSD.

Use bpf_validate() in install_bpf_program(), so we validate programs
even when they're being processed by userland filters; we make
bpf_validate() not reject backward branches, as we use them for the
protochain operator.

For BPF, don't assume that, just because no_optimize was set, we have a
program that we can't hand to the kernel; the user of the application
might have specified no optimization (e.g., tcpdump with -O), or we
might have generated code to handle 802.11 headers (the optimizer can't
handle that code).  Instead, try handing the filter to the kernel and,
if that fails, try it in userland.

Get rid of BPF_MAXINSNS - we don't have a limit on program size in
libpcap.
2008-01-02 04:16:46 +00:00
guy 30e89f192a Add _U_ to "rcsid[]" definitions, to eliminate "unused variable"
warnings from newer versions of GCC.
2003-11-15 23:23:57 +00:00
guy fdaba9c2a6 <pcap.h> includes <sys/types.h> and <sys/time.h>; there's no need to
include it in these files, as they either include "pcap-int.h", which
includes <pcap.h>, or they include <pcap.h> directly.
2002-03-24 23:21:51 +00:00
assar 85ed1466a8 reomve interface.h, it's not used in libpcap 2000-06-26 04:17:05 +00:00
assar b846c9d16f remove extra prototype (now in interface.h) 2000-06-18 11:12:59 +00:00
fenner bd8f1d4a95 Switch to config.h instead of passing defines in DEFS. 1999-11-21 09:36:44 +00:00
mcr b11ddf8a9b Initial revision 1999-10-07 23:46:40 +00:00