[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: cvs.openbsd.org: src

Module name:	src
Changes by:	pascoe_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2005/07/30 21:52:19

Modified files:
	sys/net        : if_trunk.c if_pflog.c if_gif.c if_gre.c 
	                 if_loop.c if_vlan.c if_faith.c bpf.h bpf.c 
	sys/arch/mvme68k/dev: if_ie.c 
	sys/arch/mvme88k/dev: if_ie.c 
	sys/arch/sparc/dev: if_ie.c 
	sys/dev/isa    : if_ie.c 
	sys/netinet    : ip_ah.c ip_carp.c ip_esp.c ip_ether.c ip_gre.c 
	                 ip_ipcomp.c ip_ipip.c ipsec_input.c 

Log message:
Introduce bpf_mtap_af and bpf_mtap_hdr to be used when passing a mbuf chain
to bpf with either an address family or other header added.

These helpers only allocate a much smaller struct m_hdr on the stack when
needed, rather than leaving 256 byte struct mbufs on the stack in deep
call paths.  Also removes a fair bit of duplicated code.

commit now, tune after deraadt@