From owner-freebsd-net Tue Jan 7 12:18: 0 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 43E5037B401 for ; Tue, 7 Jan 2003 12:17:59 -0800 (PST) Received: from ambrisko.com (adsl-64-174-51-42.dsl.snfc21.pacbell.net [64.174.51.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id B168243EB2 for ; Tue, 7 Jan 2003 12:17:58 -0800 (PST) (envelope-from ambrisko@www.ambrisko.com) Received: from www.ambrisko.com (localhost [127.0.0.1]) by ambrisko.com (8.12.6/8.12.6) with ESMTP id h07KHwF0037994 for ; Tue, 7 Jan 2003 12:17:58 -0800 (PST) (envelope-from ambrisko@www.ambrisko.com) Received: (from ambrisko@localhost) by www.ambrisko.com (8.12.6/8.12.6/Submit) id h07KHwCJ037993 for freebsd-net@freebsd.org; Tue, 7 Jan 2003 12:17:58 -0800 (PST) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200301072017.h07KHwCJ037993@www.ambrisko.com> Subject: if_tap.c interaction bug with netgraph?? To: freebsd-net@freebsd.org Date: Tue, 7 Jan 2003 12:17:58 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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 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. Thanks, Doug A. Index: net/if_tap.c =================================================================== RCS file: /home/cvs/freebsd/src/sys/net/if_tap.c,v retrieving revision 1.3.2.3 diff -c -r1.3.2.3 if_tap.c *** net/if_tap.c 14 Apr 2002 21:41:48 -0000 1.3.2.3 --- net/if_tap.c 7 Jan 2003 20:02:18 -0000 *************** *** 426,431 **** --- 426,432 ---- return (dummy); case SIOCSIFFLAGS: /* XXX -- just like vmnet does */ + tapifinit(tp); case SIOCADDMULTI: case SIOCDELMULTI: break; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message