X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/b476642f0ecdb981d9f0183fb5421082d90d9071..a571143bb22f1d32cb70e5b62dd07cab529efea1:/server/tun-bsd.c diff --git a/server/tun-bsd.c b/server/tun-bsd.c index 6773ee64..b945c7dd 100644 --- a/server/tun-bsd.c +++ b/server/tun-bsd.c @@ -119,11 +119,13 @@ static tunnel *t_create(peer *p, int fd, char **ifn) static void t_inject(tunnel *t, buf *b) { + int hunoz; + IF_TRACING(T_TUNNEL, { 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)); + hunoz = write(t->f.fd, BBASE(b), BLEN(b)); } /* --- @t_destroy@ --- *