Remove the netlink code to get the tun if index.
authorBenjamin Cama <benoar@dolka.fr>
Fri, 19 Aug 2011 17:23:27 +0000 (19:23 +0200)
committerBenjamin Cama <benoar@dolka.fr>
Fri, 19 Aug 2011 17:23:27 +0000 (19:23 +0200)
commit31fd6f10555f8e0905764870f7f9bfc26a84df6e
treee4197903c758b4753ed67437bc4cc69ab71dbdb4
parent1b372e5d46ee1e3ed35270504e92339d1aba1d11
Remove the netlink code to get the tun if index.

It only worked for kernel >= 2.6.33. Use if_nametoindex() instead, which made
me include net/if.h in place of linux/if.h. Also, fix the RTM_SETLINK use which
should really be RTM_NEWLINK with correct parameters.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
l2tpns.c