Lines Matching refs:server_addr
63 struct sockaddr *server_addr, in comm_sendto_recvfrom() argument
75 zassert_not_null(server_addr, "null server addr"); in comm_sendto_recvfrom()
82 0, server_addr, server_addrlen); in comm_sendto_recvfrom()
140 zassert_equal(net_sin(server_addr)->sin_port, in comm_sendto_recvfrom()
175 struct sockaddr_in server_addr; in ZTEST() local
178 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST()
181 (struct sockaddr *)&server_addr, in ZTEST()
182 sizeof(server_addr)); in ZTEST()
189 (struct sockaddr *)&server_addr, in ZTEST()
190 sizeof(server_addr)); in ZTEST()
204 struct sockaddr_in6 server_addr; in ZTEST() local
207 prepare_sock_udp_v6(MY_IPV6_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST()
210 (struct sockaddr *)&server_addr, sizeof(server_addr)); in ZTEST()
217 (struct sockaddr *)&server_addr, in ZTEST()
218 sizeof(server_addr)); in ZTEST()
232 struct sockaddr_in server_addr; in ZTEST() local
235 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST()
242 (struct sockaddr *)&server_addr, sizeof(server_addr)); in ZTEST()
249 (struct sockaddr *)&server_addr, in ZTEST()
250 sizeof(server_addr)); in ZTEST()
264 struct sockaddr_in6 server_addr; in ZTEST() local
267 prepare_sock_udp_v6(MY_IPV6_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST()
274 (struct sockaddr *)&server_addr, sizeof(server_addr)); in ZTEST()
281 (struct sockaddr *)&server_addr, in ZTEST()
282 sizeof(server_addr)); in ZTEST()
362 struct sockaddr *server_addr, in comm_sendmsg_recvfrom() argument
372 zassert_not_null(server_addr, "null server addr"); in comm_sendmsg_recvfrom()
427 struct sockaddr_in server_addr; in ZTEST_USER() local
437 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST_USER()
440 (struct sockaddr *)&server_addr, in ZTEST_USER()
441 sizeof(server_addr)); in ZTEST_USER()
457 msg.msg_name = &server_addr; in ZTEST_USER()
458 msg.msg_namelen = sizeof(server_addr); in ZTEST_USER()
471 (struct sockaddr *)&server_addr, in ZTEST_USER()
472 sizeof(server_addr)); in ZTEST_USER()
486 struct sockaddr_in server_addr; in ZTEST_USER() local
491 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST_USER()
494 (struct sockaddr *)&server_addr, in ZTEST_USER()
495 sizeof(server_addr)); in ZTEST_USER()
509 msg.msg_name = &server_addr; in ZTEST_USER()
510 msg.msg_namelen = sizeof(server_addr); in ZTEST_USER()
517 (struct sockaddr *)&server_addr, in ZTEST_USER()
518 sizeof(server_addr)); in ZTEST_USER()
532 struct sockaddr_in6 server_addr; in ZTEST_USER() local
542 prepare_sock_udp_v6(MY_IPV6_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST_USER()
545 (struct sockaddr *)&server_addr, sizeof(server_addr)); in ZTEST_USER()
561 msg.msg_name = &server_addr; in ZTEST_USER()
562 msg.msg_namelen = sizeof(server_addr); in ZTEST_USER()
575 (struct sockaddr *)&server_addr, in ZTEST_USER()
576 sizeof(server_addr)); in ZTEST_USER()
590 struct sockaddr_in server_addr; in ZTEST_USER() local
600 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST_USER()
603 (struct sockaddr *)&server_addr, in ZTEST_USER()
604 sizeof(server_addr)); in ZTEST_USER()
612 rv = zsock_connect(client_sock, (struct sockaddr *)&server_addr, in ZTEST_USER()
613 sizeof(server_addr)); in ZTEST_USER()
636 (struct sockaddr *)&server_addr, in ZTEST_USER()
637 sizeof(server_addr)); in ZTEST_USER()
651 struct sockaddr_in6 server_addr; in ZTEST_USER() local
661 prepare_sock_udp_v6(MY_IPV6_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST_USER()
664 (struct sockaddr *)&server_addr, sizeof(server_addr)); in ZTEST_USER()
672 rv = zsock_connect(client_sock, (struct sockaddr *)&server_addr, in ZTEST_USER()
673 sizeof(server_addr)); in ZTEST_USER()
696 (struct sockaddr *)&server_addr, in ZTEST_USER()
697 sizeof(server_addr)); in ZTEST_USER()
1178 struct sockaddr_in server_addr; in ZTEST() local
1181 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST()
1185 (struct sockaddr *)&server_addr, sizeof(server_addr)); in ZTEST()
1193 struct sockaddr_in6 server_addr; in ZTEST() local
1196 prepare_sock_udp_v6(MY_IPV6_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST()
1200 (struct sockaddr *)&server_addr, sizeof(server_addr)); in ZTEST()
1264 struct sockaddr_in server_addr; in ZTEST() local
1267 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST()
1271 (struct sockaddr *)&server_addr, sizeof(server_addr), in ZTEST()
1280 struct sockaddr_in6 server_addr; in ZTEST() local
1283 prepare_sock_udp_v6(MY_IPV6_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST()
1288 (struct sockaddr *)&server_addr, sizeof(server_addr), in ZTEST()
1293 (struct sockaddr *)&server_addr, sizeof(server_addr), in ZTEST()
1303 struct sockaddr_in6 server_addr; in ZTEST() local
1306 prepare_sock_udp_v6(MY_IPV6_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST()
1310 (struct sockaddr *)&server_addr, sizeof(server_addr), in ZTEST()
1407 struct sockaddr_in6 server_addr; in ZTEST_USER() local
1440 msg.msg_namelen = sizeof(server_addr); in ZTEST_USER()
1457 struct sockaddr *server_addr, in comm_sendmsg_recvmsg() argument
1475 zassert_not_null(server_addr, "null server addr"); in comm_sendmsg_recvmsg()
1668 struct sockaddr_in server_addr; in ZTEST_USER() local
1673 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST_USER()
1676 (struct sockaddr *)&server_addr, in ZTEST_USER()
1677 sizeof(server_addr)); in ZTEST_USER()
1691 msg.msg_name = &server_addr; in ZTEST_USER()
1692 msg.msg_namelen = sizeof(server_addr); in ZTEST_USER()
1699 (struct sockaddr *)&server_addr, in ZTEST_USER()
1700 sizeof(server_addr), in ZTEST_USER()
1713 struct sockaddr *server_addr, in run_ancillary_recvmsg_test() argument
1735 rv = zsock_bind(server_sock, server_addr, server_addr_len); in run_ancillary_recvmsg_test()
1749 msg.msg_name = server_addr; in run_ancillary_recvmsg_test()
1757 server_addr, in run_ancillary_recvmsg_test()
1775 if (server_addr->sa_family == AF_INET) { in run_ancillary_recvmsg_test()
1779 if (server_addr->sa_family == AF_INET6) { in run_ancillary_recvmsg_test()
1797 msg.msg_name = server_addr; in run_ancillary_recvmsg_test()
1805 server_addr, in run_ancillary_recvmsg_test()
1831 if (server_addr->sa_family == AF_INET) { in run_ancillary_recvmsg_test()
1833 net_sin(server_addr)->sin_addr.s_addr, in run_ancillary_recvmsg_test()
1837 if (server_addr->sa_family == AF_INET6) { in run_ancillary_recvmsg_test()
1839 &net_sin6(server_addr)->sin6_addr, in run_ancillary_recvmsg_test()
1851 server_addr, server_addr_len); in run_ancillary_recvmsg_test()
1877 struct sockaddr_in server_addr; in ZTEST_USER() local
1882 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST_USER()
1888 (struct sockaddr *)&server_addr, in ZTEST_USER()
1889 sizeof(server_addr)); in ZTEST_USER()
1895 struct sockaddr_in6 server_addr; in ZTEST_USER() local
1900 prepare_sock_udp_v6(MY_IPV6_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST_USER()
1906 (struct sockaddr *)&server_addr, in ZTEST_USER()
1907 sizeof(server_addr)); in ZTEST_USER()
2159 struct sockaddr_in server_addr; in ZTEST() local
2164 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST()
2193 (struct sockaddr *)&server_addr, sizeof(server_addr), in ZTEST()
2194 (struct sockaddr *)&server_addr, sizeof(server_addr), in ZTEST()
2207 struct sockaddr_in server_addr; in ZTEST() local
2213 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST()
2242 (struct sockaddr *)&server_addr, sizeof(server_addr), in ZTEST()
2257 struct sockaddr_in6 server_addr; in ZTEST() local
2263 prepare_sock_udp_v6(MY_IPV6_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST()
2310 (struct sockaddr *)&server_addr, sizeof(server_addr), in ZTEST()
2324 struct sockaddr_in6 server_addr; in ZTEST() local
2329 prepare_sock_udp_v6(MY_IPV6_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST()
2360 (struct sockaddr *)&server_addr, sizeof(server_addr), in ZTEST()
2361 (struct sockaddr *)&server_addr, sizeof(server_addr), in ZTEST()
2371 struct sockaddr_in server_addr; in ZTEST_USER() local
2380 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST_USER()
2383 (struct sockaddr *)&server_addr, in ZTEST_USER()
2384 sizeof(server_addr)); in ZTEST_USER()
2400 msg.msg_name = &server_addr; in ZTEST_USER()
2401 msg.msg_namelen = sizeof(server_addr); in ZTEST_USER()
2408 (struct sockaddr *)&server_addr, in ZTEST_USER()
2409 sizeof(server_addr), in ZTEST_USER()