Commit Graph

23 Commits (4dcbf38c38a5a97613edb17b789e7fa9d2de80e5)

Author SHA1 Message Date
MashaSamoylova 860f332c22 Fix getting udp6 ports
Lomanic ab084b525c [net] Skip tests on non-implemented platforms #446
Brian C. Williams f00df5cffe Add WithoutUids funcs
Lomanic 658804ae70
Merge pull request #697 from Lomanic/issue693
[net][windows] Fix #693 use MIB_IF_ROW2/GetIfEntry2 to get real uint64 values from win32 API
Lomanic 3fb9243fc2 [net][windows] Fix #693 use MIB_IF_ROW2/GetIfEntry2 to get real uint64 values from win32 API
Curtis Mattoon 648bf4eebc Adds ConntrackStats to get conntrack summary stats
Lomanic eb1f1ab16f
Merge pull request #549 from pytimer/win_net
[net] Implements windows net package Connections and ConnectionsPid
Lomanic ef54649286 [windows] Use windows.NewLazySystemDLL to (possibly) prevent DLL hijacking
Might be useless because of https://docs.microsoft.com/en-us/windows/desktop/dlls/dynamic-link-library-search-order#search-order-for-desktop-applications
but better be safe than sorry.

Ref: https://github.com/shirou/gopsutil/issues/570#issuecomment-413951653
pytimer 0ffcfc901f [net][windows] Remove exported types and convert ALL_CAPS to mixedCaps
pytimer 1c2cebbbc4 [net] Implements windows net package function Connections and ConnectionsPid
shirou 4c73494c78 Add WithContext functions.
Sean Chittenden 635b971c0e
Move from the `syscall` package to the `golang.org/x/sys/{unix,windows}`
Conor Branagan df61ef6d5f Add stub functions for ConnectionsMax in other OS versions.
Cameron Sparr 5af5f08785 Fix NetIOCounter windows interface behavior
addresses a few things:

- Windows has a concept of both a network "interface" and an "adapter"
- These are almost always a one-to-one relationship, though there can be
esoteric instances where they are not.
- I believe the gopsutil NetIOCounters function should only return on a
per-interface level, since this is the behavior on linux/darwin.

Previously, the plugin was basically ignoring the actual interfaces
returned from net.Interfaces(). Instead, it was looping over the net
adapters for each interface, somewhat uselessly.

FWIW, the code for getAdapterList() doesn't exist in the Go standard lib
anymore.

closes #245
Shirou WAKAYAMA 613a8a90e1 fixed by golint.
Shirou WAKAYAMA ea152ea901 [BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters
Shirou WAKAYAMA d680853370 net,process[linux]: add process.NetIOCounter and net.NetIOCounterByFile.
Nathaniel Cook da832b3f12 add system wide network protocol stats
Shirou WAKAYAMA 7288e9a5af common[all]: add internal
Shirou WAKAYAMA 406cbe9b87 implements pernic of NetIOCounters.
Shirou WAKAYAMA 13cd195a7e change package name.
WAKAYAMA Shirou 9f2c985a28 fix windows build.
Shirou WAKAYAMA a4671fcc2a move subdirectories. refer to issue #24