freebsd-nq/sys/dev
Mike Smith b63b587cb3 A better fix for kern/7144:
The check for dropping unicast packets not sent to our ethernet
address is after the bpf tap, but not conditioned on it.  All packets
received should get handed to bpf, and unicast packets not to us (mac)
should get dropped whether or not there is a bpf listener.  I believe
that the common optimization that the interface is in hw promisc mode
iff there is a bpf listener is in general wrong, but more frequently
so on wavelans.

I think Max's fix makes bpf listeners not see unicast packets sent to
others, but I'm not sure.

One can argue that checking on MOD_ENAL is wrong, but the code only
drops packets that shouldn't be received.  The correctness condition
is that it be run whenever unicast packets without our mac address can
be received.

PR:		kern/7144
Submitted by:	Greg Troxel <gdt@ir.bbn.com>
1998-08-20 05:49:59 +00:00
..
advansys Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
aic7xxx Some revisions of the aic7880 have a problem where, if the 1998-06-28 02:58:57 +00:00
ar Removed unused includes. 1998-06-21 14:53:44 +00:00
bktr Use [u]intptr_t instead of [u_]long for casts between pointers and 1998-08-16 01:21:52 +00:00
ccd Make struct buf->b_offset reflect the real byte offset which got 1998-08-19 10:50:32 +00:00
cs Fix BNC/AUI autodetection. 1998-08-13 20:31:17 +00:00
cy Fixed devfs initialization which I broke in the previous commit. 1998-08-20 05:21:50 +00:00
de Cast pointers to uintptr_t/intptr_t instead of to u_long/long, 1998-07-15 02:32:35 +00:00
dec [Add missing files from previous commit] 1998-06-14 13:53:12 +00:00
dgb Use [u]intptr_t instead of [u_]long for casts between pointers and 1998-08-16 01:21:52 +00:00
dpt Fixed printf format and spelling errors. Didn't fix related 1998-08-16 23:37:54 +00:00
ed Removed unused includes. 1998-06-21 18:02:50 +00:00
eisa Fix list corruption and memory leak that could occur when 1998-05-14 19:47:38 +00:00
en FIxed printf format errors. Most of them were exposed by our ntohl() 1998-08-17 00:08:07 +00:00
ep Removed unused includes. 1998-06-21 18:02:50 +00:00
ex This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
fdc Fixed error handling: 1998-07-29 13:00:42 +00:00
fe Removed unused includes. 1998-06-21 16:51:06 +00:00
fxp Implemented a more sophisticated mechanism for handling transmitter 1998-08-04 08:53:12 +00:00
ic Use [u]intptr_t instead of [unsigned] long to convert and/or represent 1998-08-10 17:21:49 +00:00
ie Use [u]intptr_t instead of [unsigned] long to convert and/or represent 1998-08-10 17:21:49 +00:00
isp Use [u]intptr_t instead of [unsigned] long to convert and/or represent 1998-08-10 17:21:49 +00:00
joy This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
kbd keymap -> key_map so that the kernel will compile with 1998-06-06 17:45:11 +00:00
lnc Add support for PCNet PCI chips that only work when we talk to them as ISA 1998-07-20 17:33:01 +00:00
mc146818 Major changes to the generic device framework for FreeBSD/alpha: 1998-06-14 13:46:10 +00:00
mcd Fixed printf format errors (only 1 left in GENERIC now). 1998-07-13 09:53:11 +00:00
mse This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
pci Use "baseclass" instead of "class" for storing the contents of PCI register 1998-08-13 19:12:20 +00:00
pcm/isa Renambed sbintr to sb_intr to avoid a conflict with the (now 1998-06-17 16:59:30 +00:00
pdq This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
ppbus Fixed printf format errors. 1998-08-17 01:05:25 +00:00
ppc Major ppbus updates from the author. 1998-08-03 19:14:33 +00:00
rc Register tty software interrupt handlers at run time using register_swi() 1998-08-11 17:01:32 +00:00
rp Changed %n to %r in devfs name format strings. %n has almost gone away. 1998-07-15 12:18:34 +00:00
scd Fixed printf format errors (only 1 left in GENERIC now). 1998-07-13 09:53:11 +00:00
si Cast an int to (intptr_t) before casting it to (void *). 1998-08-16 01:04:48 +00:00
sio Fixed devfs initialization which I broke in the previous commit. 1998-08-20 05:12:48 +00:00
slice Typo fix: teh --> (the|they) 1998-07-30 02:27:41 +00:00
snp This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
sound/isa Renambed sbintr to sb_intr to avoid a conflict with the (now 1998-06-17 16:59:30 +00:00
speaker This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
sr Removed unused includes. 1998-06-21 14:53:44 +00:00
syscons Fix one forgotten instance of \n to \r 1998-08-18 07:36:47 +00:00
tx Fixed printf format errors (only 1 left in GENERIC now). 1998-07-13 09:53:11 +00:00
vn Make struct buf->b_offset reflect the real byte offset which got 1998-08-19 10:50:32 +00:00
vx Import the (Fast) Etherlink XL driver. I'm reasonally confident in its 1998-08-16 17:14:59 +00:00
wl A better fix for kern/7144: 1998-08-20 05:49:59 +00:00