projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb8fff9
)
Oops! Reference to write_n() removed and changed into neat write() call.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 28 Apr 2000 11:33:25 +0000
(11:33 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 28 Apr 2000 11:33:25 +0000
(11:33 +0000)
src/net.c
patch
|
blob
|
history
diff --git
a/src/net.c
b/src/net.c
index fdedf55388ea0627e37dce6d53d52c0022484787..147b399ce35a8d3969b5da559fb4477db44db0b3 100644
(file)
--- 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;