CVSROOT:        /cvs
Module name:    src
Changes by:     henn...@cvs.openbsd.org 2014/07/09 03:30:49

Modified files:
        sys/arch/sparc/dev: if_ie.c 
        sys/net        : bpf.c bpf.h if_bridge.c if_trunk.c if_vlan.c 
        sys/netinet    : ip_ah.c ip_carp.c ip_esp.c ip_ipcomp.c 
                         ipsec_input.c 

Log message:
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

Reply via email to