Lines Matching refs:optlen

1267 	socklen_t optlen = sizeof(optval);  in ZTEST()  local
1276 rv = zsock_getsockopt(sock1, SOL_SOCKET, SO_TYPE, &optval, &optlen); in ZTEST()
1279 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST()
1281 rv = zsock_getsockopt(sock2, SOL_SOCKET, SO_TYPE, &optval, &optlen); in ZTEST()
1284 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST()
1300 socklen_t optlen = sizeof(optval); in ZTEST() local
1305 rv = zsock_getsockopt(sock1, SOL_SOCKET, SO_PROTOCOL, &optval, &optlen); in ZTEST()
1308 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST()
1310 rv = zsock_getsockopt(sock2, SOL_SOCKET, SO_PROTOCOL, &optval, &optlen); in ZTEST()
1313 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST()
1328 socklen_t optlen = sizeof(optval); in ZTEST() local
1335 rv = zsock_getsockopt(sock1, SOL_SOCKET, SO_RCVBUF, &retval, &optlen); in ZTEST()
1338 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST()
1342 rv = zsock_getsockopt(sock2, SOL_SOCKET, SO_RCVBUF, &retval, &optlen); in ZTEST()
1345 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST()
1417 socklen_t optlen = sizeof(optval); in ZTEST() local
1424 rv = zsock_getsockopt(sock1, SOL_SOCKET, SO_SNDBUF, &retval, &optlen); in ZTEST()
1427 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST()
1431 rv = zsock_getsockopt(sock2, SOL_SOCKET, SO_SNDBUF, &retval, &optlen); in ZTEST()
1434 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST()
2214 socklen_t optlen = sizeof(optval); in ZTEST() local
2260 ret = zsock_getsockopt(fd, SOL_SOCKET, SO_ERROR, &optval, &optlen); in ZTEST()
2283 socklen_t optlen = sizeof(optval); in ZTEST() local
2325 ret = zsock_getsockopt(fd, SOL_SOCKET, SO_ERROR, &optval, &optlen); in ZTEST()
2342 socklen_t optlen = sizeof(optval); in ZTEST() local
2347 ret = zsock_getsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, &optval, &optlen); in ZTEST()
2350 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST()
2358 ret = zsock_getsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, &optval, &optlen); in ZTEST()
2361 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST()
2364 ret = zsock_getsockopt(sock, IPPROTO_TCP, TCP_KEEPIDLE, &optval, &optlen); in ZTEST()
2368 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST()
2370 ret = zsock_getsockopt(sock, IPPROTO_TCP, TCP_KEEPINTVL, &optval, &optlen); in ZTEST()
2374 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST()
2376 ret = zsock_getsockopt(sock, IPPROTO_TCP, TCP_KEEPCNT, &optval, &optlen); in ZTEST()
2380 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST()
2398 ret = zsock_getsockopt(sock, IPPROTO_TCP, TCP_KEEPIDLE, &optval, &optlen); in ZTEST()
2401 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST()
2403 ret = zsock_getsockopt(sock, IPPROTO_TCP, TCP_KEEPINTVL, &optval, &optlen); in ZTEST()
2406 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST()
2408 ret = zsock_getsockopt(sock, IPPROTO_TCP, TCP_KEEPCNT, &optval, &optlen); in ZTEST()
2411 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST()