git://git.onelab.eu
/
vsys-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f880db7
)
Ported this code to the 2.6.27 kernel.
author
Sapan Bhatia
<sapanb@cs.princeton.edu>
Fri, 25 Jun 2010 03:17:10 +0000
(
03:17
+0000)
committer
Sapan Bhatia
<sapanb@cs.princeton.edu>
Fri, 25 Jun 2010 03:17:10 +0000
(
03:17
+0000)
fd_tuntap.c
patch
|
blob
|
history
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 */
- if( (tap_fd = open("/dev/
std
tun", O_RDWR)) < 0 ) {
+ if( (tap_fd = open("/dev/
net/
tun", O_RDWR)) < 0 ) {
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);
}
}