Resend packet on partial tun_write()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user