Date: Mon, 05 Feb 2007 18:03:16 +0000 From: "Bruce M. Simpson" <bms@FreeBSD.org> To: Gleb Smirnoff <glebius@FreeBSD.org> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/net if_tap.c Message-ID: <45C77164.1020801@FreeBSD.org> In-Reply-To: <45C72761.2010402@FreeBSD.org> References: <200702030257.l132vkfT089439@repoman.freebsd.org> <20070205124332.GG1621@FreeBSD.org> <45C72761.2010402@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Bruce M. Simpson wrote: > Gleb Smirnoff wrote: >> ... >> Moreover, in case of promisc + net.inet.ip.forwarding=1 our box will >> resend >> all the received foreign packets :( >> > > NetBSD has M_PROMISC presumably for detecting situations like this: > http://fxr.watson.org/fxr/ident?v=NETBSD&i=M_PROMISC 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. Rehards, BMS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45C77164.1020801>