git://git.onelab.eu
/
vsys-scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make deletion optional in vif_down
[vsys-scripts.git]
/
fd_tuntap.c
diff --git
a/fd_tuntap.c
b/fd_tuntap.c
index
45e66be
..
ddcd431
100644
(file)
--- a/
fd_tuntap.c
+++ b/
fd_tuntap.c
@@
-107,6
+107,7
@@
int main(int argc, char *argv[])
/* Open tun device */
if( (tap_fd = open("/dev/net/tun", O_RDWR)) < 0 ) {
system("modprobe tun");
/* Open tun device */
if( (tap_fd = open("/dev/net/tun", O_RDWR)) < 0 ) {
system("modprobe tun");
+ system("ln -sf /dev/net/tun /dev/stdtun");
if( (tap_fd = open("/dev/net/tun", O_RDWR)) < 0 ) {
perror("ERROR: tun_alloc():open(/dev/net/tun)");
exit(-1);
if( (tap_fd = open("/dev/net/tun", O_RDWR)) < 0 ) {
perror("ERROR: tun_alloc():open(/dev/net/tun)");
exit(-1);