1
0
mirror of https://passt.top/passt synced 2024-09-16 12:44:51 +00:00

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: 299c407501 ("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>
This commit is contained in:
David Gibson 2024-07-15 10:43:07 +10:00 committed by Stefano Brivio
parent ec2691a12e
commit 8bd57bf25b

View File

@ -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[])