freebsd-dev/sys/dev/iicbus
David Malone 01399f34a5 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@luckie.org.nz>
Approved by:	re (scottl)
2005-06-26 18:11:11 +00:00
..
if_ic.c Fix some long standing bugs in writing to the BPF device attached to 2005-06-26 18:11:11 +00:00
iic.c Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
iic.h
iicbb_if.m Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
iicbb.c Use __FBSDID(). 2003-08-24 17:55:58 +00:00
iicbus_if.m Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
iicbus.c Make "envctrl" a known master driver for iicbus. 2004-05-27 13:29:09 +00:00
iicbus.h
iiconf.c Use __FBSDID(). 2003-08-24 17:55:58 +00:00
iiconf.h
iicsmb.c Don't hardcode unit numer '0'. 2003-08-10 14:28:24 +00:00