MCPcopy Create free account
hub / github.com/SamNet-dev/snix / tup

Function tup

core/conntrack/connection_test.go:8–15  ·  view source on GitHub ↗
(srcPort, dstPort uint16)

Source from the content-addressed store, hash-verified

6)
7
8func tup(srcPort, dstPort uint16) Tuple {
9 return Tuple{
10 SrcIP: netip.MustParseAddr("10.0.0.1"),
11 SrcPort: srcPort,
12 DstIP: netip.MustParseAddr("188.114.98.0"),
13 DstPort: dstPort,
14 }
15}
16
17func TestTableAddGetRemove(t *testing.T) {
18 tab := NewTable()

Callers 2

TestTableAddGetRemoveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected