udp: Fold buffer handoff into ListenOut

This commit is contained in:
JackDoan committed 2026-10-15 17:02:42 -05:00
1 parent 1fb77bdda5
commit 06035252b2
12 files changed
+45 -60

No files matched your search

+4 -1
View File
@@ -418,7 +418,10 @@ func (f *Interface) listenOut(i int) {
f.readOutsidePackets(ViaSender{UdpAddr: fromUdpAddr}, payload, rxc)
}
flusher := func() { f.flushOutside(rxc) }
flusher := func(bufs [][]byte) [][]byte {
f.flushOutside(rxc)
return bufs
}
var err error
if hc, ok := li.(handoffConn); ok && f.staged.workers > 0 {