From: Guus Sliepen Date: Fri, 28 Apr 2000 11:33:25 +0000 (+0000) Subject: Oops! Reference to write_n() removed and changed into neat write() call. X-Git-Tag: import-tinc-1.1~964 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=23715510149179089952eef0a2d6f87571ac0e7e;p=meshlink Oops! Reference to write_n() removed and changed into neat write() call. --- diff --git a/src/net.c b/src/net.c index fdedf553..147b399c 100644 --- a/src/net.c +++ b/src/net.c @@ -117,7 +117,7 @@ cp do_decrypt((real_packet_t*)packet, &vp, cl->key); add_mac_addresses(&vp); - if((lenin = write_n(tap_fd, &vp, vp.len + 2)) < 0) + if((lenin = write(tap_fd, &vp, vp.len + sizeof(vp.len))) < 0) syslog(LOG_ERR, "Can't write to tap device: %m"); else total_tap_out += lenin;