chiark / gitweb /
Support SLIP encapsulation as a tunnelling mechanism.
[tripe] / tun-linux.c
index 6aa5adb4219da4426728aa5505e20a0944e24d5d..ff65a5e7b032c4b0dea12456ad8020156a3d93ab 100644 (file)
@@ -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);