From owner-freebsd-net@FreeBSD.ORG Wed May 20 23:37:06 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 8634E106566B for ; Wed, 20 May 2009 23:37:06 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 5D7E08FC28 for ; Wed, 20 May 2009 23:37:06 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id BD51E3451E1; Wed, 20 May 2009 19:37:05 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 20 May 2009 19:37:05 -0400 X-Sasl-enc: Op48KXlJTNT9YL2Y1Qg5Hcy0KJSGHR2pOL3gXr2xSnPj 1242862625 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 4CFEC374FD; Wed, 20 May 2009 19:37:05 -0400 (EDT) Message-ID: <4A14941F.3090402@incunabulum.net> Date: Thu, 21 May 2009 00:37:03 +0100 From: Bruce Simpson User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Asheesh Jadav References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: 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 23:37:06 -0000 Asheesh Jadav wrote: > 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) > It sounds from your interface name as though you are using a Linux system, and I can't find this ioctl documented anywhere on FreeBSD: %%% tack:/usr/src/sys/net % grep -Hr TUNSETPERSIST . Exit 1 tack:/usr/src/sys/compat % grep -Hr TUNSETPERSIST . Exit 1 %%% Perhaps try a Linux development forum who will be better able to assist you? In FreeBSD, tap/tun interfaces are cloners, and can be created/destroyed using the usual cloneable interface mechanisms. thanks, BMS