From a497dade2e59f468ab002d5254bd4c77ade5edea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Fri, 5 Jun 2020 16:13:40 +0200 Subject: [PATCH] TUN: set flag IFF_NO_PI --- TunDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TunDevice.cpp b/TunDevice.cpp index a7b3fe2..33bf0a1 100644 --- a/TunDevice.cpp +++ b/TunDevice.cpp @@ -29,7 +29,7 @@ TunDevice::TunDevice(const std::string& dev) * * IFF_NO_PI - Do not provide packet information */ - ifr.ifr_flags = IFF_TUN; + ifr.ifr_flags = IFF_TUN | IFF_NO_PI; if(!dev.empty()) { if(dev.size() >= IFNAMSIZ - 2) throw TunDevice::InitializationError("Device name is too long.");