summaryrefslogtreecommitdiff
path: root/bpf_dump.c
Commit message (Collapse)AuthorAgeFilesLines
* Do bounds checking on references to the bids array.Guy Harris2018-04-251-2/+3
| | | | Addresses GitHub issue #484.
* Always include <config.h> rather than "config.h".Guy Harris2017-08-181-1/+1
| | | | | | | | This can prevent bizarre failures if, for example, you've done a configuration in the top-level source directory, leaving behind one config.h file, and then do an out-of-tree build in another directory, with different configuration options. This way, we always pick up the same config.h, in the build directory.
* Squelch a compiler warning.Guy Harris2015-12-301-1/+4
|
* remove libpcap's own CVS keywordsDenis Ovsienko2014-01-031-4/+0
| | | | | | This change removes CVS keywords that express that the file belongs to libpcap repository. All such keywords represented the revision and timestamp by the end of 2008 or even older.
* Make some arguments const pointers if that makes sense.guy2008-01-021-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.
* Add _U_ to "rcsid[]" definitions, to eliminate "unused variable"guy2003-11-151-2/+2
| | | | warnings from newer versions of GCC.
* <pcap.h> includes <sys/types.h> and <sys/time.h>; there's no need toguy2002-03-241-4/+1
| | | | | include it in these files, as they either include "pcap-int.h", which includes <pcap.h>, or they include <pcap.h> directly.
* reomve interface.h, it's not used in libpcapassar2000-06-261-3/+1
|
* remove extra prototype (now in interface.h)assar2000-06-181-3/+1
|
* Switch to config.h instead of passing defines in DEFS.fenner1999-11-211-1/+5
|
* Initial revisionmcr1999-10-071-0/+65