diff options
author | 2020-08-03 03:29:58 +0000 | |
---|---|---|
committer | 2020-08-03 03:29:58 +0000 | |
commit | a8e9f808963388af56d210337c14dd50c91412d5 (patch) | |
tree | 229b2e00387babe032a9ce40437c884c07556fc8 /gnu/llvm/clang/lib/Serialization/ModuleFile.cpp | |
parent | add a BPF_RND load location that provides a random value. (diff) | |
download | wireguard-openbsd-a8e9f808963388af56d210337c14dd50c91412d5.tar.xz wireguard-openbsd-a8e9f808963388af56d210337c14dd50c91412d5.zip |
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@
Diffstat (limited to 'gnu/llvm/clang/lib/Serialization/ModuleFile.cpp')
0 files changed, 0 insertions, 0 deletions