aboutsummaryrefslogtreecommitdiffstats
path: root/bpf_dump.c
AgeCommit message (Collapse)AuthorFilesLines
2008-01-02Make some arguments const pointers if that makes sense.guy1-3/+3
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.
2003-11-15Add _U_ to "rcsid[]" definitions, to eliminate "unused variable"guy1-2/+2
warnings from newer versions of GCC.
2002-03-24<pcap.h> includes <sys/types.h> and <sys/time.h>; there's no need toguy1-4/+1
include it in these files, as they either include "pcap-int.h", which includes <pcap.h>, or they include <pcap.h> directly.
2000-06-26reomve interface.h, it's not used in libpcapassar1-3/+1
2000-06-18remove extra prototype (now in interface.h)assar1-3/+1
1999-11-21Switch to config.h instead of passing defines in DEFS.fenner1-1/+5
1999-10-07Initial revisionmcr1-0/+65