From owner-freebsd-net@FreeBSD.ORG Mon Aug 18 08:15:15 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 CE97C37B41C for ; Mon, 18 Aug 2003 08:15:13 -0700 (PDT) Received: from diaspar.rdsnet.ro (diaspar.rdsnet.ro [81.196.201.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0234443FB1 for ; Mon, 18 Aug 2003 08:15:12 -0700 (PDT) (envelope-from Vlad.Galu@rdsnet.ro) Received: (qmail 86123 invoked from network); 18 Aug 2003 15:13:27 -0000 Received: from unknown (HELO diaspar.rdsnet.ro) (81.196.201.65) by 0 with SMTP; 18 Aug 2003 15:13:27 -0000 From: Vlad Galu To: freebsd-net@freebsd.org Organization: Romania Data Systems X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20030818151512.0234443FB1@mx1.FreeBSD.org> Date: Mon, 18 Aug 2003 08:15:12 -0700 (PDT) Subject: 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 15:15:16 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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? Thanks in advance for any tips. - -- Vlad Galu Network & Systems Administrator Romania Data Systems NOC in Bucharest Phone: +40 21 30 10 850 http://www.rdsnet.ro - --------------------------------------------------------------------------- Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such a person), you may not copy or deliver this message to anyone. In such a case, you should destroy this message and kindly notify the sender by reply e-mail. - --------------------------------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/QO0XP5WtpVOrzpcRAlToAJwNRDQuuOEJVMUDFF+nRb72FdUxwwCdE+1a QboDCA+3s9Q8taP4BPmn83w= =m2Tz -----END PGP SIGNATURE-----