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

Function udp4Packet

polyamide/tun/offload_linux_test.go:92–94  ·  view source on GitHub ↗
(srcIPPort, dstIPPort netip.AddrPort, payloadLen int)

Source from the content-addressed store, hash-verified

90}
91
92func udp4Packet(srcIPPort, dstIPPort netip.AddrPort, payloadLen int) []byte {
93 return udp4PacketMutateIPFields(srcIPPort, dstIPPort, payloadLen, nil)
94}
95
96func tcp4PacketMutateIPFields(srcIPPort, dstIPPort netip.AddrPort, flags header.TCPFlags, segmentSize, seq uint32, ipFn func(*header.IPv4Fields)) []byte {
97 totalLen := 40 + segmentSize

Callers 5

Test_handleVirtioReadFunction · 0.85
Fuzz_handleGROFunction · 0.85
Test_handleGROFunction · 0.85

Calls 1

udp4PacketMutateIPFieldsFunction · 0.85

Tested by

no test coverage detected