From owner-freebsd-stable Thu Mar 13 16:52: 0 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFA4837B404 for ; Thu, 13 Mar 2003 16:51:58 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD3FB43FBD for ; Thu, 13 Mar 2003 16:51:55 -0800 (PST) (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.3/8.12.3) with ESMTP id h2E0ppJu001993; Thu, 13 Mar 2003 16:51:51 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.3/8.12.3/Submit) id h2E0poRO001992; Thu, 13 Mar 2003 16:51:50 -0800 Date: Thu, 13 Mar 2003 16:51:50 -0800 From: Brooks Davis To: Mike Hoskins Cc: stable@FreeBSD.ORG Subject: Re: ifconfig destroy Message-ID: <20030313165150.A17024@Odin.AC.HMC.Edu> References: <20030312204020.A28243@Odin.AC.HMC.Edu> <20030313162551.P753-100000@fubar.adept.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030313162551.P753-100000@fubar.adept.org>; from mike@adept.org on Thu, Mar 13, 2003 at 04:30:35PM -0800 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 13, 2003 at 04:30:35PM -0800, Mike Hoskins wrote: > On Wed, 12 Mar 2003, Brooks Davis wrote: > > > What's the right way to remove pseudo-device/interfaces? I'm playing= with > > > a SSH/PPP tunnel, which can cause a lot of these to be created during= my > > > test phase. > > "ifconfig destroy" only works on devices created via "ifconfig > > create" and tun devices haven't been converted to do that yet. >=20 > Care to break out the cluebat and whack the right way into my head? >=20 > The problem was, during my experimentation I ended up exhausting tun* > pseudo-devs because they never got cleaned up. Nothing in tun(4) seemed > to help and 'destroy' and 'deletetunnel' from ifconfig(8) aren't right. tun devices can't be destroyed at this point. I'm fairly sure you shouldn't need more tun devices then you have open connections so I don't see how you could be running out of them. I think they are supposed to be recycled. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+cSemXY6L6fI4GtQRAtGTAJ4uCgMIFOdCglTM4wu+HShJPd27egCeMUFM QHxufnhNWoP9dXFN/moUDLc= =CROk -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message