From owner-freebsd-net@FreeBSD.ORG Wed May 20 19:55:38 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EA45106566B for ; Wed, 20 May 2009 19:55:38 +0000 (UTC) (envelope-from ajadav@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mx1.freebsd.org (Postfix) with ESMTP id CE4B08FC13 for ; Wed, 20 May 2009 19:55:37 +0000 (UTC) (envelope-from ajadav@gmail.com) Received: by qw-out-2122.google.com with SMTP id 3so405327qwe.7 for ; Wed, 20 May 2009 12:55:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=SHkXjvNElhM6mlBTySQlFhl+waYURcCaqJ/g+R6cikI=; b=Sgf+t2Z2Ix24U3fywqwPw/fEneg5M80ZmRgeMeA6DCm0N8YES/5YotbVaMwFviwu0K bemhyeH1aJk3wfGqGNGuXfGI+bf9LGAJz7PItrjU/W1NC8vCHUfuBaX8YstrpqkRBJ9t zfvp0ZSgG/1hBgtWFw1ZQJvuZneBRg+hUZAFg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=BLAm5xq3vTrWuNkiVy45bCJgXpwN/z61gJwhYne/Qxy3aMzQLEGzUdQpHw24YZ/8NS OzkIkKeFTkXtU7ork7WIBhFheNj08JFbkdB3sXmHtcuegCMG9ioTOUuUaetAKhD5e0LM LhFxA+nz6kt5A5A9HE4OWOspepKL9RD4Uhfck= MIME-Version: 1.0 Received: by 10.224.74.84 with SMTP id t20mr1718040qaj.328.1242847625236; Wed, 20 May 2009 12:27:05 -0700 (PDT) Date: Wed, 20 May 2009 12:27:05 -0700 Message-ID: From: Asheesh Jadav To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Deleting a TAP interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2009 19:55:38 -0000 Hi, I'm able to create the TAP interface, lets say with name 'test', and bring it up, but when I try deleting it using ioctl(fd, TUNSETPERSIST, 0) I can see that on my system I still have an interafce with name eth0 (the original name was test). How can I completely delete the interface that I created and restore the system to the state it was before I created the TAP interface? Thanks.