diff options
| author | Jose Luis Duran <jlduran@gmail.com> | 2022-10-11 16:39:26 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2022-10-14 00:41:30 +0000 |
| commit | 67d863df0833cdb1ca054a7c4e7d551b4ad28d95 (patch) | |
| tree | 5dc391108071a74419bb8a42e9670d7659a793b5 /tools | |
| parent | 565337126942ecb9ac324023f9f3cfa0f217b3e0 (diff) | |
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/regression/sockets/listen_backlog/listen_backlog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/regression/sockets/listen_backlog/listen_backlog.c b/tools/regression/sockets/listen_backlog/listen_backlog.c index 2276393ee6f1..9d156c36aa60 100644 --- a/tools/regression/sockets/listen_backlog/listen_backlog.c +++ b/tools/regression/sockets/listen_backlog/listen_backlog.c @@ -44,7 +44,7 @@ * * Future things to test: * - * - That if we change the value of kern.ipc.somaxconn, the limits really + * - That if we change the value of kern.ipc.soacceptqueue, the limits really * do change. * * - That limits are, approximately, enforced and implemented. @@ -55,7 +55,7 @@ */ /* - * We retrieve kern.ipc.somaxconn before running the tests in order to use a + * We retrieve kern.ipc.soacceptqueue before running the tests in order to use a * run-time set value of SOMAXCONN, rather than compile-time set. We assume * that no other process will be simultaneously frobbing it, and these tests * may fail if that assumption is not held. @@ -371,9 +371,9 @@ main(void) size_t len; len = sizeof(somaxconn); - if (sysctlbyname("kern.ipc.somaxconn", &somaxconn, &len, NULL, 0) + if (sysctlbyname("kern.ipc.soacceptqueue", &somaxconn, &len, NULL, 0) < 0) - err(-1, "sysctlbyname(kern.ipc.somaxconn)"); + err(-1, "sysctlbyname(kern.ipc.soacceptqueue)"); test_defaults(); test_listen_update(); |
