Home
last modified time | relevance | path

Searched refs:IPPROTO_TCP (Results 1 – 25 of 77) sorted by relevance

1234

/Zephyr-latest/samples/net/promiscuous_mode/src/
Dmain.c101 case IPPROTO_TCP: in print_info()
131 if (next_hdr == IPPROTO_TCP || next_hdr == IPPROTO_UDP) { in print_info()
142 if (next_hdr == IPPROTO_TCP || next_hdr == IPPROTO_UDP) { in print_info()
/Zephyr-latest/tests/net/socket/misc/src/
Dmain.c406 sock_c = zsock_socket(family, SOCK_STREAM, IPPROTO_TCP); in test_getpeername()
408 sock_s = zsock_socket(family, SOCK_STREAM, IPPROTO_TCP); in test_getpeername()
472 sock_c = zsock_socket(family, SOCK_STREAM, IPPROTO_TCP); in test_getsockname_tcp()
474 sock_s = zsock_socket(family, SOCK_STREAM, IPPROTO_TCP); in test_getsockname_tcp()
609 sock_s4 = zsock_socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in test_ipv4_mapped_to_ipv6_disabled()
618 sock_s6 = zsock_socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP); in test_ipv4_mapped_to_ipv6_disabled()
659 sock_s6 = zsock_socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP); in test_ipv4_mapped_to_ipv6_enabled()
669 sock_s4 = zsock_socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in test_ipv4_mapped_to_ipv6_enabled()
689 sock_s4 = zsock_socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in test_ipv4_mapped_to_ipv6_enabled()
755 sock_s6 = zsock_socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP); in test_ipv4_mapped_to_ipv6_server()
[all …]
/Zephyr-latest/tests/net/tcp/src/
Dmain.c258 af, IPPROTO_TCP, K_NO_WAIT); in tester_prepare_tcp_pkt()
324 ret = net_ipv4_finalize(pkt, IPPROTO_TCP); in tester_prepare_tcp_pkt()
326 ret = net_ipv6_finalize(pkt, IPPROTO_TCP); in tester_prepare_tcp_pkt()
606 ret = net_context_get(AF_INET, SOCK_STREAM, IPPROTO_TCP, &ctx); in ZTEST()
668 ret = net_context_get(AF_INET6, SOCK_STREAM, IPPROTO_TCP, &ctx); in ZTEST()
837 ret = net_context_get(AF_INET, SOCK_STREAM, IPPROTO_TCP, &ctx); in ZTEST()
906 ret = net_context_get(AF_INET, SOCK_STREAM, IPPROTO_TCP, &ctx); in ZTEST()
975 ret = net_context_get(AF_INET6, SOCK_STREAM, IPPROTO_TCP, &ctx); in ZTEST()
1050 ret = net_context_get(AF_INET, SOCK_STREAM, IPPROTO_TCP, &ctx); in ZTEST()
1112 ret = net_context_get(AF_INET, SOCK_STREAM, IPPROTO_TCP, &ctx); in ZTEST()
[all …]
/Zephyr-latest/drivers/net/
Dnsos_adapt.c130 *proto = IPPROTO_TCP; in socket_proto_from_nsos_mid()
167 case IPPROTO_TCP: in socket_proto_to_nsos_mid()
720 return nsos_adapt_getsockopt_int(fd, IPPROTO_TCP, TCP_NODELAY, in nsos_adapt_getsockopt()
723 return nsos_adapt_getsockopt_int(fd, IPPROTO_TCP, TCP_KEEPIDLE, in nsos_adapt_getsockopt()
726 return nsos_adapt_getsockopt_int(fd, IPPROTO_TCP, TCP_KEEPINTVL, in nsos_adapt_getsockopt()
729 return nsos_adapt_getsockopt_int(fd, IPPROTO_TCP, TCP_KEEPCNT, in nsos_adapt_getsockopt()
825 return nsos_adapt_setsockopt_int(fd, IPPROTO_TCP, TCP_NODELAY, in nsos_adapt_setsockopt()
828 return nsos_adapt_setsockopt_int(fd, IPPROTO_TCP, TCP_KEEPIDLE, in nsos_adapt_setsockopt()
831 return nsos_adapt_setsockopt_int(fd, IPPROTO_TCP, TCP_KEEPINTVL, in nsos_adapt_setsockopt()
834 return nsos_adapt_setsockopt_int(fd, IPPROTO_TCP, TCP_KEEPCNT, in nsos_adapt_setsockopt()
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_common.c194 if (proto == IPPROTO_TCP && tcp_nodelay && in zperf_prepare_upload_sock()
195 zsock_setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, in zperf_prepare_upload_sock()
Dzperf_tcp_uploader.c137 IPPROTO_TCP); in zperf_tcp_upload()
163 IPPROTO_TCP); in tcp_upload_async_work()
Dzperf_tcp_receiver.c292 IPPROTO_TCP); in zperf_tcp_receiver_init()
338 IPPROTO_TCP); in zperf_tcp_receiver_init()
/Zephyr-latest/samples/net/sockets/echo_async/src/
Dsocket_echo.c136 serv4 = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in main()
154 serv6 = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP); in main()
/Zephyr-latest/samples/net/sockets/echo_async_select/src/
Dsocket_echo_select.c118 serv4 = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
133 serv6 = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP);
/Zephyr-latest/samples/net/sockets/echo/src/
Dsocket_echo.c39 serv = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP); in main()
/Zephyr-latest/subsys/net/ip/
Dtcp_private.h70 IPPROTO_TCP, \
90 IPPROTO_TCP, \
108 IPPROTO_TCP, \
Dipv4.c141 next_header_proto == IPPROTO_TCP) { in net_ipv4_finalize()
356 (hdr->proto == IPPROTO_TCP && in net_ipv4_input()
399 case IPPROTO_TCP: in net_ipv4_input()
/Zephyr-latest/tests/net/socket/
Dsocket_helpers.h103 *sock = zsock_socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in prepare_sock_tcp_v4()
121 *sock = zsock_socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP); in prepare_sock_tcp_v6()
/Zephyr-latest/tests/net/socket/tcp/src/
Dmain.c398 rv = zsock_setsockopt(c_sock, IPPROTO_TCP, TCP_NODELAY, (char *) &tcp_nodelay, sizeof(int)); in test_send_recv_large_common()
1307 zassert_equal(optval, IPPROTO_TCP, "getsockopt got invalid protocol"); in ZTEST()
1312 zassert_equal(optval, IPPROTO_TCP, "getsockopt got invalid protocol"); in ZTEST()
2364 ret = zsock_getsockopt(sock, IPPROTO_TCP, TCP_KEEPIDLE, &optval, &optlen); in ZTEST()
2370 ret = zsock_getsockopt(sock, IPPROTO_TCP, TCP_KEEPINTVL, &optval, &optlen); in ZTEST()
2376 ret = zsock_getsockopt(sock, IPPROTO_TCP, TCP_KEEPCNT, &optval, &optlen); in ZTEST()
2384 ret = zsock_setsockopt(sock, IPPROTO_TCP, TCP_KEEPIDLE, in ZTEST()
2389 ret = zsock_setsockopt(sock, IPPROTO_TCP, TCP_KEEPINTVL, in ZTEST()
2394 ret = zsock_setsockopt(sock, IPPROTO_TCP, TCP_KEEPCNT, in ZTEST()
2398 ret = zsock_getsockopt(sock, IPPROTO_TCP, TCP_KEEPIDLE, &optval, &optlen); in ZTEST()
[all …]
/Zephyr-latest/samples/net/sockets/dumb_http_server/src/
Dsocket_dumb_http.c65 serv = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in main()
/Zephyr-latest/tests/posix/headers/src/
Dnetinet_in_h.c72 zexpect_not_equal(-1, IPPROTO_TCP); in ZTEST()
/Zephyr-latest/subsys/net/lib/sockets/
Dgetaddrinfo.c101 ai->ai_protocol = (socktype == SOCK_DGRAM) ? IPPROTO_UDP : IPPROTO_TCP; in dns_resolve_cb()
213 res->ai_protocol = IPPROTO_TCP; in getaddrinfo_null_host()
364 int protocol = IPPROTO_TCP; in try_resolve_literal_addr()
/Zephyr-latest/tests/net/socket/getaddrinfo/src/
Dmain.c302 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
311 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
352 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
383 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
618 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
633 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
/Zephyr-latest/samples/net/cloud/tagoio_http_post/src/
Dsockets.c47 hints.ai_protocol = IPPROTO_TCP; in tagoio_connect()
/Zephyr-latest/tests/net/lib/http_server/crime/src/
Dmain.c67 int proto = IPPROTO_TCP; in test_crime()
/Zephyr-latest/samples/subsys/modbus/tcp_gateway/src/
Dmain.c102 serv = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in main()
/Zephyr-latest/drivers/wifi/esp_at/
Desp_offload.c59 if (esp_socket_ip_proto(sock) == IPPROTO_TCP) { in _sock_connect()
111 esp_socket_ip_proto(sock) == IPPROTO_TCP ? "TCP" : "UDP", in _sock_connect()
158 if (esp_socket_ip_proto(sock) == IPPROTO_TCP) { in esp_bind()
285 if (esp_socket_ip_proto(sock) == IPPROTO_TCP) { in _sock_send()
Desp.h53 #define ESP_PROTO_PASSIVE(proto) (proto == IPPROTO_TCP)
56 (proto == IPPROTO_TCP || proto == IPPROTO_UDP)
/Zephyr-latest/samples/drivers/video/tcpserversink/src/
Dmain.c65 sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in main()
/Zephyr-latest/subsys/net/lib/mqtt/
Dmqtt_transport_socket_tcp.c27 IPPROTO_TCP); in mqtt_client_tcp_connect()

1234