chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Debianization.
[tripe]
/
tun-bsd.c
diff --git
a/tun-bsd.c
b/tun-bsd.c
index 39e3e108381a4856a8b2a49a16173ad455ba1aad..bc82be3b94f0f18a7b15fabd983ea88cab46eb86 100644
(file)
--- a/
tun-bsd.c
+++ b/
tun-bsd.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-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
*
*
* Tunnel interface for 4.4BSD-derived systems
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: tun-bsd.c,v $
/*----- 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.
*
* 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);
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:
break;
switch (errno) {
case EBUSY: