History log of /openbsd-src/lib/libpcap/optimize.c (Results 1 – 23 of 23)
Revision Date Author Comments
# 146262ea 08-Apr-2024 jsg <jsg@openbsd.org>

more ansi function decls
ok deraadt@


# 19fef815 05-Apr-2024 deraadt <deraadt@openbsd.org>

ANSI functions; ok tb


# a8e9f808 03-Aug-2020 dlg <dlg@openbsd.org>

add support for handling loads from BPF_RND.

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 prin

add support for handling loads from BPF_RND.

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@

show more ...


# a440ace2 26-Apr-2018 guenther <guenther@openbsd.org>

Convert a format string variable to a static const char[] to reduce warnings

ok tb@ millert@ krw@


# 8d58530a 05-Feb-2016 canacar <canacar@openbsd.org>

Use the correct structure size when allocating the array for nodes.
ok tb@ millert@


# 526dd6c5 22-Dec-2015 mmcc <mmcc@openbsd.org>

remove NULL-checks before free()


# d0438536 17-Nov-2015 mmcc <mmcc@openbsd.org>

Remove register keyword.

ok deraadt@


# 3a9b5ec4 17-Nov-2015 mmcc <mmcc@openbsd.org>

memory.h -> string.h

ok deraadt@


# b8f389f9 26-Jun-2014 lteo <lteo@openbsd.org>

Convert several calloc calls to reallocarray. These calloc calls were
originally malloc(n * m) calls (without memset/bzero) in the past.

ok deraadt@ tedu@


# 49639a4c 16-Mar-2014 deraadt <deraadt@openbsd.org>

Overflow check the calculation for a malloc size.
XXX noted by lteo, change proofed & tested as well


# 1ed98fdf 02-Sep-2007 deraadt <deraadt@openbsd.org>

use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg


# ad4287e4 02-Apr-2006 djm <djm@openbsd.org>

malloc(x * y) -> calloc(x, y) from adobriyan AT gmail.com, with tweaks
suggested by kjell@; ok otto@ pat@ millert@ jaredy@


# 3a418d8f 19-Nov-2005 aaron <aaron@openbsd.org>

In count_stmts(), make sure to account for long jump instructions as well,
avoiding a memory error that could lead to a crash when a sufficiently complex
bpf filter has been specified. otto@, miller

In count_stmts(), make sure to account for long jump instructions as well,
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

show more ...


# 8b37c96a 27-Jan-2004 tedu <tedu@openbsd.org>

remove $Header, it was messing up cvs for me. ok deraadt@


# bb098db6 12-Aug-2002 aaron <aaron@openbsd.org>

Swap args to calloc(3) so they are in the correct order; art@ ok.


# 85a9a594 09-Jul-2002 provos <provos@openbsd.org>

more error checking of memory allocation, from clodder@acm.org. okay deraadt@


# a9b0695f 26-Apr-2000 jakob <jakob@openbsd.org>

sync with libpcap v0.5
add support for INET6 (kame)


# 01efc7ef 20-Jul-1999 deraadt <deraadt@openbsd.org>

changes brought in from v0.4; started by brad, more by me, being tested by mts


# 8df16311 16-Sep-1996 tholo <tholo@openbsd.org>

Use __inline


# 9b113833 12-Jul-1996 mickey <mickey@openbsd.org>

bring it to the latest 0.2 LBL release.


# 8a71272b 10-Jun-1996 deraadt <deraadt@openbsd.org>

merge to latest libpcap


# 5262edaf 04-Mar-1996 mickey <mickey@openbsd.org>

Update to the latest LBL release.


# df930be7 18-Oct-1995 deraadt <deraadt@openbsd.org>

initial import of NetBSD tree