tailscale/portlist
Aaron Klotz 296f53524c netstat, portlist: update Windows implementation to disambiguate svchost processes
We change our invocations of GetExtendedTcpTable to request additional
information about the "module" responsible for the port. In addition to pid,
this output also includes sufficient metadata to enable Windows to resolve
process names and disambiguate svchost processes.

We store the OS-specific output in an OSMetadata field in netstat.Entry, which
portlist may then use as necessary to actually resolve the process/module name.

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
2022-12-19 15:38:49 -06:00
..
clean.go portlist: normalise space delimited process names (#5634) 2022-09-15 12:17:31 +02:00
clean_test.go portlist: normalise space delimited process names (#5634) 2022-09-15 12:17:31 +02:00
netstat.go portlist: add macOS osImpl, finish migration to new style 2022-11-04 10:58:23 -07:00
netstat_test.go portlist: add macOS osImpl, finish migration to new style 2022-11-04 10:58:23 -07:00
poller.go portlist: fix data race 2022-11-14 12:34:18 -08:00
portlist.go portlist: refactor, introduce OS-specific types 2022-10-23 20:29:23 -07:00
portlist_linux.go util/dirwalk, metrics, portlist: add new package for fast directory walking 2022-11-05 16:26:51 -07:00
portlist_linux_test.go util/dirwalk, metrics, portlist: add new package for fast directory walking 2022-11-05 16:26:51 -07:00
portlist_macos.go portlist: wait for lsof cmd to exit 2022-11-18 03:42:35 +05:00
portlist_test.go portlist: fix data race 2022-11-14 12:34:18 -08:00
portlist_windows.go netstat, portlist: update Windows implementation to disambiguate svchost processes 2022-12-19 15:38:49 -06:00