Resend packet on partial tun_write()

This commit is contained in:
angt
2016-01-14 10:25:37 +01:00
parent 606396839f
commit 81cab007d0

View File

@@ -1462,6 +1462,7 @@ int main (int argc, char **argv)
ssize_t r = tun_write(tun.fd, tun.write.read, ic.size);
if (r>0) {
if (r==ic.size)
tun.write.read += r;
} else {
gt_close |= !r;