shirou_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.
2020-08-28 00:31:50 +02:00
..
net.go net: move parseNetLine and parseNetAddr to net_unix.go 2020-02-25 10:05:37 +01:00
net_aix.go net: add AIX support 2020-02-10 11:22:52 +01:00
net_darwin.go Adds ConntrackStats to get conntrack summary stats 2019-05-11 12:45:05 -04:00
net_darwin_test.go Fix issues reported by golint. 2017-04-27 14:21:34 -07:00
net_fallback.go net: add AIX support 2020-02-10 11:22:52 +01:00
net_freebsd.go Adds ConntrackStats to get conntrack summary stats 2019-05-11 12:45:05 -04:00
net_linux.go net_linux.go: decode port as 16-bit uint 2020-08-28 00:31:50 +02:00
net_linux_test.go Adds ConntrackStats to get conntrack summary stats 2019-05-11 12:45:05 -04:00
net_openbsd.go Adds ConntrackStats to get conntrack summary stats 2019-05-11 12:45:05 -04:00
net_test.go net: Check for error object 2018-06-21 17:00:15 +02:00
net_unix.go net: move parseNetLine and parseNetAddr to net_unix.go 2020-02-25 10:05:37 +01:00
net_windows.go Add WithoutUids funcs 2019-11-01 10:58:35 -04:00