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