ClatdController & tests/tun_interface: change from /dev/tun to /dev/net/tun
(this is the upstream default location of the 'tun' special device)
Test: build, atest
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ie834a16264dc1188aa9f3fb40cb5e0e5643737cc
diff --git a/server/ClatdController.cpp b/server/ClatdController.cpp
index 0b62fb4..728ae69 100644
--- a/server/ClatdController.cpp
+++ b/server/ClatdController.cpp
@@ -557,7 +557,7 @@
}
// 3. open the tun device in non blocking mode as required by clatd
- int res = open("/dev/tun", O_RDWR | O_NONBLOCK | O_CLOEXEC);
+ int res = open("/dev/net/tun", O_RDWR | O_NONBLOCK | O_CLOEXEC);
if (res == -1) {
res = errno;
ALOGE("open of tun device failed (%s)", strerror(res));