svn commit: r359309 - head/tests/sys/netinet
Alfredo Dal'Ava Junior
alfredo at FreeBSD.org
Wed Mar 25 20:25:34 UTC 2020
Author: alfredo
Date: Wed Mar 25 20:20:08 2020
New Revision: 359309
URL: https://svnweb.freebsd.org/changeset/base/359309
Log:
so_reuseport_lb_test: correct setsockopt parameter size
Change type of variable used in setsocketopt so correct size of
option is passed.
Test failure was identified when running the test on PowerPC64,
and the following error message was seen:
"bind () failed: Address already in use"
Submitted by: Fernando Valle <fernando.valle at eldorado.org.br>
Reviewed by: melifaro, adalava
Approved by: jhibbits (mentor)
Sponsored by: Eldorado Research Institute (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D24164
Modified:
head/tests/sys/netinet/so_reuseport_lb_test.c
Modified: head/tests/sys/netinet/so_reuseport_lb_test.c
==============================================================================
--- head/tests/sys/netinet/so_reuseport_lb_test.c Wed Mar 25 20:16:24 2020 (r359308)
+++ head/tests/sys/netinet/so_reuseport_lb_test.c Wed Mar 25 20:20:08 2020 (r359309)
@@ -108,7 +108,7 @@ lb_simple_accept_loop(int domain, const struct sockadd
static int
lb_listen_socket(int domain, int flags)
{
- size_t one;
+ int one;
int error, sd;
sd = socket(domain, SOCK_STREAM | flags, 0);
More information about the svn-src-head
mailing list