diff options
author | Christian Pointner <equinox@anytun.org> | 2009-01-20 13:31:13 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-01-20 13:31:13 +0000 |
commit | f545be8d6f8dcfdaaaa7f2791ad29e22639cc449 (patch) | |
tree | e9da65b3c2ad4e69abbf6f130be71cb504b4994c /src | |
parent | added actual node to tundevice (currently only for windows) (diff) |
added actual_node_ to linux and bsd device as well
Diffstat (limited to 'src')
-rw-r--r-- | src/bsd/tunDevice.cpp | 2 | ||||
-rw-r--r-- | src/linux/tunDevice.cpp | 1 |
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(); |