From owner-cvs-src@FreeBSD.ORG Mon Feb 5 12:47:32 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 782F016A400; Mon, 5 Feb 2007 12:47:32 +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 4639113C4A3; Mon, 5 Feb 2007 12:47:32 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id 455841A90F6; Mon, 5 Feb 2007 07:47:31 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by out1.internal (MEProxy); Mon, 05 Feb 2007 07:47:31 -0500 X-Sasl-enc: 4AN+rmBSY3wstAcdjMJYdUEcLefeJ3XqcwLQpVhOmFHF 1170679650 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 9535F19F55; Mon, 5 Feb 2007 07:47:30 -0500 (EST) Message-ID: <45C72761.2010402@FreeBSD.org> Date: Mon, 05 Feb 2007 12:47:29 +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> In-Reply-To: <20070205124332.GG1621@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-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Feb 2007 12:47:32 -0000 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 > What do you think about checking that (ether_dhost == ours || BCAST || MCAST) > before sending packet to ether_demux? Not complete; we could be acting as an ARP proxy or even a Layer 2 proxy. I have to run out the door to run some errands, but the above link is a start. All the best, BMS