summaryrefslogtreecommitdiffstats
path: root/lib/libpcap/optimize.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add support for handling loads from BPF_RND.dlg2020-08-031-1/+2
| | | | | | | | | | this adds "rnd" and "random" as keywords in the grammar, and handles them as an arithmetic operator. the decoder recognises the load, so tcpdump can print it as 'ld #random'. most of the handling is copied from the "len"/"length" keywoard handling that generates and decodes a load of the actual wire length of the packet. ok jmatthew@ tb@ kn@
* Convert a format string variable to a static const char[] to reduce warningsguenther2018-04-261-2/+3
| | | | ok tb@ millert@ krw@
* Use the correct structure size when allocating the array for nodes.canacar2016-02-051-2/+2
| | | | ok tb@ millert@
* remove NULL-checks before free()mmcc2015-12-221-3/+2
|
* Remove register keyword.mmcc2015-11-171-18/+18
| | | | ok deraadt@
* memory.h -> string.hmmcc2015-11-171-2/+2
| | | | ok deraadt@
* Convert several calloc calls to reallocarray. These calloc calls werelteo2014-06-261-7/+7
| | | | | | originally malloc(n * m) calls (without memset/bzero) in the past. ok deraadt@ tedu@
* Overflow check the calculation for a malloc size.deraadt2014-03-161-8/+39
| | | | XXX noted by lteo, change proofed & tested as well
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-021-6/+6
|
* malloc(x * y) -> calloc(x, y) from adobriyan AT gmail.com, with tweaksdjm2006-04-021-5/+4
| | | | suggested by kjell@; ok otto@ pat@ millert@ jaredy@
* In count_stmts(), make sure to account for long jump instructions as well,aaron2005-11-191-2/+2
| | | | | | | avoiding a memory error that could lead to a crash when a sufficiently complex bpf filter has been specified. otto@, millert@, djm@ ok Reference- http://www.tcpdump.org/lists/workers/2000/msg01364.html
* remove $Header, it was messing up cvs for me. ok deraadt@tedu2004-01-271-5/+1
|
* Swap args to calloc(3) so they are in the correct order; art@ ok.aaron2002-08-121-3/+3
|
* more error checking of memory allocation, from clodder@acm.org. okay deraadt@provos2002-07-091-2/+17
|
* sync with libpcap v0.5jakob2000-04-261-2/+88
| | | | add support for INET6 (kame)
* changes brought in from v0.4; started by brad, more by me, being tested by mtsderaadt1999-07-201-8/+7
|
* Use __inlinetholo1996-09-161-9/+9
|
* bring it to the latest 0.2 LBL release.mickey1996-07-121-70/+147
|
* merge to latest libpcapderaadt1996-06-101-30/+30
|
* Update to the latest LBL release.mickey1996-03-041-0/+1
|
* initial import of NetBSD treederaadt1995-10-181-0/+1928