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, {
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));
+ IGNORE(write(t->f.fd, BBASE(b), BLEN(b)));
}
/* --- @t_destroy@ --- *