MCPcopy Create free account
hub / github.com/encodeous/nylon / newUDPGROTable

Function newUDPGROTable

polyamide/tun/offload_linux.go:182–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180}
181
182func newUDPGROTable() *udpGROTable {
183 u := &udpGROTable{
184 itemsByFlow: make(map[udpFlowKey][]udpGROItem, conn.IdealBatchSize),
185 itemsPool: make([][]udpGROItem, conn.IdealBatchSize),
186 }
187 for i := range u.itemsPool {
188 u.itemsPool[i] = make([]udpGROItem, 0, conn.IdealBatchSize)
189 }
190 return u
191}
192
193func newUDPFlowKey(pkt []byte, srcAddrOffset, dstAddrOffset, udphOffset int) udpFlowKey {
194 key := udpFlowKey{}

Callers 4

CreateTUNFromFileFunction · 0.85
Fuzz_handleGROFunction · 0.85
Test_handleGROFunction · 0.85

Calls

no outgoing calls

Tested by 2

Fuzz_handleGROFunction · 0.68
Test_handleGROFunction · 0.68