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

Method cacheKey

intra/netstat/procfs.go:114–116  ·  view source on GitHub ↗

cacheKey returns the key used for pool lookups. Note: UID and INode are intentionally excluded because lookups are performed by 5-tuple (protocol, src, sport, dst, dport) — the whole purpose is to discover UID/INode from the 5-tuple. When two /proc/net entries share the same 5-tuple (e.g. SO_REUSEPO

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

addProcNetEntryToPoolFunction · 0.80
getProcNetEntryFromPoolFunction · 0.80

Calls 2

StringMethod · 0.95
HashStrFunction · 0.92

Tested by

no test coverage detected