summaryrefslogtreecommitdiff
path: root/src/linux/tunDevice.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-05-11 00:24:15 +0000
committerChristian Pointner <equinox@anytun.org>2008-05-11 00:24:15 +0000
commit6c7ccd96ee77a2a374c6a6ccc9805412198b27f7 (patch)
tree5b19c1113dbf8cdffe9dbc6f9f07f19fb6abf238 /src/linux/tunDevice.cpp
parentadaptions for openbsd 4.3 (diff)
added device for bsd
tested under openbsd but should work on freebsd and netbsd as well TODO: do_ifconfig
Diffstat (limited to 'src/linux/tunDevice.cpp')
-rw-r--r--src/linux/tunDevice.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/linux/tunDevice.cpp b/src/linux/tunDevice.cpp
index 8548331..4185bef 100644
--- a/src/linux/tunDevice.cpp
+++ b/src/linux/tunDevice.cpp
@@ -46,7 +46,9 @@ TunDevice::TunDevice(const char* dev_name, const char* dev_type, const char* ifc
{
fd_ = ::open(DEFAULT_DEVICE, O_RDWR);
if(fd_ < 0) {
- std::string msg("can't open device file: ");
+ std::string msg("can't open device file (");
+ msg.append(DEFAULT_DEVICE);
+ msg.append("): ");
msg.append(strerror(errno));
throw std::runtime_error(msg);
}