Date: Tue, 7 Jan 2003 12:17:58 -0800 (PST) From: Doug Ambrisko <ambrisko@ambrisko.com> To: freebsd-net@freebsd.org Subject: if_tap.c interaction bug with netgraph?? Message-ID: <200301072017.h07KHwCJ037993@www.ambrisko.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301072017.h07KHwCJ037993>