/Zephyr-Core-3.6.0/samples/net/mdns_responder/src/ |
D | service.c | 56 &((struct sockaddr_in *)&server_addr)->sin_port); in service() 71 net_sin(&server_addr)->sin_port = sys_cpu_to_be16(DEFAULT_PORT); in service() 97 portp = &net_sin(&server_addr)->sin_port; in service()
|
/Zephyr-Core-3.6.0/tests/net/socket/ |
D | socket_helpers.h | 70 sockaddr->sin_port = htons(port); in prepare_sock_udp_v4() 107 sockaddr->sin_port = htons(port); in prepare_sock_tcp_v4() 144 sockaddr->sin_port = htons(port); in prepare_sock_tls_v4() 182 sockaddr->sin_port = htons(port); in prepare_sock_dtls_v4()
|
/Zephyr-Core-3.6.0/subsys/net/lib/shell/ |
D | tcp.c | 57 net_sin(myaddr)->sin_port = 0U; /* let the IP stack to select */ in get_my_ipv4_addr() 71 ntohs(net_sin(myaddr)->sin_port)); in print_connect_info() 74 ntohs(net_sin(addr)->sin_port)); in print_connect_info() 142 net_sin(&addr)->sin_port = htons(port); in tcp_connect() 157 net_sin(&addr)->sin_port = htons(port); in tcp_connect()
|
D | net_shell.c | 103 ntohs(net_sin_ptr(&context->local)->sin_port)); in get_addresses() 117 ntohs(net_sin(&context->remote)->sin_port)); in get_addresses()
|
D | udp.c | 111 net_sin(&addr)->sin_port = htons(port); in cmd_net_udp_bind() 238 net_sin(&addr)->sin_port = htons(port); in cmd_net_udp_send()
|
D | conn.c | 85 ntohs(net_sin(&conn->local_addr)->sin_port)); in conn_handler_cb() 89 ntohs(net_sin(&conn->remote_addr)->sin_port)); in conn_handler_cb()
|
/Zephyr-Core-3.6.0/tests/net/utils/src/ |
D | main.c | 440 .sin_port = htons(80), in ZTEST() 455 .sin_port = 0, in ZTEST() 470 .sin_port = 0, in ZTEST() 485 .sin_port = 0, in ZTEST() 500 .sin_port = htons(65535), in ZTEST() 525 .sin_port = 0, in ZTEST() 555 .sin_port = 0, in ZTEST() 811 zassert_true(net_sin(&addr)->sin_port == in ZTEST() 812 parse_ipv4_entries[i].result.sin_port, in ZTEST()
|
/Zephyr-Core-3.6.0/subsys/net/lib/sockets/ |
D | getnameinfo.c | 28 snprintk(serv, servlen, "%hu", ntohs(a->sin_port)); in zsock_getnameinfo()
|
D | getaddrinfo.c | 86 net_sin(&ai->_ai_addr)->sin_port = state->port; in dns_resolve_cb() 158 addr->sin_port = htons(port); in getaddrinfo_null_host() 256 net_sin(ai_addr)->sin_port = htons(port); in z_impl_z_zsock_getaddrinfo_internal() 373 addr->sin_port = htons(port); in try_resolve_literal_addr()
|
/Zephyr-Core-3.6.0/subsys/net/lib/zperf/ |
D | zperf_session.c | 44 ptr->port == addr4->sin_port && in get_session() 75 active->port = addr4->sin_port; in get_session()
|
/Zephyr-Core-3.6.0/tests/net/socket/tls_ext/src/ |
D | main.c | 177 addrstr, ntohs(sa.sin_port), client_fd); in server_thread_fn() 277 sa.sin_port = htons(PORT); in test_common() 291 addrstr, ntohs(sa.sin_port), server_fd); in test_common() 365 addrstr, ntohs(sa.sin_port), client_fd); in test_common()
|
/Zephyr-Core-3.6.0/samples/net/sockets/tcp/src/ |
D | main.c | 57 sin.sin_port = htons(UDP_PORT); in udp()
|
/Zephyr-Core-3.6.0/subsys/net/ip/ |
D | connection.c | 211 if (net_sin(&conn->local_addr)->sin_port != in conn_find_handler() 251 if (net_sin(&conn->remote_addr)->sin_port != in conn_find_handler() 371 net_sin(&conn->remote_addr)->sin_port = htons(remote_port); in net_conn_register() 376 net_sin(&conn->local_addr)->sin_port = htons(local_port); in net_conn_register() 752 if (net_sin(&conn->remote_addr)->sin_port && in net_conn_input() 753 net_sin(&conn->remote_addr)->sin_port != src_port) { in net_conn_input() 757 if (net_sin(&conn->local_addr)->sin_port && in net_conn_input() 758 net_sin(&conn->local_addr)->sin_port != dst_port) { in net_conn_input()
|
D | net_context.c | 175 contexts[i].local)->sin_port == local_port)) { in check_used_port() 502 addr->sin_port = in net_context_get() 505 if (!addr->sin_port) { in net_context_get() 656 addr4.sin_port = in bind_default() 892 if (addr4->sin_port) { in net_context_bind() 895 addr4->sin_port, in net_context_bind() 901 ntohs(addr4->sin_port)); in net_context_bind() 907 net_sin_ptr(&context->local)->sin_port = in net_context_bind() 908 addr4->sin_port; in net_context_bind() 911 addr4->sin_port = in net_context_bind() [all …]
|
/Zephyr-Core-3.6.0/subsys/net/lib/capture/ |
D | capture.c | 408 if (net_sin(&ctx->peer)->sin_port == 0) { in net_capture_setup() 409 net_sin(&ctx->peer)->sin_port = htons(DEFAULT_PORT); in net_capture_setup() 412 if (net_sin(&ctx->local)->sin_port == 0) { in net_capture_setup() 413 net_sin(&ctx->local)->sin_port = htons(DEFAULT_PORT); in net_capture_setup() 628 (void)net_udp_create(ip, net_sin(&ctx->local)->sin_port, in capture_send() 629 net_sin(&ctx->peer)->sin_port); in capture_send()
|
/Zephyr-Core-3.6.0/tests/posix/headers/src/ |
D | netinet_in_h.c | 30 zassert_not_equal(-1, offsetof(struct sockaddr_in, sin_port)); in ZTEST()
|
/Zephyr-Core-3.6.0/samples/net/sockets/sntp_client/src/ |
D | main.c | 33 addr.sin_port = htons(SNTP_PORT); in main()
|
/Zephyr-Core-3.6.0/subsys/logging/backends/ |
D | log_backend_net.c | 79 local_addr4.sin_port = 0U; in do_net_init() 225 net_sin(&server_addr)->sin_port = htons(514); in log_backend_net_set_addr()
|
/Zephyr-Core-3.6.0/drivers/modem/ |
D | modem_context.c | 69 *port = ntohs(net_sin(addr)->sin_port); in modem_context_get_addr_port()
|
/Zephyr-Core-3.6.0/tests/net/socket/misc/src/ |
D | main.c | 304 .sin_port = htons(DST_PORT), in test_ipv4_so_bindtodevice() 314 peer_addr.sin_port = htons(DST_PORT); in test_ipv4_so_bindtodevice() 367 net_sin(&srv_addr)->sin_port = htons(DST_PORT); in test_getpeername() 456 net_sin(&srv_addr)->sin_port = htons(DST_PORT); in test_getsockname_tcp() 525 net_sin(&srv_addr)->sin_port = htons(DST_PORT); in test_getsockname_udp() 592 net_sin(&srv_addr4)->sin_port = htons(MAPPING_PORT); in test_ipv4_mapped_to_ipv6_disabled() 641 net_sin(&srv_addr4)->sin_port = htons(MAPPING_PORT); in test_ipv4_mapped_to_ipv6_enabled() 725 net_sin(&srv_addr)->sin_port = htons(MAPPING_PORT); in test_ipv4_mapped_to_ipv6_server()
|
/Zephyr-Core-3.6.0/tests/net/socket/getnameinfo/src/ |
D | main.c | 33 saddr.sin_port = htons(1234); in ZTEST_USER()
|
/Zephyr-Core-3.6.0/samples/net/sockets/http_get/src/ |
D | http_get.c | 55 ((struct sockaddr_in *)ai->ai_addr)->sin_port); in dump_addrinfo()
|
/Zephyr-Core-3.6.0/samples/net/sockets/dumb_http_server/src/ |
D | socket_dumb_http.c | 70 bind_addr.sin_port = htons(BIND_PORT); in main()
|
/Zephyr-Core-3.6.0/samples/net/cellular_modem/src/ |
D | main.c | 150 net_sin(ai_addr)->sin_port = htons(SAMPLE_TEST_ENDPOINT_UDP_ECHO_PORT); in sample_echo_packet() 228 net_sin(ai_addr)->sin_port = htons(SAMPLE_TEST_ENDPOINT_UDP_RECEIVE_PORT); in sample_transmit_packets()
|
/Zephyr-Core-3.6.0/samples/net/sockets/echo_client/src/ |
D | tcp.c | 113 proxy4->sin_port = htons(SOCKS5_PROXY_PORT); in start_tcp_proto() 242 addr4.sin_port = htons(PEER_PORT); in start_tcp()
|