chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
server/tun-slip.c: Fix signed/unsigned char mismatch.
[tripe]
/
server
/
tun-bsd.c
diff --git
a/server/tun-bsd.c
b/server/tun-bsd.c
index bfa528b2d5c4e63030aaa364ba2aa2961de7ba14..2c872997f7a79e82ea70b522f24814060f86f1e8 100644
(file)
--- a/
server/tun-bsd.c
+++ b/
server/tun-bsd.c
@@
-59,7
+59,8
@@
static 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("TUN", "%s", p_ifname(t->p), "read-error", "?ERRNO", A_END);
+ a_warn("TUN", "%s", p_ifname(t->p), "bsd",
+ "read-error", "?ERRNO", A_END);
return;
}
IF_TRACING(T_TUNNEL, {
return;
}
IF_TRACING(T_TUNNEL, {
@@
-122,7
+123,7
@@
static void t_inject(tunnel *t, buf *b)
trace(T_TUNNEL, "tun-bsd: inject decrypted packet");
trace_block(T_PACKET, "tun-bsd: packet contents", BBASE(b), BLEN(b));
})
trace(T_TUNNEL, "tun-bsd: inject decrypted packet");
trace_block(T_PACKET, "tun-bsd: packet contents", BBASE(b), BLEN(b));
})
-
write(t->f.fd, BBASE(b), BLEN(b
));
+
IGNORE(write(t->f.fd, BBASE(b), BLEN(b)
));
}
/* --- @t_destroy@ --- *
}
/* --- @t_destroy@ --- *