Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jul 2006 10:45:13 +0300
From:      Remi Denis-Courmont <rdenis@simphalempin.com>
To:        freebsd-net@freebsd.org
Subject:   Interface name or ID of /dev/tun tunnels
Message-ID:  <1152517513.44b20589e1bbc@ssl0.ovh.net>

next in thread | raw e-mail | index | archive | help
   Hello,

Is there any clean way to find out the name, or better yet the ID (since ID
are immutable while names are not), of a tunnel device allocated from
/dev/tun ?

The question was already raised here, but I could find no answer:
http://lists.freebsd.org/pipermail/freebsd-net/2004-March/003338.html

If not, would it be possible to add, say, an ioctl() on tun/tap devices to
return their ID (which could be converted to a name via if_indextoname()), or
something similar? That should retain full backward compatibility...

Or maybe there is another way to configure the tunnel a la ifconfig with only
the file descriptor??

Thanks,

-- 
Remi Denis-Courmont
http://www.simphalempin.com/home/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1152517513.44b20589e1bbc>