From 0251e0a8af994a6229b4bc3f60b7887d5407d4b5 Mon Sep 17 00:00:00 2001 From: ignoramous Date: Sun, 12 Jun 2022 23:00:46 +0530 Subject: [PATCH] fdbased: WritePackets only returns 0 for tun/tap devices --- pkg/tcpip/link/fdbased/endpoint.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/tcpip/link/fdbased/endpoint.go b/pkg/tcpip/link/fdbased/endpoint.go index a3fa225d7..564abbeec 100644 --- a/pkg/tcpip/link/fdbased/endpoint.go +++ b/pkg/tcpip/link/fdbased/endpoint.go @@ -563,6 +563,7 @@ func (e *endpoint) sendBatch(batchFDInfo fdInfo, pkts []*stack.PacketBuffer) (in } return 0, err } + written = i } return written, nil }