Subject: Re: a remote user can check promiscuous mode
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Andrew Brown <>
List: tech-net
Date: 01/18/2000 14:25:30
>> Date: Sat, 11 Dec 1999 04:05:40 -0500

wow!  you're even more behind than i am!  :)

>> wouldn't it be relatively simple (although a probably little
>> top-heavy) to add a few lines of code to ether_input() to check the
>> dst hardware address vs the interface address on which the packet
>> arrived if the dst hardware address is *not* multi/broadcast?
>At least one of the Ethernet drivers does this already; see
>dev/ic/lance.c, around line 500 of rev 1.9.

ah...the LANCE_REVC_BUG bug.  :)

but that's only one driver.  it would probably be "better"(tm) if the
ether_input() routine checked something like that.

actually...since i'm just mouthing off here, it would probably be
"even better"(tm) to have a generic hw_input() routine that all the
other *_input() routines (eg, ether_input(), ppp_input(), arc_input(),
atm_input(), fddi_input(), ddp_input()...) could pass up to that would
check something like this.  top-heavy, of course.

|-----< "CODE WARRIOR" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"       * "information is power -- share the wealth."