Ville Skyttä
1e56c6f421
Spelling and grammar fixes
2022-01-30 22:48:09 +02:00
mmorel-35
1e6b445a8a
gofumpt
2021-12-22 21:54:41 +00:00
mmorel-35
eb5f6203d8
gofmt
2021-12-22 21:46:33 +00:00
shirou
0969c9436b
delete v2 directory, move v3 to top #1078
2021-11-30 23:47:59 +00:00
MashaSamoylova
860f332c22
Fix getting udp6 ports
2020-11-04 09:32:02 +07:00
Lomanic
ab084b525c
[net] Skip tests on non-implemented platforms #446
2020-08-29 18:39:50 +02:00
Brian C. Williams
f00df5cffe
Add WithoutUids funcs
2019-11-01 10:58:35 -04:00
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
2019-06-03 19:43:32 +02:00
Lomanic
3fb9243fc2
[net][windows] Fix #693 use MIB_IF_ROW2/GetIfEntry2 to get real uint64 values from win32 API
2019-05-31 17:39:23 +02:00
Curtis Mattoon
648bf4eebc
Adds ConntrackStats to get conntrack summary stats
2019-05-11 12:45:05 -04:00
Lomanic
eb1f1ab16f
Merge pull request #549 from pytimer/win_net
...
[net] Implements windows net package Connections and ConnectionsPid
2018-09-01 15:42:34 +02:00
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
2018-08-18 22:52:41 +02:00
pytimer
0ffcfc901f
[net][windows] Remove exported types and convert ALL_CAPS to mixedCaps
2018-07-21 14:28:53 +08:00
pytimer
1c2cebbbc4
[net] Implements windows net package function Connections and ConnectionsPid
2018-07-21 14:21:22 +08:00
shirou
4c73494c78
Add WithContext functions.
2017-12-31 15:25:49 +09:00
Sean Chittenden
635b971c0e
Move from the syscall
package to the golang.org/x/sys/{unix,windows}
2017-06-02 13:51:00 -07:00
Conor Branagan
df61ef6d5f
Add stub functions for ConnectionsMax in other OS versions.
2016-12-11 13:06:56 -05:00
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
2016-10-25 16:51:40 +01:00
Shirou WAKAYAMA
613a8a90e1
fixed by golint.
2016-04-01 21:34:39 +09:00
Shirou WAKAYAMA
ea152ea901
[BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters
2016-03-22 23:09:12 +09:00
Shirou WAKAYAMA
d680853370
net,process[linux]: add process.NetIOCounter and net.NetIOCounterByFile.
2016-01-21 17:31:05 +09:00
Nathaniel Cook
da832b3f12
add system wide network protocol stats
2015-11-20 10:17:21 -07:00
Shirou WAKAYAMA
7288e9a5af
common[all]: add internal
2015-10-20 00:04:57 +09:00
Shirou WAKAYAMA
406cbe9b87
implements pernic of NetIOCounters.
2015-01-01 21:29:25 +09:00
Shirou WAKAYAMA
13cd195a7e
change package name.
2014-12-30 22:09:05 +09:00
WAKAYAMA Shirou
9f2c985a28
fix windows build.
2014-11-27 22:28:05 +09:00
Shirou WAKAYAMA
a4671fcc2a
move subdirectories. refer to issue #24
2014-11-27 10:18:15 +09:00