NetBSD/sys/dev
heas 37ea29ba5a Perform a s/w checksum for packets that are not the same length as the length
field of the IP header (ip->ip-len) indicates they should be.  This handles
the case where an ethernet frame has been padded to meet the minimum ethernet
frame length or erroneously (my cisco switch unnecessarily adds 4 bytes to its
SYN).  This padding will be included in the hardware checksum and may be
non-zero, thus making it incorrect.
Also, clear csum_flags when we want a s/w checksum, since we may have started
down the h/w checksum path and determined that it was not usable.

While here, clean-up a few WS nits and ifdef INET the hardware checksum code.
2005-03-05 18:36:23 +00:00
..
acpi regen 2005-02-27 05:18:58 +00:00
apm nuke trailing whitespace 2005-02-27 00:26:58 +00:00
arcbios nuke trailing whitespace 2005-02-27 00:26:58 +00:00
ata Disestablish powerhook while detaching atabus. 2005-03-04 11:00:54 +00:00
bi nuke trailing whitespace 2005-02-27 00:26:58 +00:00
bluetooth
cardbus Not used any more. 2005-03-04 05:22:52 +00:00
dec nuke trailing whitespace 2005-02-27 00:26:58 +00:00
dkwedge nuke trailing whitespace 2005-02-27 00:26:58 +00:00
dmover nuke trailing whitespace 2005-02-27 00:26:58 +00:00
ebus nuke trailing whitespace 2005-02-27 00:26:58 +00:00
eisa regen 2005-02-27 05:29:24 +00:00
gpib nuke trailing whitespace 2005-02-27 00:26:58 +00:00
hpc nuke trailing whitespace 2005-02-27 00:26:58 +00:00
i2c Check and clear the HT bit in strtc_clock_read(), not just strtc_clock_write() 2004-11-24 14:46:18 +00:00
i2o nuke trailing whitespace 2005-02-27 00:26:58 +00:00
ic Perform a s/w checksum for packets that are not the same length as the length 2005-03-05 18:36:23 +00:00
ieee1394 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
ir nuke trailing whitespace 2005-02-27 00:26:58 +00:00
isa Add a missing return after an "if" that checks for something then 2005-02-28 05:05:02 +00:00
isapnp regen 2005-02-27 05:35:40 +00:00
marvell nuke trailing whitespace 2005-02-27 00:26:58 +00:00
mca le_mca_intredge(): g/c error semicolon, found by Simon Burge 2005-02-28 07:36:48 +00:00
microcode revert the whitespace kill -- these are binaries. 2005-03-01 01:10:43 +00:00
mii regen 2005-02-27 14:29:44 +00:00
mscp nuke trailing whitespace 2005-02-27 00:26:58 +00:00
mvme nuke trailing whitespace 2005-02-27 00:26:58 +00:00
news
ofisa nuke trailing whitespace 2005-02-27 00:26:58 +00:00
ofw nuke trailing whitespace 2005-02-27 00:26:58 +00:00
pci g/c debugging printf 2005-03-05 14:51:21 +00:00
pckbport nuke trailing whitespace 2005-02-27 00:26:58 +00:00
pcmcia regen 2005-02-27 15:29:37 +00:00
podulebus regen 2005-02-27 15:32:15 +00:00
ppbus nuke trailing whitespace 2005-02-27 00:26:58 +00:00
qbus White space nits. 2005-02-26 12:45:06 +00:00
raidframe nuke trailing whitespace 2005-02-27 00:26:58 +00:00
rasops nuke trailing whitespace 2005-02-27 00:26:58 +00:00
rcons nuke trailing whitespace 2005-02-27 00:26:58 +00:00
sbus nuke trailing whitespace 2005-02-27 00:26:58 +00:00
scsipi Remove a bit of old cruft. 2005-02-28 22:56:15 +00:00
smbus
std nuke trailing whitespace 2005-02-27 00:26:58 +00:00
sun Fix a conditional: sparc's will use the raster ops via RASTERCONSOL 2005-03-03 16:01:37 +00:00
sysmon nuke trailing whitespace 2005-02-27 00:26:58 +00:00
tc regen 2005-02-27 15:34:22 +00:00
usb Regen. 2005-03-04 05:03:42 +00:00
vinum nuke trailing whitespace 2005-02-27 00:26:58 +00:00
vme nuke trailing whitespace 2005-02-27 00:26:58 +00:00
wscons nuke trailing whitespace 2005-02-27 00:26:58 +00:00
wsfont nuke trailing whitespace 2005-02-27 00:26:58 +00:00
xmi nuke trailing whitespace 2005-02-27 00:26:58 +00:00
auconv.c merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
auconv.h merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
audio_if.h merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
audio.c For the "record.port", choose "record.source" over "inputs.source" if the 2005-02-13 23:53:20 +00:00
audiobell.c
audiobellvar.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
audiovar.h merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
aurateconv.c merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
ccd.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
ccdvar.h hide bufq_state from userland. 2004-10-28 06:59:18 +00:00
cgd_crypto.c
cgd_crypto.h
cgd.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
cgdvar.h
clock_subr.c de-__P 2005-02-04 02:10:35 +00:00
clock_subr.h de-__P 2005-02-04 02:10:35 +00:00
clockctl.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
cninit.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
cons.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
cons.h de-__P 2005-02-04 02:10:35 +00:00
DEVNAMES nuke trailing whitespace 2005-02-27 00:26:58 +00:00
dksubr.c move buffer queue related stuffs from buf.h to their own header, bufq.h. 2004-10-28 07:07:35 +00:00
dkvar.h
fss.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
fssvar.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
kloader.c
kloader.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
kttcp.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
kttcpio.h
ld.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
ldvar.h Add support for wedges to the logical disk driver. 2004-09-25 04:28:08 +00:00
Makefile
md_root.c
md.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
md.h
midi_if.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
midi.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
midisyn.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
midisynvar.h constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
midivar.h constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
mm.c
mulaw.c merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
mulaw.h merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
nullcons_subr.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
radio_if.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
radio.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
radiovar.h constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
rnd.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
rndpool.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
sequencer.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
sequencervar.h de-__P 2005-02-04 02:10:35 +00:00
verified_exec.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
vnd.c move buffer queue related stuffs from buf.h to their own header, bufq.h. 2004-10-28 07:07:35 +00:00
vndvar.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00