From e1199f77266b0198457f08f58769795cff3eb2b9 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Tue, 4 Sep 2007 17:21:25 +0000 Subject: added parameter type --- tunDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tunDevice.cpp') 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 -- cgit v1.2.3