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
Disconnect3d 5c1a9e709d net_linux.go: decode port as 16-bit uint
Changes the port parsing from `/proc/net/*` files records from parsing them as 64-bit integers to parse them as 16-bit unsigned integers.

While this is mostly a cosmetic change, it will also make so that the code fails faster in case the entry is malformed (for whatever reason).

Note that the returned value is still casted to uint32 when an  `Addr` object is created.
It seems to me that the `Addr.port` field should be changed to `uint16` but maybe some other APIs/systems wants it to be `uint32` and also changing it there may require changes in users code if they update. This being said I am not changing that field's type.
5 years ago
..
net.go net: move parseNetLine and parseNetAddr to net_unix.go 5 years ago
net_aix.go net: add AIX support 5 years ago
net_darwin.go Adds ConntrackStats to get conntrack summary stats 6 years ago
net_darwin_test.go Fix issues reported by golint. 8 years ago
net_fallback.go net: add AIX support 5 years ago
net_freebsd.go Adds ConntrackStats to get conntrack summary stats 6 years ago
net_linux.go net_linux.go: decode port as 16-bit uint 5 years ago
net_linux_test.go Adds ConntrackStats to get conntrack summary stats 6 years ago
net_openbsd.go Adds ConntrackStats to get conntrack summary stats 6 years ago
net_test.go net: Check for error object 7 years ago
net_unix.go net: move parseNetLine and parseNetAddr to net_unix.go 5 years ago
net_windows.go Add WithoutUids funcs 6 years ago