Lines Matching refs:sockaddr

38 static void test_bind(int sock, struct sockaddr *addr, socklen_t addrlen)  in test_bind()
52 static void test_connect(int sock, struct sockaddr *addr, socklen_t addrlen) in test_connect()
72 const struct sockaddr *addr, socklen_t addrlen) in test_sendto()
79 static void test_accept(int sock, int *new_sock, struct sockaddr *addr, in test_accept()
88 static void test_accept_timeout(int sock, int *new_sock, struct sockaddr *addr, in test_accept_timeout()
119 struct sockaddr *addr, in test_recvfrom()
238 struct sockaddr addr; in ZTEST_USER()
244 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
247 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
273 struct sockaddr addr; in ZTEST_USER()
279 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
282 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
313 struct sockaddr addr; in tcp_server_block_thread()
362 struct sockaddr *c_saddr = NULL; in test_send_recv_large_common()
363 struct sockaddr *s_saddr = NULL; in test_send_recv_large_common()
373 c_saddr = (struct sockaddr *) &c_saddr_in; in test_send_recv_large_common()
375 s_saddr = (struct sockaddr *) &s_saddr_in; in test_send_recv_large_common()
379 c_saddr = (struct sockaddr *) &c_saddr_in6; in test_send_recv_large_common()
381 s_saddr = (struct sockaddr *) &s_saddr_in6; in test_send_recv_large_common()
501 struct sockaddr addr; in ZTEST()
521 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
524 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
586 struct sockaddr addr; in ZTEST_USER()
592 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
595 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
597 (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
622 struct sockaddr addr; in ZTEST_USER()
629 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
632 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
634 (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
660 struct sockaddr addr; in ZTEST_USER()
666 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
669 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
671 (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
693 struct sockaddr addr; in ZTEST_USER()
699 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
702 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
704 (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
725 struct sockaddr addr; in ZTEST_USER()
739 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
742 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
744 (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
785 (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
859 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
875 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
888 struct sockaddr addr; in ZTEST_USER()
894 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
898 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
939 struct sockaddr addr; in ZTEST()
946 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
950 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
988 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
999 zassert_not_equal(zsock_connect(c_sock, (struct sockaddr *)&s_saddr, in ZTEST()
1050 zassert_equal(zsock_connect(c_sock, (struct sockaddr *)&s_saddr, in ZTEST()
1097 rv = zsock_connect(c_sock, (struct sockaddr *)&s_saddr, in ZTEST()
1125 struct sockaddr addr; in ZTEST()
1134 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1137 zassert_equal(zsock_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)), in ZTEST()
1171 struct sockaddr addr; in ZTEST()
1184 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1187 zassert_equal(zsock_connect(c_sock, (struct sockaddr *)&s_saddr, in ZTEST()
1242 struct sockaddr addr; in ZTEST_USER()
1247 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER()
1369 struct sockaddr addr; in ZTEST()
1377 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1380 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1458 struct sockaddr addr; in ZTEST()
1471 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1474 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1506 struct sockaddr addr; in ZTEST()
1522 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1525 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1573 struct sockaddr addr; in ZTEST()
1589 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1592 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1641 struct sockaddr addr; in ZTEST()
1654 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1657 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1702 struct sockaddr addr; in ZTEST()
1715 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1718 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1787 struct sockaddr addr; in ZTEST()
1799 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1802 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1865 struct sockaddr addr; in ZTEST()
1877 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
1880 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
2027 struct sockaddr addr; in ZTEST()
2036 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
2040 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
2070 struct sockaddr addr; in ZTEST()
2076 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
2138 test_bind(fd[ACCEPT], (struct sockaddr *)&s_saddr, addrlen); in test_ioctl_fionread_setup()
2141 test_connect(fd[CLIENT], (struct sockaddr *)&s_saddr, addrlen); in test_ioctl_fionread_setup()
2142 test_accept(fd[ACCEPT], &fd[SERVER], (struct sockaddr *)&addr, &addrlen2); in test_ioctl_fionread_setup()
2229 ret = zsock_connect(fd, (const struct sockaddr *)&addr, sizeof(addr)); in ZTEST()
2298 ret = zsock_connect(fd, (const struct sockaddr *)&addr, sizeof(addr)); in ZTEST()
2463 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()
2465 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST()