From f545be8d6f8dcfdaaaa7f2791ad29e22639cc449 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 20 Jan 2009 13:31:13 +0000 Subject: added actual_node_ to linux and bsd device as well --- src/bsd/tunDevice.cpp | 2 ++ src/linux/tunDevice.cpp | 1 + 2 files changed, 3 insertions(+) (limited to 'src') diff --git a/src/bsd/tunDevice.cpp b/src/bsd/tunDevice.cpp index ce2a413..421c1d5 100644 --- a/src/bsd/tunDevice.cpp +++ b/src/bsd/tunDevice.cpp @@ -100,6 +100,8 @@ TunDevice::TunDevice(std::string dev_name, std::string dev_type, std::string ifc else actual_name_ = dev_name; + actual_node_ = device_file; + init_post(); if(ifcfg_lp != "" && ifcfg_rnmp != "") diff --git a/src/linux/tunDevice.cpp b/src/linux/tunDevice.cpp index b95cb32..2c0618a 100644 --- a/src/linux/tunDevice.cpp +++ b/src/linux/tunDevice.cpp @@ -81,6 +81,7 @@ TunDevice::TunDevice(std::string dev_name, std::string dev_type, std::string ifc msg << "tun/tap device ioctl failed: " << LogErrno(errno); throw std::runtime_error(msg.str()); } + actual_node_ = DEFAULT_DEVICE; if(ifcfg_lp != "" && ifcfg_rnmp != "") do_ifconfig(); -- cgit v1.2.3