Date: Mon, 18 Aug 2003 14:50:39 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: Vlad Galu <Vlad.Galu@rdsnet.ro> Cc: freebsd-net@freebsd.org Subject: Re: interface destroy Message-ID: <20030818215039.GA23573@Odin.AC.HMC.Edu> In-Reply-To: <20030818151512.0234443FB1@mx1.FreeBSD.org> References: <20030818151512.0234443FB1@mx1.FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 18, 2003 at 08:15:12AM -0700, Vlad Galu wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 >=20 >=20 > Hello. I have a tun interface used by an userspace daemon > (namely openvpn). Is there a way of destroying it upon openvpn > shutdown ? ifconfig tun0 destroy returns this : > > ifconfig: SIOCIFDESTROY: Invalid argument Does this mean that > the ifreq structure passed as argument to the SIOCIFDESTROY is empty? No, this means that ifconfig's destory argument doesn't work with tun interfaces. The tun interface needs to be convered to use the pseudo-interface cloning infrastructure, but so far, it hasn't happened. I've taken a look at it a a few times, but the current auto creation code is really incompatable with the way cloning works which makes it problematic. -- Brooks --MGYHOYXEY6WxJCY8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/QUniXY6L6fI4GtQRAjg1AJ9pnGaejAYjYZ8z7zXf4ke9eXNblQCdFXg4 Tum3OfQSECGOlAfivq8FqlE= =MAM9 -----END PGP SIGNATURE----- --MGYHOYXEY6WxJCY8--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030818215039.GA23573>