mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 10:06:52 +01:00
udp: Fold buffer handoff into ListenOut
This commit is contained in:
1 parent
1fb77bdda5
commit
06035252b2
12 files changed
+45
-60
No files matched your search
@@ -226,7 +226,7 @@ func TestOffloadsDisabledRxDelivers(t *testing.T) {
|
||||
_ = sc.ListenOut(func(from netip.AddrPort, payload []byte) {
|
||||
// payload aliases the shared recv buffer row; copy before handing off.
|
||||
rxCh <- rxPkt{from, slices.Clone(payload)}
|
||||
}, func() {})
|
||||
}, func(bufs [][]byte) [][]byte { return bufs })
|
||||
}()
|
||||
|
||||
tx, err := net.DialUDP("udp4", nil, net.UDPAddrFromAddrPort(addr))
|
||||
|
||||
Reference in new issue
Block a user