From d79187028a977e91e840e318d3bc8c882a37e298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Friedrich=20Scho=CC=88ller?= Date: Mon, 13 May 2013 17:14:19 +0200 Subject: [PATCH] Log opened tunnel device --- src/tun.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tun.cpp b/src/tun.cpp index 7a6937a..f42ea80 100644 --- a/src/tun.cpp +++ b/src/tun.cpp @@ -50,6 +50,8 @@ Tun::Tun(const char *device, int mtu) if (fd == -1) throw Exception(string("could not create tunnel device: ") + tun_last_error()); + syslog(LOG_INFO, "opened tunnel device: %s", this->device); + char cmdline[512]; snprintf(cmdline, sizeof(cmdline), "/sbin/ifconfig %s mtu %u", this->device, mtu); if (system(cmdline) != 0)