projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from:
31fd6f1
)
Remove the netlink code to get the tun if index.
author
Benjamin Cama
<benoar@dolka.fr>
Fri, 19 Aug 2011 17:23:27 +0000
(19:23 +0200)
committer
Benjamin Cama
<benoar@dolka.fr>
Fri, 19 Aug 2011 17:23:27 +0000
(19:23 +0200)
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>
No differences found