diff options
| author | Dimitri Daskalakis <dimitri.daskalakis1@gmail.com> | 2026-02-24 14:46:58 -0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-02-25 19:42:02 -0800 |
| commit | b0249c0d41b306ddd79de58ca7fea543ab5e7a2e (patch) | |
| tree | 61e9815557564e17a6e1af4df2a5ac8a033753ef /include/linux/console_struct.h | |
| parent | 2cd63825c7c6105bc298474fbb073d25f48114cf (diff) | |
selftests: net: py: Add rand_ports helper method
Certain tests need a unique set of ports. Successive calls to the
existing rand_port method may return a duplicate port, resulting in test
flakiness. The new helper keeps sockets open while building a list of
ephemeral ports, thus the kernel enforces their uniqueness.
Signed-off-by: Dimitri Daskalakis <dimitri.daskalakis1@gmail.com>
Link: https://patch.msgid.link/20260224224659.1507082-2-dimitri.daskalakis1@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/console_struct.h')
0 files changed, 0 insertions, 0 deletions
