aboutgitcodebugslistschat
path: root/doc/platform-requirements
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-07-15 10:43:07 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-07-15 17:55:52 +0200
commit8bd57bf25bab5ad14bd43242558243b20b49f80e (patch)
tree6e66a236afda030c09f0f19eec13247efff86900 /doc/platform-requirements
parentec2691a12ed4c25b6fe3f542f45d13a5ef52db67 (diff)
downloadpasst-8bd57bf25bab5ad14bd43242558243b20b49f80e.tar
passt-8bd57bf25bab5ad14bd43242558243b20b49f80e.tar.gz
passt-8bd57bf25bab5ad14bd43242558243b20b49f80e.tar.bz2
passt-8bd57bf25bab5ad14bd43242558243b20b49f80e.tar.lz
passt-8bd57bf25bab5ad14bd43242558243b20b49f80e.tar.xz
passt-8bd57bf25bab5ad14bd43242558243b20b49f80e.tar.zst
passt-8bd57bf25bab5ad14bd43242558243b20b49f80e.zip
doc: Trivial fix for reuseaddr-priority
This test program checks for particular behaviour regardless of order of operations. So, we step through the test with all possible orders for a number of different of parts. Or at least, we're supposed to, a copy pasta error led to using the same order for two things which should be independent. Fixes: 299c40750137 ("doc: Add program to document and test assumptions about SO_REUSEADDR") Reported-by: David Taylor <davidt@yadt.co.uk> Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'doc/platform-requirements')
-rw-r--r--doc/platform-requirements/reuseaddr-priority.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/platform-requirements/reuseaddr-priority.c b/doc/platform-requirements/reuseaddr-priority.c
index 644553f..701b6ff 100644
--- a/doc/platform-requirements/reuseaddr-priority.c
+++ b/doc/platform-requirements/reuseaddr-priority.c
@@ -222,7 +222,7 @@ static void check_all_orders(void)
for (k = 0; k < norders; k++)
for (l = 0; l < norders; l++)
check_one_order(orders[i], orders[j],
- orders[j], orders[l]);
+ orders[k], orders[l]);
}
int main(int argc, char *argv[])