X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/blobdiff_plain/7631176f5c140b9c77fa865ef3b2287fd574e4d7..ef4a1ab72d88f8790c367b513863d4f9a101a34d:/tun-bsd.c diff --git a/tun-bsd.c b/tun-bsd.c index 39e3e108..bc82be3b 100644 --- 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.2 2003/11/29 23:49:32 mdw Exp $ * * Tunnel interface for 4.4BSD-derived systems * @@ -29,6 +29,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: tun-bsd.c,v $ + * Revision 1.2 2003/11/29 23:49:32 mdw + * Debianization. + * * Revision 1.1 2001/02/05 19:48:18 mdw * Initial support for BSD tunnel devices. * @@ -108,7 +111,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: