JackDoan 5 月之前
父節點
當前提交
aff46ce762
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      overlay/tio/tio_gso_linux.go

+ 1 - 1
overlay/tio/tio_gso_linux.go

@@ -268,7 +268,7 @@ func (r *Offload) Read(p []wire.TunPacket, mem []byte) (int, error) {
 		if n <= 0 {
 			break
 		}
-		if p, err = r.decodeRead(p, mem, n); err != nil {
+		if p, err = r.decodeRead(p, mem[rxOff:], n); err != nil {
 			// Drop this packet and stop the drain; we'd rather hand off
 			// what we have than keep spinning here.
 			break