summaryrefslogtreecommitdiff
path: root/tunDevice.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-09-04 17:21:25 +0000
committerOthmar Gsenger <otti@anytun.org>2007-09-04 17:21:25 +0000
commite1199f77266b0198457f08f58769795cff3eb2b9 (patch)
treec2cc64f92ba0cddc958b5d0310583080914504a0 /tunDevice.cpp
parentcommand line help s/\/|/ (diff)
added parameter type
Diffstat (limited to 'tunDevice.cpp')
-rw-r--r--tunDevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tunDevice.cpp b/tunDevice.cpp
index 8898c7f..40d0f9d 100644
--- a/tunDevice.cpp
+++ b/tunDevice.cpp
@@ -41,7 +41,7 @@ extern "C" {
#include "threadUtils.hpp"
-TunDevice::TunDevice(const char* dev_name, const char* ifcfg_lp, const char* ifcfg_rnmp)
+TunDevice::TunDevice(const char* dev_name,const char* dev_type, const char* ifcfg_lp, const char* ifcfg_rnmp)
{
dev_ = NULL;
@@ -92,7 +92,7 @@ TunDevice::TunDevice(const char* dev_name, const char* ifcfg_lp, const char* ifc
// lp = inet_addr("192.168.198.1");
// rp = inet_addr("192.168.199.1");
- dev_ = init_tun(dev_name, NULL, 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