History log of /openbsd-src/lib/libpcap/gencode.h (Results 1 – 22 of 22)
Revision Date Author Comments
# e1cb6e2e 21-May-2024 jsg <jsg@openbsd.org>

remove prototypes with no matching function


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

add "sample NUM" so you can ask to capture 1/NUM packets from a filter.

the use of the sample keyword matches similar config in other
products.

NUM can be a number between 2 and 1048576, and is use

add "sample NUM" so you can ask to capture 1/NUM packets from a filter.

the use of the sample keyword matches similar config in other
products.

NUM can be a number between 2 and 1048576, and is used to divide
0x100000000 into a threshold that is then compared against a randomly
generated number produced by a load of BPF_RND.

having sampling as part of the grammar means you can write things
like "icmp or sample 128". this lets you capture all icmp traffic
and a sample of the rest of the traffic.

ok jmatthew@ kn@ tb@

show more ...


# 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 ...


# ff52dd4a 09-Dec-2018 denis <denis@openbsd.org>

add basic MPLS filtering support

OK claudio@ jca@


# aa4ed2b9 03-Jun-2018 sthen <sthen@openbsd.org>

Change some libpcap functions which use pointers as arguments and
returns to const pointers:

- the prefix argument to pcap_perror();
- the return value of pcap_strerror();
- the filter expression ar

Change some libpcap functions which use pointers as arguments and
returns to const pointers:

- the prefix argument to pcap_perror();
- the return value of pcap_strerror();
- the filter expression argument to pcap_compile() and pcap_compile_nopcap();
- the BPF filter program argument to bpf_image().

Matches changes made earlier in tcpdump.org's version of libpcap.
From Guy Harris, ok tb@, been through a bulk ports build.

show more ...


# e389019d 27-Apr-2017 millert <millert@openbsd.org>

Remove the "volatile" attribute from bpf_error(). The "volatile"
attribute is an obsolete way of saying "noreturn". clang doesn't
recognize it and the function is already marked __dead so it is
sup

Remove the "volatile" attribute from bpf_error(). The "volatile"
attribute is an obsolete way of saying "noreturn". clang doesn't
recognize it and the function is already marked __dead so it is
superfluous anyway.

show more ...


# 6d6dc666 11-Apr-2014 lteo <lteo@openbsd.org>

Zap CVS $Header tags, reduces diff with upstream's repo

ok deraadt@


# febc6dcd 11-Jun-2008 dtucker <dtucker@openbsd.org>

Import vlan support from upstream libpcap. This allows, eg, "tcpdump vla 3"
to work on a vlan parent interface. ok mcbride@, "commit it" deraadt@


# d42a50a0 02-Jan-2007 reyk <reyk@openbsd.org>

define bpf filters to match address and header fields in IEEE 802.11
wlan frames (DLT_IEEE802_11 and DLT_IEEE802_11_RADIO linktypes). see
tcpdump(8) for details.

"Works for me" claudio@
ok jmc@ dera

define bpf filters to match address and header fields in IEEE 802.11
wlan frames (DLT_IEEE802_11 and DLT_IEEE802_11_RADIO linktypes). see
tcpdump(8) for details.

"Works for me" claudio@
ok jmc@ deraadt@

show more ...


# 69886b23 18-Jul-2006 dlg <dlg@openbsd.org>

get rid of arc network support. we have no users of it so this is dead
code. however, it is still cluttering up the kernel namespace a bit. it is
better gone.

ok claudio@


# f562933e 07-Oct-2005 mpf <mpf@openbsd.org>

Add Spanning Tree Protocol support.
Bump version to 3.1.
OK brad@


# 263bcd0c 14-May-2003 canacar <canacar@openbsd.org>

libpcap and tcpdump now understand the new pflog datalink type.
old datalink type is still recognized.

ok henning@ dhartmei@ frantzen@


# e83aed87 23-Mar-2002 frantzen <frantzen@openbsd.org>

language extensions for PF logs. can specify direction, interface, rule
number, reason and action. fix the ipv4/ipv6 distinction while I'm here.


# e7beb4a7 19-Feb-2002 millert <millert@openbsd.org>

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# fee2a480 06-Dec-2000 deraadt <deraadt@openbsd.org>

use __x__ formats for __attribute__ arguments; guenther@gac.edu


# 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


# b7113356 25-Jul-1997 mickey <mickey@openbsd.org>

#if __STDC__ --> #ifdef __STDC__


# 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