From owner-freebsd-bugs Thu Aug 20 00:30:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA09196 for freebsd-bugs-outgoing; Thu, 20 Aug 1998 00:30:10 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA09174 for ; Thu, 20 Aug 1998 00:30:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id AAA01561; Thu, 20 Aug 1998 00:30:00 -0700 (PDT) Date: Thu, 20 Aug 1998 00:30:00 -0700 (PDT) Message-Id: <199808200730.AAA01561@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Mike Smith Subject: Re: kern/7144: WaveLAN interface moves packets to uper layer while dst addr does not belong to that interface (even while not in allmulti/promisc mode) Reply-To: Mike Smith Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/7144; it has been noted by GNATS. From: Mike Smith To: Max Gotlib Cc: Greg Troxel , freebsd-gnats-submit@freebsd.org, Jim Binkley , Mike Smith Subject: Re: kern/7144: WaveLAN interface moves packets to uper layer while dst addr does not belong to that interface (even while not in allmulti/promisc mode) Date: Thu, 20 Aug 1998 00:18:06 +0000 Please make sure you copy me on the results of this; if it works OK then I'll commit it (but otherwise I am going to forget). Please also mention the PR number when you do. Thanks. > Hi! > > Glad too see that wavelan technology is of a particular interest ... > And as for suggested patch - totally agreed :))) > > And one Q. more - I sent another patch (kern/7044) that fixed > (at least for me) wavelan board initialization process... > Can you test it on your board, please, and if the results > will be successfull - i would be glad to see it (or it's variant) > in the FreeBSD source tree... > > With best regards, > Max. > > On Wed, 19 Aug 1998, Greg Troxel wrote: > > > I had just about the same problem, with 915 MHz ISA wavelans cards and > > no wavepoints. Running mrouted, which set IFF_ALLMULTI caused unicast > > packets with a mac address not matching the local machine to be > > forwarded. My fix is different, and I believe makes bpf work > > correctly. > > > > 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. > > -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message