cvs commit: src/sys/dev/iicbus if_ic.c src/sys/i4b/driver
i4b_ipr.c src/sys/net bpf.c if_disc.c if_faith.c if_gif.c if_gre.c
if_loop.c if_stf.c if_tun.c src/sys/netgraph ng_iface.c ng_sppp.c
src/sys/netinet ip_carp.c
David Malone
dwmalone at FreeBSD.org
Sun Jun 26 18:11:12 GMT 2005
dwmalone 2005-06-26 18:11:11 UTC
FreeBSD src repository
Modified files:
sys/dev/iicbus if_ic.c
sys/i4b/driver i4b_ipr.c
sys/net bpf.c if_disc.c if_faith.c if_gif.c
if_gre.c if_loop.c if_stf.c if_tun.c
sys/netgraph ng_iface.c ng_sppp.c
sys/netinet ip_carp.c
Log:
Fix some long standing bugs in writing to the BPF device attached to
a DLT_NULL interface. In particular:
1) Consistently use type u_int32_t for the header of a
DLT_NULL device - it continues to represent the address
family as always.
2) In the DLT_NULL case get bpf_movein to store the u_int32_t
in a sockaddr rather than in the mbuf, to be consistent
with all the DLT types.
3) Consequently fix a bug in bpf_movein/bpfwrite which
only permitted packets up to 4 bytes less than the MTU
to be written.
4) Fix all DLT_NULL devices to have the code required to
allow writing to their bpf devices.
5) Move the code to allow writing to if_lo from if_simloop
to looutput, because it only applies to DLT_NULL devices
but was being applied to other devices that use if_simloop
possibly incorrectly.
PR: 82157
Submitted by: Matthew Luckie <mjl at luckie.org.nz>
Approved by: re (scottl)
Revision Changes Path
1.23 +7 -1 src/sys/dev/iicbus/if_ic.c
1.34 +9 -1 src/sys/i4b/driver/i4b_ipr.c
1.152 +19 -13 src/sys/net/bpf.c
1.48 +5 -6 src/sys/net/if_disc.c
1.36 +6 -7 src/sys/net/if_faith.c
1.52 +9 -2 src/sys/net/if_gif.c
1.31 +8 -1 src/sys/net/if_gre.c
1.106 +10 -10 src/sys/net/if_loop.c
1.50 +12 -2 src/sys/net/if_stf.c
1.152 +6 -7 src/sys/net/if_tun.c
1.43 +5 -8 src/sys/netgraph/ng_iface.c
1.8 +1 -1 src/sys/netgraph/ng_sppp.c
1.26 +9 -0 src/sys/netinet/ip_carp.c
More information about the cvs-src
mailing list