| /Zephyr-latest/samples/net/mdns_responder/src/ |
| D | service.c | 52 &((struct sockaddr_in6 *)&server_addr)->sin6_port); in service() 67 net_sin6(&server_addr)->sin6_port = sys_cpu_to_be16(DEFAULT_PORT); in service() 94 portp = &net_sin6(&server_addr)->sin6_port; in service()
|
| /Zephyr-latest/tests/net/socket/ |
| D | socket_helpers.h | 89 sockaddr->sin6_port = htons(port); in prepare_sock_udp_v6() 125 sockaddr->sin6_port = htons(port); in prepare_sock_tcp_v6() 163 sockaddr->sin6_port = htons(port); in prepare_sock_tls_v6() 201 sockaddr->sin6_port = htons(port); in prepare_sock_dtls_v6()
|
| /Zephyr-latest/subsys/net/lib/shell/ |
| D | net_shell.c | 93 ntohs(net_sin6_ptr(&context->local)->sin6_port)); in get_addresses() 97 ntohs(net_sin6(&context->remote)->sin6_port)); in get_addresses() 112 ntohs(net_sin6(&context->remote)->sin6_port)); in get_addresses()
|
| D | conn.c | 75 ntohs(net_sin6(&conn->local_addr)->sin6_port)); in conn_handler_cb() 79 ntohs(net_sin6(&conn->remote_addr)->sin6_port)); in conn_handler_cb() 126 ntohs(net_sin6_ptr(&conn->context->local)->sin6_port), in tcp_cb() 127 ntohs(net_sin6(&conn->context->remote)->sin6_port), in tcp_cb()
|
| D | tcp.c | 44 net_sin6(myaddr)->sin6_port = 0U; /* let the IP stack to select */ in get_my_ipv6_addr() 85 ntohs(net_sin6(myaddr)->sin6_port)); in print_connect_info() 88 ntohs(net_sin6(addr)->sin6_port)); in print_connect_info() 120 net_sin6(&addr)->sin6_port = htons(port); in tcp_connect() 163 net_sin6(&addr)->sin6_port = htons(port); in tcp_connect()
|
| D | udp.c | 108 net_sin6(&addr)->sin6_port = htons(port); in cmd_net_udp_bind() 235 net_sin6(&addr)->sin6_port = htons(port); in cmd_net_udp_send()
|
| /Zephyr-latest/tests/net/utils/src/ |
| D | main.c | 598 .sin6_port = htons(80), in ZTEST() 616 .sin6_port = 0, in ZTEST() 634 .sin6_port = 0, in ZTEST() 652 .sin6_port = 65535, in ZTEST() 671 .sin6_port = 0, in ZTEST() 690 .sin6_port = 0, in ZTEST() 738 .sin6_port = 0, in ZTEST() 756 .sin6_port = htons(80), in ZTEST() 790 .sin6_port = 0, in ZTEST() 855 zassert_true(net_sin6(&addr)->sin6_port == in ZTEST() [all …]
|
| /Zephyr-latest/subsys/net/lib/zperf/ |
| D | zperf_session.c | 54 ptr->port == addr6->sin6_port && in get_session() 80 active->port = addr6->sin6_port; in get_session()
|
| D | zperf_tcp_receiver.c | 253 port = ntohs(net_sin6(address)->sin6_port); in tcp_bind_listen_connection() 365 in6_addr->sin6_port = htons(tcp_server_port); in zperf_tcp_receiver_init()
|
| /Zephyr-latest/tests/net/socket/getaddrinfo/src/ |
| D | main.c | 121 ntohs(addr_v6.sin6_port)); in process_dns() 210 NET_DBG("v6: [%s]:%d", addr_str, ntohs(addr_v6.sin6_port)); in test_getaddrinfo_setup() 356 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST() 387 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST() 419 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST() 445 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST() 470 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST() 496 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST() 522 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST() 636 zassert_equal(saddr6->sin6_port, htons(80), ""); in ZTEST() [all …]
|
| /Zephyr-latest/samples/net/sockets/coap_server/src/ |
| D | main.c | 36 .sin6_port = htons(coap_port) }; in join_coap_multicast_group()
|
| /Zephyr-latest/subsys/net/lib/mqtt_sn/ |
| D | mqtt_sn_transport_udp.c | 75 port = ntohs(((struct sockaddr_in6 *)&udp->bcaddr)->sin6_port); in tp_udp_init() 98 ((struct sockaddr_in6 *)&addrm)->sin6_port = in tp_udp_init() 99 ((struct sockaddr_in6 *)&udp->bcaddr)->sin6_port; in tp_udp_init()
|
| /Zephyr-latest/tests/net/socket/misc/src/ |
| D | main.c | 362 .sin6_port = htons(DST_PORT), in test_ipv6_so_bindtodevice() 368 .sin6_port = htons(DST_PORT), in test_ipv6_so_bindtodevice() 374 .sin6_port = htons(DST_PORT), in test_ipv6_so_bindtodevice() 407 net_sin6(&srv_addr)->sin6_port = htons(DST_PORT); in test_getpeername() 496 net_sin6(&srv_addr)->sin6_port = htons(DST_PORT); in test_getsockname_tcp() 565 net_sin6(&srv_addr)->sin6_port = htons(DST_PORT); in test_getsockname_udp() 634 net_sin6(&srv_addr6)->sin6_port = htons(MAPPING_PORT); in test_ipv4_mapped_to_ipv6_disabled() 683 net_sin6(&srv_addr6)->sin6_port = htons(MAPPING_PORT); in test_ipv4_mapped_to_ipv6_enabled() 767 net_sin6(&connect_addr6)->sin6_port = htons(MAPPING_PORT); in test_ipv4_mapped_to_ipv6_server() 779 net_sin6(&srv_addr6)->sin6_port = htons(MAPPING_PORT); in test_ipv4_mapped_to_ipv6_server()
|
| /Zephyr-latest/drivers/wifi/siwx91x/ |
| D | siwx91x_wifi_socket.c | 53 out6->sin6_port = ntohs(in6->sin6_port); in siwx91x_sockaddr_swap_bytes() 55 out6->sin6_port = ntohs(in6->sin6_port); in siwx91x_sockaddr_swap_bytes()
|
| /Zephyr-latest/samples/net/sockets/echo/src/ |
| D | socket_echo.c | 35 .sin6_port = htons(BIND_PORT), in main()
|
| /Zephyr-latest/drivers/modem/ |
| D | modem_context.c | 66 *port = ntohs(net_sin6(addr)->sin6_port); in modem_context_get_addr_port()
|
| /Zephyr-latest/tests/net/socket/getnameinfo/src/ |
| D | main.c | 63 saddr.sin6_port = htons(4321); in ZTEST_USER()
|
| /Zephyr-latest/tests/net/context/src/ |
| D | main.c | 187 .sin6_port = 0, in net_ctx_bind_fail() 203 .sin6_port = htons(MY_PORT), in net_ctx_bind_uni_success_v6() 235 .sin6_port = htons(MY_PORT), in net_ctx_bind_mcast_success() 282 .sin6_port = htons(PEER_PORT), in net_ctx_connect_v6() 459 .sin6_port = htons(PEER_PORT), in net_ctx_sendto_v6() 558 .sin6_port = htons(PEER_PORT), in net_ctx_sendto_v6_wrong_src()
|
| /Zephyr-latest/tests/posix/headers/src/ |
| D | netinet_in_h.c | 35 zexpect_not_equal(-1, offsetof(struct sockaddr_in6, sin6_port)); in ZTEST()
|
| /Zephyr-latest/samples/net/sockets/echo_client/src/ |
| D | tcp.c | 125 proxy6->sin6_port = htons(SOCKS5_PROXY_PORT); in start_tcp_proto() 241 addr6.sin6_port = htons(PEER_PORT); in start_tcp()
|
| /Zephyr-latest/subsys/net/ip/ |
| D | net_context.c | 576 addr6->sin6_port = in net_context_get() 579 if (!addr6->sin6_port) { in net_context_get() 727 addr6.sin6_port = in bind_default() 934 if (addr6->sin6_port) { in net_context_bind() 936 addr6->sin6_port, addr); in net_context_bind() 941 addr6->sin6_port = in net_context_bind() 942 net_sin6_ptr(&context->local)->sin6_port; in net_context_bind() 946 addr6->sin6_port, addr); in net_context_bind() 958 ntohs(addr6->sin6_port), in net_context_bind() 1381 addr6->sin6_port = net_sin6(addr)->sin6_port; in net_context_connect() [all …]
|
| /Zephyr-latest/samples/net/sockets/coap_download/src/ |
| D | main.c | 119 addr6->sin6_port = htons(CONFIG_NET_SAMPLE_COAP_SERVER_PORT); in main()
|
| /Zephyr-latest/drivers/wifi/simplelink/ |
| D | simplelink_sockets.c | 363 sl_addr_in6->sin6_port = z_sockaddr_in6->sin6_port; in translate_z_to_sl_addrs() 403 z_sockaddr_in6->sin6_port = sl_addr_in6->sin6_port; in translate_sl_to_z_addr() 1044 net_sin6(ai_addr)->sin6_port = sl_addr->sin6_port; in set_addr_info()
|
| /Zephyr-latest/drivers/net/ |
| D | nsos.h | 66 uint16_t sin6_port; /* Port number */ member
|
| /Zephyr-latest/subsys/net/lib/ptp/ |
| D | transport.c | 151 .sin6_port = htons(port) in transport_udp_ipv6_open() 205 net_sin6(&m_addr)->sin6_port = htons(port); in transport_send()
|