summaryrefslogtreecommitdiff
path: root/rust/helpers/xarray.c
diff options
context:
space:
mode:
authorJakub Sitnicki <jakub@cloudflare.com>2025-09-17 15:22:05 +0200
committerPaolo Abeni <pabeni@redhat.com>2025-09-23 10:12:15 +0200
commit8a8241cdaa343c4bdb5ae11fa6cef09a2476d73b (patch)
tree3ebeb02bca04008cb2b88127207fe5ba8fd07f20 /rust/helpers/xarray.c
parentd57f4b874946e997be52f5ebb5e0e1dad368c16f (diff)
selftests/net: Test tcp port reuse after unbinding a socket
Exercise the scenario described in detail in the cover letter: 1) socket A: connect() from ephemeral port X 2) socket B: explicitly bind() to port X 3) check that port X is now excluded from ephemeral ports 4) close socket B to release the port bind 5) socket C: connect() from ephemeral port X As well as a corner case to test that the connect-bind flag is cleared: 1) connect() from ephemeral port X 2) disconnect the socket with connect(AF_UNSPEC) 3) bind() it explicitly to port X 4) check that port X is now excluded from ephemeral ports Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com> Link: https://patch.msgid.link/20250917-update-bind-bucket-state-on-unhash-v5-2-57168b661b47@cloudflare.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'rust/helpers/xarray.c')
0 files changed, 0 insertions, 0 deletions