X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/blobdiff_plain/bd58d532a19be319c83478ab89906415ef8861c3..b9066fbb5c1c160eb305a33a3335b77d17e0f502:/tun-linux.c diff --git a/tun-linux.c b/tun-linux.c index 6aa5adb4..ff65a5e7 100644 --- a/tun-linux.c +++ b/tun-linux.c @@ -105,7 +105,7 @@ int tun_create(tunnel *t, peer *p) } fdflags(fd, O_NONBLOCK, O_NONBLOCK, FD_CLOEXEC, FD_CLOEXEC); iff.ifr_name[0] = 0; - iff.ifr_flags = IFF_TUN; + iff.ifr_flags = IFF_TUN | IFF_NO_PI; if ((f = ioctl(fd, TUNSETIFF, &iff)) < 0) { a_warn("TUN - linux config-error -- %s", strerror(errno)); close(fd);