You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gopsutil/net
Florian Lehner 15f5f5aee3 net/linux: use NETLINK_SOCK_DIAG
To retrieve network information use NETLINK_SOCK_DIAG instead of walking
/proc/<PID> and parsing files.
Consequently this reduces the number of syscalls, as walking /proc/<PID> and
opening, reading and closing files is no longer required. But it also reduces
the memory footprint as reading files into memory for processing is no longer
required.

Related issues:
- https://github.com/shirou/gopsutil/issues/695
- https://github.com/shirou/gopsutil/issues/784

Supersedes https://github.com/shirou/gopsutil/pull/809

Signed-off-by: Florian Lehner <dev@der-flo.net>
11 months ago
..
net.go add SPDX License, remove old build tag, and replace import 12 months ago
net_aix.go add SPDX License, remove old build tag, and replace import 12 months ago
net_aix_cgo.go add SPDX License, remove old build tag, and replace import 12 months ago
net_aix_nocgo.go add SPDX License, remove old build tag, and replace import 12 months ago
net_darwin.go add SPDX License, remove old build tag, and replace import 12 months ago
net_darwin_test.go add SPDX License, remove old build tag, and replace import 12 months ago
net_fallback.go add SPDX License, remove old build tag, and replace import 12 months ago
net_freebsd.go add SPDX License, remove old build tag, and replace import 12 months ago
net_linux.go net/linux: use NETLINK_SOCK_DIAG 11 months ago
net_linux_test.go net/linux: use NETLINK_SOCK_DIAG 11 months ago
net_openbsd.go fix lint 12 months ago
net_solaris.go add SPDX License, remove old build tag, and replace import 12 months ago
net_test.go rename redundant test function names, such as TestCPU in cpu package 12 months ago
net_unix.go add SPDX License, remove old build tag, and replace import 12 months ago
net_windows.go add SPDX License, remove old build tag, and replace import 12 months ago
types_darwin.go add SPDX License, remove old build tag, and replace import 12 months ago