Home
last modified time | relevance | path

Searched refs:sin6_port (Results 1 – 25 of 80) sorted by relevance

1234

/Zephyr-latest/samples/net/mdns_responder/src/
Dservice.c52 &((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/
Dsocket_helpers.h89 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/
Dnet_shell.c93 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()
Dconn.c75 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()
Dtcp.c44 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()
Dudp.c108 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/
Dmain.c598 .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/
Dzperf_session.c54 ptr->port == addr6->sin6_port && in get_session()
80 active->port = addr6->sin6_port; in get_session()
Dzperf_tcp_receiver.c253 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/
Dmain.c121 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/
Dmain.c36 .sin6_port = htons(coap_port) }; in join_coap_multicast_group()
/Zephyr-latest/subsys/net/lib/mqtt_sn/
Dmqtt_sn_transport_udp.c75 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/
Dmain.c362 .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/
Dsiwx91x_wifi_socket.c53 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/
Dsocket_echo.c35 .sin6_port = htons(BIND_PORT), in main()
/Zephyr-latest/drivers/modem/
Dmodem_context.c66 *port = ntohs(net_sin6(addr)->sin6_port); in modem_context_get_addr_port()
/Zephyr-latest/tests/net/socket/getnameinfo/src/
Dmain.c63 saddr.sin6_port = htons(4321); in ZTEST_USER()
/Zephyr-latest/tests/net/context/src/
Dmain.c187 .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/
Dnetinet_in_h.c35 zexpect_not_equal(-1, offsetof(struct sockaddr_in6, sin6_port)); in ZTEST()
/Zephyr-latest/samples/net/sockets/echo_client/src/
Dtcp.c125 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/
Dnet_context.c576 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/
Dmain.c119 addr6->sin6_port = htons(CONFIG_NET_SAMPLE_COAP_SERVER_PORT); in main()
/Zephyr-latest/drivers/wifi/simplelink/
Dsimplelink_sockets.c363 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/
Dnsos.h66 uint16_t sin6_port; /* Port number */ member
/Zephyr-latest/subsys/net/lib/ptp/
Dtransport.c151 .sin6_port = htons(port) in transport_udp_ipv6_open()
205 net_sin6(&m_addr)->sin6_port = htons(port); in transport_send()

1234