summaryrefslogtreecommitdiff
path: root/tunDevice.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-09-04 17:50:31 +0000
committerOthmar Gsenger <otti@anytun.org>2007-09-04 17:50:31 +0000
commit3db8f505b9c611100ebf0133ef90800b09f8abaa (patch)
tree3adf5468944f97f419e349fd1e5f97eedb101cad /tunDevice.cpp
parentNULL String fixed in tundevice (diff)
tunnel type fixed
Diffstat (limited to 'tunDevice.cpp')
-rw-r--r--tunDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tunDevice.cpp b/tunDevice.cpp
index 5653bbc..40d0f9d 100644
--- a/tunDevice.cpp
+++ b/tunDevice.cpp
@@ -92,7 +92,7 @@ TunDevice::TunDevice(const char* dev_name,const char* dev_type, const char* ifcf
// lp = inet_addr("192.168.198.1");
// rp = inet_addr("192.168.199.1");
- dev_ = init_tun(dev_name, dev_type==""?NULL:dev_type, ifcfg_lp, ifcfg_rnmp, lp, rp, 0, NULL);
+ dev_ = init_tun(dev_name, dev_type, ifcfg_lp, ifcfg_rnmp, lp, rp, 0, NULL);
struct frame frame; // just for win32
struct tuntap_options options; // win32 & linux
options.txqueuelen = 100; // just for linux