/Zephyr-latest/samples/net/promiscuous_mode/src/ |
D | main.c | 101 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/ |
D | main.c | 406 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/ |
D | main.c | 258 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/ |
D | nsos_adapt.c | 130 *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/ |
D | zperf_common.c | 194 if (proto == IPPROTO_TCP && tcp_nodelay && in zperf_prepare_upload_sock() 195 zsock_setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, in zperf_prepare_upload_sock()
|
D | zperf_tcp_uploader.c | 137 IPPROTO_TCP); in zperf_tcp_upload() 163 IPPROTO_TCP); in tcp_upload_async_work()
|
D | zperf_tcp_receiver.c | 292 IPPROTO_TCP); in zperf_tcp_receiver_init() 338 IPPROTO_TCP); in zperf_tcp_receiver_init()
|
/Zephyr-latest/samples/net/sockets/echo_async/src/ |
D | socket_echo.c | 136 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/ |
D | socket_echo_select.c | 118 serv4 = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); 133 serv6 = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP);
|
/Zephyr-latest/samples/net/sockets/echo/src/ |
D | socket_echo.c | 39 serv = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP); in main()
|
/Zephyr-latest/subsys/net/ip/ |
D | tcp_private.h | 70 IPPROTO_TCP, \ 90 IPPROTO_TCP, \ 108 IPPROTO_TCP, \
|
D | ipv4.c | 141 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/ |
D | socket_helpers.h | 103 *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/ |
D | main.c | 398 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/ |
D | socket_dumb_http.c | 65 serv = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in main()
|
/Zephyr-latest/tests/posix/headers/src/ |
D | netinet_in_h.c | 72 zexpect_not_equal(-1, IPPROTO_TCP); in ZTEST()
|
/Zephyr-latest/subsys/net/lib/sockets/ |
D | getaddrinfo.c | 101 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/ |
D | main.c | 302 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/ |
D | sockets.c | 47 hints.ai_protocol = IPPROTO_TCP; in tagoio_connect()
|
/Zephyr-latest/tests/net/lib/http_server/crime/src/ |
D | main.c | 67 int proto = IPPROTO_TCP; in test_crime()
|
/Zephyr-latest/samples/subsys/modbus/tcp_gateway/src/ |
D | main.c | 102 serv = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in main()
|
/Zephyr-latest/drivers/wifi/esp_at/ |
D | esp_offload.c | 59 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()
|
D | esp.h | 53 #define ESP_PROTO_PASSIVE(proto) (proto == IPPROTO_TCP) 56 (proto == IPPROTO_TCP || proto == IPPROTO_UDP)
|
/Zephyr-latest/samples/drivers/video/tcpserversink/src/ |
D | main.c | 65 sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in main()
|
/Zephyr-latest/subsys/net/lib/mqtt/ |
D | mqtt_transport_socket_tcp.c | 27 IPPROTO_TCP); in mqtt_client_tcp_connect()
|