From 23715510149179089952eef0a2d6f87571ac0e7e Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 28 Apr 2000 11:33:25 +0000 Subject: [PATCH] Oops! Reference to write_n() removed and changed into neat write() call. --- src/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.c b/src/net.c index fdedf55..147b399 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; -- 2.25.1