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

Function tcp4Packet

polyamide/tun/offload_linux_test.go:129–131  ·  view source on GitHub ↗
(srcIPPort, dstIPPort netip.AddrPort, flags header.TCPFlags, segmentSize, seq uint32)

Source from the content-addressed store, hash-verified

127}
128
129func tcp4Packet(srcIPPort, dstIPPort netip.AddrPort, flags header.TCPFlags, segmentSize, seq uint32) []byte {
130 return tcp4PacketMutateIPFields(srcIPPort, dstIPPort, flags, segmentSize, seq, nil)
131}
132
133func tcp6PacketMutateIPFields(srcIPPort, dstIPPort netip.AddrPort, flags header.TCPFlags, segmentSize, seq uint32, ipFn func(*header.IPv6Fields)) []byte {
134 totalLen := 60 + segmentSize

Callers 4

Test_handleVirtioReadFunction · 0.85
Fuzz_handleGROFunction · 0.85
Test_handleGROFunction · 0.85

Calls 1

tcp4PacketMutateIPFieldsFunction · 0.85

Tested by

no test coverage detected