fdbased: WritePackets only returns 0 for tun/tap devices

This commit is contained in:
ignoramous
2022-06-12 23:00:46 +05:30
committed by GitHub
parent 605841baad
commit 0251e0a8af
+1
View File
@@ -563,6 +563,7 @@ func (e *endpoint) sendBatch(batchFDInfo fdInfo, pkts []*stack.PacketBuffer) (in
}
return 0, err
}
written = i
}
return written, nil
}