/* -*-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
*
/*----- 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.
*
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: