summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-20 13:31:13 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-20 13:31:13 +0000
commitf545be8d6f8dcfdaaaa7f2791ad29e22639cc449 (patch)
treee9da65b3c2ad4e69abbf6f130be71cb504b4994c
parentadded actual node to tundevice (currently only for windows) (diff)
added actual_node_ to linux and bsd device as well
-rw-r--r--src/bsd/tunDevice.cpp2
-rw-r--r--src/linux/tunDevice.cpp1
2 files changed, 3 insertions, 0 deletions
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();