From 991470de0c7b59c69dd2de8110ba1ddef042a473 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Wed, 24 Oct 2018 12:11:30 +0200 Subject: tools: Add IFF_NO_PI flag to ovpn The flag IFF_NO_PI is needed to make sure that no extra protocol header is added to the payload that is received on the TUN interface. Signed-off-by: Sander Vrijders Signed-off-by: Dimitri Staessens --- src/tools/ovpn/ovpn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/tools/ovpn/ovpn.c b/src/tools/ovpn/ovpn.c index d5e9d024..8de794fa 100644 --- a/src/tools/ovpn/ovpn.c +++ b/src/tools/ovpn/ovpn.c @@ -89,7 +89,7 @@ static int tun_open(char * dev, memset(&ifr, 0, sizeof(ifr)); - ifr.ifr_flags = IFF_TUN; + ifr.ifr_flags = IFF_TUN | IFF_NO_PI; ret = ioctl(fd, TUNSETIFF, (void *) &ifr); if (ret < 0) -- cgit v1.2.3