Date: Fri, 10 May 2013 01:19:45 -0400 From: Jason Hellenthal <jhellenthal@dataix.net> To: "Marc G. Fournier" <scrappy@hub.org> Cc: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: Re: status of a tap device ... Message-ID: <746BAC62-DA57-4D4D-A7F4-46A1C74C73B6@DataIX.net> In-Reply-To: <518C7F85.3000405@hub.org> References: <518C7F85.3000405@hub.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Ifconfig -v tap0 ? Does this work for you ? Also upon opening a tap... ifconfig tap create Will return the numeric portion of the tap that was created with $? So scripting it out it would be similar to... ifconfig tap create && export MYTUNIS=3D"$?" echo "tap$MYTAPIS" --=20 Jason Hellenthal IS&T Services Professional Inbox: jhellenthal@DataIX.net JJH48-ARIN On May 10, 2013, at 1:03, "Marc G. Fournier" <scrappy@hub.org> wrote: >=20 > Quick question ... is there a command I can run that will tell me if a tap= device is open? I know I can do 'ifconfig tap0' and see the 'Opened by' li= ne, but I want to do this within a perl script, for instance, akin to how I c= an use the fstat function to get information about a file ... >=20 > Rather avoid re-creating the wheel, so to say, if its already been created= ... >=20 > Thx > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?746BAC62-DA57-4D4D-A7F4-46A1C74C73B6>