Tunnel creation via libnl
Thomas Graf
tgraf at infradead.org
Mon Jul 20 06:07:16 EDT 2009
Sorry for the delay, I was on vacation.
On Mon, Jun 08, 2009 at 09:12:23AM +0200, Dennis Schridde wrote:
> Hello!
>
>
> I would like to know whether it is possible to create a tunnel interface via
> libnl/netlink.
>
>
> My application has to dynamically create a tunnel based on data it receives
> from a server, so I am currently using a tool like "ip" from iproute2 to setup
> the tunnel. When I came across libnl today, I found it would be a much cleaner
> method. So if possible, I would like to use it instead.
It is possible but there are no APIs yet. The kernel provides a way to
create/update/delete tunnels via the RTM_(NEW|DEL|SET)LINK commands but
libnl has only implemented RTM_SETLINK so far therefore you would have
to construct the netlink messages yourself.
More information about the libnl
mailing list