Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) From: Eric Crist In-Reply-To: <20120815105339.GG18296@...1296...> Date: Thu, 16 Aug 2012 10:35:52 -0500 Message-Id: <5DDA5487-D6B2-4EF2-8F20-D4324FBEB843@...1286...> References: <20120814194736.GU2535@...1296...> <20120815100012.GD18296@...1296...> <20120815105339.GG18296@...1296...> Subject: Re: [Openvpn-devel] RFC: tun/tap cleanup at program end List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Gert Doering Cc: openvpn-devel@lists.sourceforge.net On Aug 15, 2012, at 05:53:40, Gert Doering wrote: > Hi, > > On Wed, Aug 15, 2012 at 12:00:12PM +0200, Gert Doering wrote: >> 3 - check for the existance of "--dev tap3" and remember, not cleaning >> if it existed previously, doing this with RT_NETLINK which should >> be sufficiently portable across all BSDs. Same advantage as "2", >> hopefully much nicer implementation. > > Here we go. I discovered if_nametoindex(), which is really handy for > this :-) > > Eric, please test whether this solves your issues. > > David, please do *not yet* commit, even if someone ACKs - I need to test > this on OpenBSD, NetBSD and FreeBSD 9 as well. So far, only tested on > FreeBSD 7.4 (and works). I'm comfortable giving my ACK to this patch. ----- Eric F Crist