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

Function udp6Packet

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

Source from the content-addressed store, hash-verified

58}
59
60func udp6Packet(srcIPPort, dstIPPort netip.AddrPort, payloadLen int) []byte {
61 return udp6PacketMutateIPFields(srcIPPort, dstIPPort, payloadLen, nil)
62}
63
64func udp6PacketMutateIPFields(srcIPPort, dstIPPort netip.AddrPort, payloadLen int, ipFn func(*header.IPv6Fields)) []byte {
65 totalLen := 48 + payloadLen

Callers 4

Test_handleVirtioReadFunction · 0.85
Fuzz_handleGROFunction · 0.85
Test_handleGROFunction · 0.85

Calls 1

udp6PacketMutateIPFieldsFunction · 0.85

Tested by

no test coverage detected