]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: net: py: avoid all ports < 10k
authorJakub Kicinski <kuba@kernel.org>
Mon, 29 Apr 2024 14:44:24 +0000 (07:44 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 30 Apr 2024 15:15:32 +0000 (08:15 -0700)
commitee2512d6bf4168998f3c218fb33ed50544e69e3c
treec8a117497da484584150e9df0005fad58cdc1e27
parent32a4ca1361d7a51e5003d4af4dfbf570f1b5fd00
selftests: net: py: avoid all ports < 10k

When picking TCP ports to use, avoid all below 10k.
This should lower the chance of collision or running
afoul whatever random policies may be on the host.

Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20240429144426.743476-5-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/lib/py/utils.py