chiark / gitweb /
Expunge revision histories in files.
[tripe] / tun-bsd.c
index 39e3e108381a4856a8b2a49a16173ad455ba1aad..c9b8f7f0404d45dbdfbbe4612bba6a25ad1b0d5f 100644 (file)
--- a/tun-bsd.c
+++ b/tun-bsd.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: tun-bsd.c,v 1.1 2001/02/05 19:48:18 mdw Exp $
+ * $Id: tun-bsd.c,v 1.3 2004/04/08 01:36:17 mdw Exp $
  *
  * Tunnel interface for 4.4BSD-derived systems
  *
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: tun-bsd.c,v $
- * Revision 1.1  2001/02/05 19:48:18  mdw
- * Initial support for BSD tunnel devices.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include "tripe.h"
@@ -108,7 +100,7 @@ int tun_create(tunnel *t, peer *p)
   n = 0;
   for (;;) {
     sprintf(buf, "/dev/tun%u", n);
-    if ((fd = open("/dev/unet", O_RDWR)) >= 0)
+    if ((fd = open(buf, O_RDWR)) >= 0)
       break;
     switch (errno) {
       case EBUSY: