OpenBSD cvs log

created 2020-12-28T09:04:02Z
begin 2020-08-03T00:00:00Z
end 2020-08-03T03:21:24Z
path src/sys
commits 1

date 2020-08-03T03:21:24Z
author dlg
files src/sys/net/bpf.h log diff annotate
src/sys/net/bpf_filter.c log diff annotate
message add a BPF_RND load location that provides a random value.

this will be used so a bpf filter can make a decision based on a
random number, which in turn will be used so a filter can perform
random sampling of packets rather than capturing all packets. random
sampling means that we don't have to figure out how to make bpf
coordinate multiple concurrent calls to do counter based sampling.

BPF_RND is currently backed with arc4random.

discussed with many including jmatthew@, alex wilson, claudio@,
sthen@, deraadt@, and tb@
ok kn@ tb@ jmatthew@

i call this extended bpf... xBPF.