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
Setting tag vsys-scripts-0.95-20
[vsys-scripts.git]
/
fd_tuntap.c
diff --git
a/fd_tuntap.c
b/fd_tuntap.c
index
bf72a81
..
45e66be
100644
(file)
--- a/
fd_tuntap.c
+++ b/
fd_tuntap.c
@@
-105,10
+105,10
@@
int main(int argc, char *argv[])
}
/* Open tun device */
}
/* Open tun device */
- if( (tap_fd = open("/dev/
std
tun", O_RDWR)) < 0 ) {
+ if( (tap_fd = open("/dev/
net/
tun", O_RDWR)) < 0 ) {
system("modprobe tun");
system("modprobe tun");
- if( (tap_fd = open("/dev/
std
tun", O_RDWR)) < 0 ) {
- perror("ERROR: tun_alloc():open(/dev/
std
tun)");
+ if( (tap_fd = open("/dev/
net/
tun", O_RDWR)) < 0 ) {
+ perror("ERROR: tun_alloc():open(/dev/
net/
tun)");
exit(-1);
}
}
exit(-1);
}
}