diff options
author | 2014-07-09 09:30:49 +0000 | |
---|---|---|
committer | 2014-07-09 09:30:49 +0000 | |
commit | 73a8458fa4387bba17d1426fbdadd6ce955f6ecd (patch) | |
tree | b0a9e43b5405aae9be66e2ec2b707bf70ae8857e /lib/libcrypto/stack/stack.c | |
parent | Kill more FIPS tentacles by removing the private_AES_set_{enc,dec}rypt_key() (diff) | |
download | wireguard-openbsd-73a8458fa4387bba17d1426fbdadd6ce955f6ecd.tar.xz wireguard-openbsd-73a8458fa4387bba17d1426fbdadd6ce955f6ecd.zip |
bpf code surgery / shuffling / simplification.
the various bpf_mtap_* are very similiar, they differ in what (and to some
extent how) they prepend something, and what copy function they pass to
bpf_catchpacket.
use an internal _bpf_mtap as "backend" for bpf_mtap and friends.
extend bpf_mtap_hdr so that it covers all common cases:
if dlen is 0, nothing gets prepended.
copy function can be given, if NULL the default bpf_mcopy is used.
adjust the existing bpf_mtap_hdr users to pass a NULL ptr for the copy fn.
re-implement bpf_mtap_af as simple wrapper for bpf_mtap_hdr.
re-implement bpf_mtap_ether using bpf_map_hdr
re-implement bpf_mtap_pflog as trivial bpf_mtap_hdr wrapper
ok bluhm benno
Diffstat (limited to 'lib/libcrypto/stack/stack.c')
0 files changed, 0 insertions, 0 deletions