Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Jan 2003 15:03:54 -0800
From:      Maksim Yevmenkin <myevmenk@exodus.net>
To:        Doug Ambrisko <ambrisko@ambrisko.com>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: if_tap.c interaction bug with netgraph??
Message-ID:  <3E1B5CDA.3010309@exodus.net>
References:  <200301072017.h07KHwCJ037993@www.ambrisko.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E1B5CDA.3010309>