chiark / gitweb /
Debianization.
[tripe] / tun-linux.c
index 5ffd0ade96c82d654eb02dd3b8b41edc99f19530..84dca602ec7d15507b3fd72dd9776f7fb156a01e 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: tun-linux.c,v 1.1 2003/04/06 10:25:17 mdw Exp $
+ * $Id: tun-linux.c,v 1.2 2003/11/29 23:49:32 mdw Exp $
  *
  * Tunnel interface based on Linux TUN/TAP driver
  *
@@ -29,6 +29,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: tun-linux.c,v $
+ * Revision 1.2  2003/11/29 23:49:32  mdw
+ * Debianization.
+ *
  * Revision 1.1  2003/04/06 10:25:17  mdw
  * Support Linux TUN/TAP device.  Fix some bugs.
  *
@@ -113,7 +116,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_NO_PI;
+  iff.ifr_flags = IFF_TUN;
   if ((f = ioctl(fd, TUNSETIFF, &iff)) < 0) {
     a_warn("couldn't set configure new TUN/TAP interface: %s",
           strerror(errno));