From 6c7ccd96ee77a2a374c6a6ccc9805412198b27f7 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 11 May 2008 00:24:15 +0000 Subject: added device for bsd tested under openbsd but should work on freebsd and netbsd as well TODO: do_ifconfig --- src/linux/tunDevice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/linux') 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); } -- cgit v1.2.3