cvs commit: src/sys/net if_tap.c
Bruce M. Simpson
bms at FreeBSD.org
Mon Feb 5 18:03:23 UTC 2007
Bruce M. Simpson wrote:
> Gleb Smirnoff wrote:
>> Moreover, in case of promisc + net.inet.ip.forwarding=1 our box will
>> all the received foreign packets :(
> NetBSD has M_PROMISC presumably for detecting situations like this:
The other cool thing is the opportunities for functional separation
which it offers.
For example: wi(4) is known to have a broken IFF_ALLMULTI mode, as do
other cards. If we added an ifnet capability 'has working hardware
allmulti', M_PROMISC lets you do the right thing in either case at the
cost of checking a bit.
More information about the cvs-src