From owner-cvs-all@FreeBSD.ORG Mon Feb 5 18:03:23 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3329216A40B; Mon, 5 Feb 2007 18:03:22 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.freebsd.org (Postfix) with ESMTP id E398213C4A3; Mon, 5 Feb 2007 18:03:19 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id 6690F1A912B; Mon, 5 Feb 2007 13:03:18 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by out1.internal (MEProxy); Mon, 05 Feb 2007 13:03:18 -0500 X-Sasl-enc: PIujw0EkY2BkGLbrsONf5O9xlES3Cj3VCpLNv0oh7Op1 1170698598 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id A4ED510D48; Mon, 5 Feb 2007 13:03:16 -0500 (EST) Message-ID: <45C77164.1020801@FreeBSD.org> Date: Mon, 05 Feb 2007 18:03:16 +0000 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.9 (X11/20070125) MIME-Version: 1.0 To: Gleb Smirnoff References: <200702030257.l132vkfT089439@repoman.freebsd.org> <20070205124332.GG1621@FreeBSD.org> <45C72761.2010402@FreeBSD.org> In-Reply-To: <45C72761.2010402@FreeBSD.org> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/net if_tap.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Feb 2007 18:03:23 -0000 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