X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fd_tuntap.c;fp=fd_tuntap.c;h=45e66be8e12fdae0a65697caf32a8704c66d7568;hb=eee0a056794fbbcca144e3ccfad6e72d3cb5d89a;hp=bf72a8187481e3d472566400ba36c37ca561830e;hpb=f880db7240e51858cefa706b05f58ff339a65e7d;p=vsys-scripts.git diff --git a/fd_tuntap.c b/fd_tuntap.c index bf72a81..45e66be 100644 --- 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/stdtun", O_RDWR)) < 0 ) { + if( (tap_fd = open("/dev/net/tun", O_RDWR)) < 0 ) { system("modprobe tun"); - if( (tap_fd = open("/dev/stdtun", O_RDWR)) < 0 ) { - perror("ERROR: tun_alloc():open(/dev/stdtun)"); + if( (tap_fd = open("/dev/net/tun", O_RDWR)) < 0 ) { + perror("ERROR: tun_alloc():open(/dev/net/tun)"); exit(-1); } }