MCPcopy Create free account
hub / github.com/celzero/firestack / findProcNetEntryForProtocol

Function findProcNetEntryForProtocol

intra/netstat/procfs.go:373–405  ·  view source on GitHub ↗

findProcNetEntryForProtocol parses /proc/net/* and return the line matching the argument five-tuple (protocol, source, sport, destination, dport) as NewProcNetEntry.

(protocol string, src, dst netip.AddrPort)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

FindProcNetEntryFunction · 0.85

Calls 10

WFunction · 0.92
NewProcNetEntryFunction · 0.85
getProcNetEntryFromPoolFunction · 0.85
invalidProcNetEntryFunction · 0.85
ParseProcNetFunction · 0.85
addProcNetEntryToPoolFunction · 0.85
AddrMethod · 0.80
PortMethod · 0.45
SameMethod · 0.45

Tested by

no test coverage detected