Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAddress ¶
ParseAddress parses a string, e.g.,Akihiro Suda, 10 months ago: • initial commit "0100007F:0050" (127.0.0.1:80) "000080FE00000000FF57A6705DC771FE:0050" ([fe80::70a6:57ff:fe71:c75d]:80) "00000000000000000000000000000000:0050" (0.0.0.0:80)
See https://serverfault.com/questions/592574/why-does-proc-net-tcp6-represents-1-as-1000
ParseAddress is expected to be used for /proc/net/{tcp,tcp6} entries on little endian machines. Not sure how those entries look like on big endian machines. All the code below is copied from the lima project in https://github.com/lima-vm/lima/blob/v0.8.3/pkg/guestagent/procnettcp/procnettcp.go#L95-L137 and is licensed under the Apache License, Version 2.0
func ReadStatsFileData ¶
Types ¶
type NetworkDetail ¶
func Parse ¶
func Parse(data []string) (results []NetworkDetail)