/Zephyr-Core-3.7.0/tests/net/lib/http_server/crime/src/ |
D | main.c | 16 #define MY_IPV4_ADDR "127.0.0.1" macro 47 HTTP_SERVICE_DEFINE(test_http_service, MY_IPV4_ADDR, 83 ret = zsock_inet_pton(AF_INET, MY_IPV4_ADDR, &sa.sin_addr.s_addr); in test_crime() 85 zassert_not_equal(0, ret, "%s is not a valid IPv4 address", MY_IPV4_ADDR); in test_crime() 86 zassert_equal(1, ret, "inet_pton() failed to convert %s", MY_IPV4_ADDR); in test_crime()
|
/Zephyr-Core-3.7.0/tests/net/lib/http_server/tls/src/ |
D | main.c | 22 #define MY_IPV4_ADDR "127.0.0.1" macro 45 HTTPS_SERVICE_DEFINE(test_http_service, MY_IPV4_ADDR, &test_http_service_port, 178 ret = zsock_inet_pton(AF_INET, MY_IPV4_ADDR, &sa.sin_addr.s_addr); in test_tls() 180 zassert_not_equal(ret, 0, "%s is not a valid IPv4 address", MY_IPV4_ADDR); in test_tls() 181 zassert_equal(ret, 1, "inet_pton() failed to convert %s", MY_IPV4_ADDR); in test_tls()
|
/Zephyr-Core-3.7.0/tests/net/socket/tcp/src/ |
D | main.c | 27 #define MY_IPV4_ADDR "127.0.0.1" macro 241 prepare_sock_tcp_v4(MY_IPV4_ADDR, ANY_PORT, &c_sock, &c_saddr); in ZTEST_USER() 242 prepare_sock_tcp_v4(MY_IPV4_ADDR, SERVER_PORT, &s_sock, &s_saddr); in ZTEST_USER() 372 prepare_sock_tcp_v4(MY_IPV4_ADDR, ANY_PORT, &c_sock, &c_saddr_in); in test_send_recv_large_common() 374 prepare_sock_tcp_v4(MY_IPV4_ADDR, SERVER_PORT, &s_sock, &s_saddr_in); in test_send_recv_large_common() 518 prepare_sock_tcp_v4(MY_IPV4_ADDR, ANY_PORT, &c_sock, &c_saddr); in ZTEST() 519 prepare_sock_tcp_v4(MY_IPV4_ADDR, SERVER_PORT, &s_sock, &s_saddr); in ZTEST() 589 prepare_sock_tcp_v4(MY_IPV4_ADDR, ANY_PORT, &c_sock, &c_saddr); in ZTEST_USER() 590 prepare_sock_tcp_v4(MY_IPV4_ADDR, SERVER_PORT, &s_sock, &s_saddr); in ZTEST_USER() 663 prepare_sock_tcp_v4(MY_IPV4_ADDR, ANY_PORT, &c_sock, &c_saddr); in ZTEST_USER() [all …]
|
/Zephyr-Core-3.7.0/tests/net/socket/udp/src/ |
D | main.c | 47 #define MY_IPV4_ADDR "127.0.0.1" macro 177 prepare_sock_udp_v4(MY_IPV4_ADDR, ANY_PORT, &client_sock, &client_addr); in ZTEST() 178 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST() 234 prepare_sock_udp_v4(MY_IPV4_ADDR, CLIENT_PORT, &client_sock, &client_addr); in ZTEST() 235 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST() 297 prepare_sock_udp_v4(MY_IPV4_ADDR, 55555, &sock1, &bind_addr); in ZTEST() 298 prepare_sock_udp_v4(MY_IPV4_ADDR, 55555, &sock2, &conn_addr); in ZTEST() 332 prepare_sock_udp_v4(MY_IPV4_ADDR, 55555, &sock1, &bind_addr4); in ZTEST() 436 prepare_sock_udp_v4(MY_IPV4_ADDR, ANY_PORT, &client_sock, &client_addr); in ZTEST_USER() 437 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST_USER() [all …]
|
/Zephyr-Core-3.7.0/tests/net/socket/tls_ext/src/ |
D | main.c | 35 #define MY_IPV4_ADDR "127.0.0.1" macro 354 r = inet_pton(AF_INET, MY_IPV4_ADDR, &sa.sin_addr.s_addr); in test_common() 356 zassert_not_equal(0, r, "%s is not a valid IPv4 address", MY_IPV4_ADDR); in test_common() 357 zassert_equal(1, r, "inet_pton() failed to convert %s", MY_IPV4_ADDR); in test_common()
|
/Zephyr-Core-3.7.0/tests/net/socket/tls/src/ |
D | main.c | 21 #define MY_IPV4_ADDR "127.0.0.1" macro 211 prepare_sock_tls_v4(MY_IPV4_ADDR, ANY_PORT, &sock1, &bind_addr4, IPPROTO_TLS_1_2); in ZTEST() 236 prepare_sock_tls_v4(MY_IPV4_ADDR, ANY_PORT, &sock1, &bind_addr4, IPPROTO_TLS_1_2); in ZTEST() 324 prepare_sock_tls_v4(MY_IPV4_ADDR, ANY_PORT, &c_sock, in test_prepare_tls_connection() 327 prepare_sock_tls_v4(MY_IPV4_ADDR, ANY_PORT, &s_sock, in test_prepare_tls_connection() 373 prepare_sock_dtls_v4(MY_IPV4_ADDR, ANY_PORT, &c_sock, in test_prepare_dtls_connection() 376 prepare_sock_dtls_v4(MY_IPV4_ADDR, ANY_PORT, &s_sock, in test_prepare_dtls_connection() 977 prepare_sock_tcp_v4(MY_IPV4_ADDR, SERVER_PORT, s_sock, in test_prepare_fake_tcp_server()
|