Create a tuntap interface with libnl

Thomas Graf tgraf at suug.ch
Fri Oct 25 06:09:56 EDT 2013


On 10/24/13 at 02:07am, Teto wrote:
> Hi,
> 
> I wish I could create/delete tuntap interfaces from libnl. I was
> wondering how to achieve that. It doesn't seem possible at the moment
> so I started an implementation inspired by iproute source code using
> ioctl.
> 
> I started adding a few missing structures to libnl's
> include/linux/if.h  such as ifreq but is that a good idea ?

It should be very straight forward to add a lib/route/link/tun.c
The code will look very much like a vlan device.



More information about the libnl mailing list