From owner-freebsd-net Tue Jan 7 15: 6:40 2003 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 554AE37B401 for ; Tue, 7 Jan 2003 15:06:39 -0800 (PST) Received: from scl8owa02.int.exodus.net (scl8out02.exodus.net [66.35.230.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id C42FD43E4A for ; Tue, 7 Jan 2003 15:06:38 -0800 (PST) (envelope-from Maksim.Yevmenkin@cw.com) Received: from scl8owa01.int.exodus.net ([66.35.230.241]) by scl8owa02.int.exodus.net with Microsoft SMTPSVC(5.0.2195.5329); Tue, 7 Jan 2003 15:06:38 -0800 Received: from exodus.net ([165.193.27.35]) by scl8owa01.int.exodus.net over TLS secured channel with Microsoft SMTPSVC(5.0.2195.5329); Tue, 7 Jan 2003 15:06:38 -0800 Message-ID: <3E1B5CDA.3010309@exodus.net> Date: Tue, 07 Jan 2003 15:03:54 -0800 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021126 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Doug Ambrisko Cc: freebsd-net@FreeBSD.ORG Subject: Re: if_tap.c interaction bug with netgraph?? References: <200301072017.h07KHwCJ037993@www.ambrisko.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Jan 2003 23:06:38.0593 (UTC) FILETIME=[6EDF8F10:01C2B6A1] Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Doug, >I've run into this bug since about 4.6-stable of some time. I use netgraph >to connect to a tap device in vmnet mode since in vmnet mode it is >persistan. In tap mode if comes and goes depending on whether or not I >have the device open. Anyways I couldn't get data to come in the vmnet >node through netgraph with only the interface up, auto source off and >promicious on (ie. bridge mode). This patches fixes it by doing >and init to get the interface going. Any objections to this change? >If you give the interface an IP then it works okay except you shouldn't >have to do that. > "vmnet" mode is special. It has been introduced when if_tap and vmnet were merged into one driver. I tried to be compatible with old vmnet driver (note XXX comment). Just need to make sure this does not break VMWare (will try later today). Another possible solution is to introduce "persistent" mode for tap, i.e. a couple of new ioctl()'s for tap device to set/get persistent mode and to init tap interface. thanks, max To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message