summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/clang/tools/clang-diff/ClangDiff.cpp
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2020-08-03 03:21:24 +0000
committerdlg <dlg@openbsd.org>2020-08-03 03:21:24 +0000
commit431bbcd8514770ff96bec1064a8107c1696d170e (patch)
tree8fc615f42eb5129e3ef6117b2640b693ad064dfb /gnu/llvm/clang/tools/clang-diff/ClangDiff.cpp
parentsync (diff)
downloadwireguard-openbsd-431bbcd8514770ff96bec1064a8107c1696d170e.tar.xz
wireguard-openbsd-431bbcd8514770ff96bec1064a8107c1696d170e.zip
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.
Diffstat (limited to 'gnu/llvm/clang/tools/clang-diff/ClangDiff.cpp')
0 files changed, 0 insertions, 0 deletions