From owner-freebsd-net@FreeBSD.ORG Mon Aug 18 14:50:45 2003 Return-Path: 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 0E7E237B401 for ; Mon, 18 Aug 2003 14:50:44 -0700 (PDT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B48D43FB1 for ; Mon, 18 Aug 2003 14:50:44 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.9/8.12.3) with ESMTP id h7ILod7c025890; Mon, 18 Aug 2003 14:50:39 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.9/8.12.3/Submit) id h7ILodmT025889; Mon, 18 Aug 2003 14:50:39 -0700 Date: Mon, 18 Aug 2003 14:50:39 -0700 From: Brooks Davis To: Vlad Galu Message-ID: <20030818215039.GA23573@Odin.AC.HMC.Edu> References: <20030818151512.0234443FB1@mx1.FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MGYHOYXEY6WxJCY8" Content-Disposition: inline In-Reply-To: <20030818151512.0234443FB1@mx1.FreeBSD.org> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu cc: freebsd-net@freebsd.org Subject: Re: interface destroy X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 21:50:45 -0000 --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--