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

Function hexToIP

intra/netstat/procfs.go:239–259  ·  view source on GitHub ↗

hexToIP converts a hex string from /proc/net/* to a netip.Addr. The kernel stores addresses in little-endian format: - IPv4: 8 hex chars (1 uint32) - IPv6: 32 hex chars (4 uint32 words)

(h string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ParseProcNetFunction · 0.85

Calls 3

EFunction · 0.92
hexToInt4Function · 0.85
toUnmappedAddrFunction · 0.85

Tested by

no test coverage detected