From 42c937d86f87ad5e3828c476c9c40510ec34e746 Mon Sep 17 00:00:00 2001 From: JackDoan Date: Fri, 31 Jul 2026 14:31:42 -0500 Subject: [PATCH] snip --- overlay/tio/tio.go | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/overlay/tio/tio.go b/overlay/tio/tio.go index 3ebc21d6..c3c6b59d 100644 --- a/overlay/tio/tio.go +++ b/overlay/tio/tio.go @@ -43,8 +43,8 @@ type Queue interface { // Single-reader only: not safe for concurrent Reads (it reuses per-queue rx scratch each call). Read() ([]Packet, error) - // Write emits a single packet on the plaintext (outside→inside) - // delivery path. Safe for concurrent use. + // Write emits a single packet on the plaintext (outside→inside) delivery path. + // Safe for concurrent use. Write(p []byte) (int, error) } @@ -61,17 +61,13 @@ type Packet struct { // The zero value means Bytes is one regular IP datagram and no segmentation is required. type GSOInfo struct { // Size is the GSO segment size: max payload bytes per segment - // (== TCP MSS for TSO, == UDP payload chunk for USO). Zero means - // not a superpacket. + // (== TCP MSS for TSO, == UDP payload chunk for USO). Zero means not a superpacket. Size uint16 - // HdrLen is the total L3+L4 header length within Bytes (already - // corrected via correctHdrLen, so safe to slice on). + // HdrLen is the total L3+L4 header length within Bytes (already corrected via correctHdrLen, so safe to slice on). HdrLen uint16 - // CsumStart is the L4 header offset inside Bytes (== L3 header - // length). + // CsumStart is the L4 header offset inside Bytes (== L3 header length). CsumStart uint16 - // Proto picks the L4 protocol (TCP or UDP) so the segmenter knows - // which checksum/header layout to apply. + // Proto picks the L4 protocol (TCP or UDP) so the segmenter knows which checksum/header layout to apply. Proto GSOProto }