cvs commit: src/sys/dev/ath if_ath.c src/sys/dev/iicbus if_ic.c
src/sys/dev/ppbus if_plip.c src/sys/dev/wi if_wi.c src/sys/net
bpf.c bpf.h if_disc.c if_ef.c if_faith.c if_gif.c i
Nate Lawson
nate at root.org
Sun Dec 28 14:07:12 PST 2003
On Sat, 27 Dec 2003, Sam Leffler wrote:
> Modified files:
> sys/dev/ath if_ath.c
> sys/dev/iicbus if_ic.c
> sys/dev/ppbus if_plip.c
> sys/dev/wi if_wi.c
> sys/net bpf.c bpf.h if_disc.c if_ef.c if_faith.c
> if_gif.c if_gre.c if_loop.c if_stf.c
> if_tun.c
> sys/netinet ip_gre.c
> sys/netgraph ng_iface.c
> Log:
> o eliminate widespread on-stack mbuf use for bpf by introducing
> a new bpf_mtap2 routine that does the right thing for an mbuf
> and a variable-length chunk of data that should be prepended.
> o while we're sweeping the drivers, use u_int32_t uniformly when
> when prepending the address family (several places were assuming
> sizeof(int) was 4)
> o return M_ASSERTVALID to BPF_MTAP* now that all stack-allocated
> mbufs have been eliminated; this may better be moved to the bpf
> routines
FYI, we're preferring the C99 uint32_t to u_int32_t.
-Nate
More information about the cvs-src
mailing list