X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/b7e1e18b57c30555f65a2548e0f1f186200c0ea8..8ed35e02a3f3d9151794e82d9b7ad68bceb04713:/server/tun-unet.c diff --git a/server/tun-unet.c b/server/tun-unet.c index d4b4cf34..f283d568 100644 --- a/server/tun-unet.c +++ b/server/tun-unet.c @@ -65,7 +65,8 @@ static void t_read(int fd, unsigned mode, void *v) 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), "unet", + "read-error", "?ERRNO", A_END); return; } IF_TRACING(T_TUNNEL, { @@ -128,7 +129,7 @@ static void t_inject(tunnel *t, buf *b) trace(T_TUNNEL, "tun-unet: inject decrypted packet"); trace_block(T_PACKET, "tun-unet: packet contents", BBASE(b), BLEN(b)); }) - write(t->f.fd, BBASE(b), BLEN(b)); + DISCARD(write(t->f.fd, BBASE(b), BLEN(b))); } /* --- @t_destroy@ --- *