diff options
author | 2020-08-03 03:40:02 +0000 | |
---|---|---|
committer | 2020-08-03 03:40:02 +0000 | |
commit | 2cba36b56b1c3fd3bbf6a036e01b16253c887425 (patch) | |
tree | f29d550703c947b27a698d3a6cacfbee45bada18 /gnu/llvm/clang/unittests/Driver/ModuleCacheTest.cpp | |
parent | add aliases for arm eabi long long shift functions (diff) | |
download | wireguard-openbsd-2cba36b56b1c3fd3bbf6a036e01b16253c887425.tar.xz wireguard-openbsd-2cba36b56b1c3fd3bbf6a036e01b16253c887425.zip |
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@
Diffstat (limited to 'gnu/llvm/clang/unittests/Driver/ModuleCacheTest.cpp')
0 files changed, 0 insertions, 0 deletions