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.
tailscale/portlist
Andrew Dunham 16587746ed portlist,tstest: skip tests on kernels with /proc/net/tcp regression
Linux kernel versions 6.6.102-104 and 6.12.42-45 have a regression
in /proc/net/tcp that causes seek operations to fail with "illegal seek".
This breaks portlist tests on these kernels.

Add kernel version detection for Linux systems and a SkipOnKernelVersions
helper to tstest. Use it to skip affected portlist tests on the broken
kernel versions.

Thanks to philiptaron for the list of kernels with the issue and fix.

Updates #16966

Signed-off-by: Andrew Dunham <andrew@tailscale.com>
2 weeks ago
..
clean.go all: update copyright and license headers 3 years ago
clean_test.go all: update copyright and license headers 3 years ago
netstat.go all: cleanup unused code, part 2 (#10670) 2 years ago
netstat_test.go portlist: add Poller.IncludeLocalhost option 3 years ago
poller.go all: use Go 1.21 slices, maps instead of x/exp/{slices,maps} 2 years ago
portlist.go portlist: populate Pid field on Linux 2 years ago
portlist_linux.go all: fix nilness issues 2 years ago
portlist_linux_test.go all: use Go 1.22 range-over-int 2 years ago
portlist_macos.go portlist: add Poller.IncludeLocalhost option 3 years ago
portlist_plan9.go portlist: add Plan 9 support 8 months ago
portlist_test.go portlist,tstest: skip tests on kernels with /proc/net/tcp regression 2 weeks ago
portlist_windows.go portlist: add Poller.IncludeLocalhost option 3 years ago