/Zephyr-latest/tests/net/socket/udp/src/ |
D | main.c | 59 static void comm_sendto_recvfrom(int client_sock, in comm_sendto_recvfrom() argument 81 sent = zsock_sendto(client_sock, TEST_STR_SMALL, strlen(TEST_STR_SMALL), in comm_sendto_recvfrom() 131 recved = zsock_recvfrom(client_sock, rx_buf, sizeof(rx_buf), in comm_sendto_recvfrom() 157 recved = zsock_recvfrom(client_sock, rx_buf, 16, 0, &addr2, &addrlen2); in comm_sendto_recvfrom() 164 recved = zsock_recvfrom(client_sock, rx_buf, 16, 0, &addr2, &addrlen2); in comm_sendto_recvfrom() 172 int client_sock; in ZTEST() local 177 prepare_sock_udp_v4(MY_IPV4_ADDR, ANY_PORT, &client_sock, &client_addr); in ZTEST() 185 comm_sendto_recvfrom(client_sock, in ZTEST() 192 rv = zsock_close(client_sock); in ZTEST() 201 int client_sock; in ZTEST() local [all …]
|
/Zephyr-latest/tests/net/pmtu/src/ |
D | main.c | 565 int client_sock, server_sock; in ZTEST() local 571 client_sock = get_v6_send_recv_sock(&server_sock, &c_saddr, &s_saddr, in ZTEST() 573 zassert_true(client_sock >= 0, "Failed to create client socket"); in ZTEST() 592 (void)zsock_close(client_sock); in ZTEST() 691 int client_sock, server_sock; in ZTEST() local 697 client_sock = get_v4_send_recv_sock(&server_sock, &c_saddr, &s_saddr, in ZTEST() 699 zassert_true(client_sock >= 0, "Failed to create client socket"); in ZTEST() 718 (void)zsock_close(client_sock); in ZTEST() 786 int ret, client_sock, server_sock; in ZTEST() local 791 client_sock = get_v4_send_recv_sock(&server_sock, &c_saddr, &s_saddr, in ZTEST() [all …]
|
/Zephyr-latest/tests/net/socket/reuseaddr_reuseport/src/ |
D | main.c | 446 int client_sock = -1; in test_reuseaddr_tcp_tcp_time_wait_common() local 456 prepare_sock_tcp(family, second_ip, LOCAL_PORT, &client_sock, &conn_addr); in test_reuseaddr_tcp_tcp_time_wait_common() 465 test_connect_success(client_sock, &conn_addr, sizeof(conn_addr)); in test_reuseaddr_tcp_tcp_time_wait_common() 491 zsock_close(client_sock); in test_reuseaddr_tcp_tcp_time_wait_common() 756 int client_sock = -1; in test_reuseport_udp_server_client_common() local 770 prepare_sock_udp(family, ip, 0, &client_sock, &client_addr); in test_reuseport_udp_server_client_common() 781 test_bind_success(client_sock, (struct sockaddr *) &client_addr, sizeof(client_addr)); in test_reuseport_udp_server_client_common() 784 test_sendto(client_sock, &tx_buf, sizeof(tx_buf), 0, &server_addr, sizeof(server_addr)); in test_reuseport_udp_server_client_common() 819 test_sendto(client_sock, &tx_buf, sizeof(tx_buf), 0, &server_addr, sizeof(server_addr)); in test_reuseport_udp_server_client_common() 844 zsock_close(client_sock); in test_reuseport_udp_server_client_common()
|
/Zephyr-latest/tests/net/vlan/src/ |
D | main.c | 796 static void comm_sendto_recvfrom(int client_sock, in comm_sendto_recvfrom() argument 816 sent = zsock_sendto(client_sock, TEST_STR_SMALL, strlen(TEST_STR_SMALL), in comm_sendto_recvfrom() 840 int client_sock; in ZTEST() local 863 prepare_sock_udp_v6(MY_IPV6_ADDR, ANY_PORT, &client_sock, &client_addr); in ZTEST() 876 comm_sendto_recvfrom(client_sock, in ZTEST() 883 ret = zsock_close(client_sock); in ZTEST() 894 int client_sock; in ZTEST() local 930 prepare_sock_udp_v6("2001:db8:90::2", ANY_PORT, &client_sock, &client_addr); in ZTEST() 936 ret = zsock_setsockopt(client_sock, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in ZTEST() 945 sent = zsock_sendto(client_sock, TEST_STR_SMALL, strlen(TEST_STR_SMALL), in ZTEST() [all …]
|