From: Benjamin Cama Date: Fri, 19 Aug 2011 17:23:27 +0000 (+0200) Subject: Remove the netlink code to get the tun if index. X-Git-Tag: debian/2.2.1-1fdn2~1^2~3^2 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/31fd6f10555f8e0905764870f7f9bfc26a84df6e?hp=31fd6f10555f8e0905764870f7f9bfc26a84df6e 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 ---