chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow admin clients to filter out async messages. Send notifications
[tripe]
/
tun-bsd.c
diff --git
a/tun-bsd.c
b/tun-bsd.c
index c9b8f7f0404d45dbdfbbe4612bba6a25ad1b0d5f..620ea987e72b764ef19f4cde933420d4d66f4406 100644
(file)
--- a/
tun-bsd.c
+++ b/
tun-bsd.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id
: tun-bsd.c,v 1.3 2004/04/08 01:36:17 mdw Exp
$
+ * $Id$
*
* Tunnel interface for 4.4BSD-derived systems
*
*
* Tunnel interface for 4.4BSD-derived systems
*
@@
-55,7
+55,7
@@
void t_read(int fd, unsigned mode, void *v)
n = read(fd, buf_i, sizeof(buf_i));
if (n < 0) {
n = read(fd, buf_i, sizeof(buf_i));
if (n < 0) {
- a_warn("
tunnel read failed (%s):
%s", tun_ifname(t), strerror(errno));
+ a_warn("
TUN %s read-error --
%s", tun_ifname(t), strerror(errno));
return;
}
IF_TRACING(T_TUNNEL, {
return;
}
IF_TRACING(T_TUNNEL, {
@@
-107,10
+107,10
@@
int tun_create(tunnel *t, peer *p)
T( trace(T_TUNNEL, "tunnel device %u busy: skipping", n); )
break;
case ENOENT:
T( trace(T_TUNNEL, "tunnel device %u busy: skipping", n); )
break;
case ENOENT:
- a_warn("
no suitable tunnel devices found
");
+ a_warn("
TUN - bsd no-tunnel-devices
");
return (-1);
default:
return (-1);
default:
- a_warn("
error opening `%s': %s (skipping)
", buf, strerror(errno));
+ a_warn("
TUN - open-error %s -- %s
", buf, strerror(errno));
break;
}
n++;
break;
}
n++;