Home
last modified time | relevance | path

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

123

/Zephyr-Core-2.7.6/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-Core-2.7.6/tests/net/utils/src/
Dmain.c583 .sin6_port = htons(80), in test_addr_parse()
601 .sin6_port = 0, in test_addr_parse()
619 .sin6_port = 0, in test_addr_parse()
637 .sin6_port = 65535, in test_addr_parse()
656 .sin6_port = 0, in test_addr_parse()
675 .sin6_port = 0, in test_addr_parse()
723 .sin6_port = 0, in test_addr_parse()
741 .sin6_port = htons(80), in test_addr_parse()
775 .sin6_port = 0, in test_addr_parse()
840 zassert_true(net_sin6(&addr)->sin6_port == in test_addr_parse()
[all …]
/Zephyr-Core-2.7.6/samples/bluetooth/ipsp/src/
Dmain.c93 my_addr6.sin6_port = htons(MY_PORT); in get_context()
105 ntohs(my_addr6.sin6_port), ret); in get_context()
121 ntohs(my_addr6.sin6_port), ret); in get_context()
172 net_sin6(dst_addr)->sin6_port = udp_hdr->src_port; in set_dst_addr()
/Zephyr-Core-2.7.6/tests/net/socket/
Dsocket_helpers.h83 sockaddr->sin6_port = htons(port); in prepare_sock_udp_v6()
119 sockaddr->sin6_port = htons(port); in prepare_sock_tcp_v6()
157 sockaddr->sin6_port = htons(port); in prepare_sock_tls_v6()
195 sockaddr->sin6_port = htons(port); in prepare_sock_dtls_v6()
/Zephyr-Core-2.7.6/tests/net/socket/getaddrinfo/src/
Dmain.c114 ntohs(addr_v6.sin6_port)); in process_dns()
203 NET_DBG("v6: [%s]:%d", log_strdup(addr_str), ntohs(addr_v6.sin6_port)); in test_getaddrinfo_setup()
350 zassert_equal(saddr->sin6_port, htons(65534), ""); in test_getaddrinfo_num_ipv6()
381 zassert_equal(saddr->sin6_port, htons(65534), ""); in test_getaddrinfo_num_ipv6()
413 zassert_equal(saddr->sin6_port, htons(65534), ""); in test_getaddrinfo_num_ipv6()
439 zassert_equal(saddr->sin6_port, htons(65534), ""); in test_getaddrinfo_num_ipv6()
464 zassert_equal(saddr->sin6_port, htons(65534), ""); in test_getaddrinfo_num_ipv6()
490 zassert_equal(saddr->sin6_port, htons(65534), ""); in test_getaddrinfo_num_ipv6()
516 zassert_equal(saddr->sin6_port, htons(65534), ""); in test_getaddrinfo_num_ipv6()
630 zassert_equal(saddr6->sin6_port, htons(80), ""); in test_getaddrinfo_null_host()
[all …]
/Zephyr-Core-2.7.6/subsys/net/ip/
Dnet_context.c295 addr6->sin6_port = find_available_port(&contexts[i], in net_context_get()
298 if (!addr6->sin6_port) { in net_context_get()
441 addr6.sin6_port = in bind_default()
600 if (addr6->sin6_port) { in net_context_bind()
601 ret = check_used_port(AF_INET6, addr6->sin6_port, in net_context_bind()
604 net_sin6_ptr(&context->local)->sin6_port = in net_context_bind()
605 addr6->sin6_port; in net_context_bind()
608 ntohs(addr6->sin6_port)); in net_context_bind()
612 addr6->sin6_port = in net_context_bind()
613 net_sin6_ptr(&context->local)->sin6_port; in net_context_bind()
[all …]
/Zephyr-Core-2.7.6/tests/net/checksum_offload/src/
Dmain.c471 .sin6_port = htons(TEST_PORT), in test_tx_chksum_offload_disabled_test_v6()
475 .sin6_port = 0, in test_tx_chksum_offload_disabled_test_v6()
573 .sin6_port = htons(TEST_PORT), in test_tx_chksum_offload_enabled_test_v6()
577 .sin6_port = 0, in test_tx_chksum_offload_enabled_test_v6()
718 .sin6_port = htons(TEST_PORT), in test_rx_chksum_offload_disabled_test_v6()
722 .sin6_port = 0, in test_rx_chksum_offload_disabled_test_v6()
830 .sin6_port = htons(TEST_PORT), in test_rx_chksum_offload_enabled_test_v6()
834 .sin6_port = 0, in test_rx_chksum_offload_enabled_test_v6()
/Zephyr-Core-2.7.6/tests/net/context/src/
Dmain.c187 .sin6_port = 0, in test_net_ctx_bind_fail()
203 .sin6_port = htons(MY_PORT), in test_net_ctx_bind_uni_success_v6()
235 .sin6_port = htons(MY_PORT), in test_net_ctx_bind_mcast_success()
288 .sin6_port = htons(PEER_PORT), in test_net_ctx_connect_v6()
419 .sin6_port = htons(PEER_PORT), in test_net_ctx_sendto_v6()
508 .sin6_port = htons(PEER_PORT), in net_ctx_sendto_v6_wrong_src()
/Zephyr-Core-2.7.6/samples/net/sockets/sntp_client/src/
Dmain.c60 addr6.sin6_port = htons(SNTP_PORT); in main()
/Zephyr-Core-2.7.6/samples/net/zperf/src/
Dzperf_shell.c61 .sin6_port = htons(MY_SRC_PORT),
66 .sin6_port = htons(DEF_PORT),
119 addr->sin6_port = htons(strtoul(port, NULL, 10)); in parse_ipv6_addr()
120 if (!addr->sin6_port) { in parse_ipv6_addr()
478 ipv6->sin6_port = htons(port); in setup_contexts()
505 ntohs(ipv6->sin6_port), ret); in setup_contexts()
868 in6_addr_my.sin6_port = htons(port); in shell_cmd_upload2()
Dzperf_tcp_receiver.c237 in6_addr_my->sin6_port = htons(port); in zperf_tcp_receiver_init()
247 ntohs(in6_addr_my->sin6_port), ret); in zperf_tcp_receiver_init()
Dzperf_udp_receiver.c43 net_sin6(dst_addr)->sin6_port = udp_hdr->src_port; in set_dst_addr()
391 in6_addr_my->sin6_port = htons(port); in zperf_udp_receiver_init()
400 ntohs(in6_addr_my->sin6_port), in zperf_udp_receiver_init()
/Zephyr-Core-2.7.6/drivers/modem/
Dmodem_context.c49 *port = ntohs(net_sin6(addr)->sin6_port); in modem_context_get_addr_port()
Dwncm14a2a.c484 src_port = ntohs(net_sin6(&sock->src)->sin6_port); in pkt_setup_ip_data()
485 dst_port = ntohs(net_sin6(&sock->dst)->sin6_port); in pkt_setup_ip_data()
1569 net_sin6(&sock->src)->sin6_port = net_sin6(addr)->sin6_port; in offload_bind()
1630 dst_port = ntohs(net_sin6(addr)->sin6_port); in offload_connect()
1631 net_sin6(&sock->dst)->sin6_port = dst_port; in offload_connect()
/Zephyr-Core-2.7.6/tests/net/socket/getnameinfo/src/
Dmain.c63 saddr.sin6_port = htons(4321); in test_getnameinfo_ipv6()
/Zephyr-Core-2.7.6/samples/net/sockets/echo_client/src/
Dtcp.c122 proxy6->sin6_port = htons(SOCKS5_PROXY_PORT); in start_tcp_proto()
229 addr6.sin6_port = htons(PEER_PORT); in start_tcp()
/Zephyr-Core-2.7.6/subsys/net/lib/dns/
Dresolve.c172 if (net_sin6(addr)->sin6_port == 0U) { in dns_postprocess_server()
175 net_sin6(addr)->sin6_port = htons(5353); in dns_postprocess_server()
178 net_sin6(addr)->sin6_port = htons(5355); in dns_postprocess_server()
180 net_sin6(addr)->sin6_port = htons(53); in dns_postprocess_server()
194 .sin6_port = 0, in dns_resolve_init_locked()
261 local_addr6.sin6_port = htons(5353); in dns_resolve_init_locked()
315 local_addr6.sin6_port = 0; in dns_resolve_init_locked()
/Zephyr-Core-2.7.6/drivers/wifi/simplelink/
Dsimplelink_sockets.c333 sl_addr_in6->sin6_port = z_sockaddr_in6->sin6_port; in translate_z_to_sl_addrs()
373 z_sockaddr_in6->sin6_port = sl_addr_in6->sin6_port; in translate_sl_to_z_addr()
1021 net_sin6(ai_addr)->sin6_port = sl_addr->sin6_port; in set_addr_info()
/Zephyr-Core-2.7.6/tests/net/socket/misc/src/
Dmain.c314 .sin6_port = htons(DST_PORT), in test_ipv6_so_bindtodevice()
324 peer_addr.sin6_port = htons(DST_PORT); in test_ipv6_so_bindtodevice()
/Zephyr-Core-2.7.6/tests/net/tx_timestamp/src/
Dmain.c432 .sin6_port = htons(TEST_PORT), in send_some_data()
436 .sin6_port = 0, in send_some_data()
/Zephyr-Core-2.7.6/subsys/net/lib/sockets/
Dgetaddrinfo.c139 addr6->sin6_port = htons(port); in getaddrinfo_null_host()
388 addr->sin6_port = htons(port); in try_resolve_literal_addr()
/Zephyr-Core-2.7.6/samples/net/mqtt_publisher/src/
Dmain.c271 broker6->sin6_port = htons(SERVER_PORT); in broker_init()
278 proxy6->sin6_port = htons(SOCKS5_PROXY_PORT); in broker_init()
/Zephyr-Core-2.7.6/samples/net/sockets/echo_async/src/
Dsocket_echo.c126 .sin6_port = htons(BIND_PORT), in main()
/Zephyr-Core-2.7.6/samples/net/sockets/echo_async_select/src/
Dsocket_echo_select.c111 .sin6_port = htons(BIND_PORT),
/Zephyr-Core-2.7.6/subsys/net/lib/socks/
Dsocks.c149 cmd_req.ipv6_addr.port = d6->sin6_port; in socks5_tcp_connect()

123