/Zephyr-Core-3.6.0/subsys/net/lib/shell/ |
D | tcp.c | 40 &net_sin6(myaddr)->sin6_addr); in get_my_ipv6_addr() 42 memcpy(&net_sin6(myaddr)->sin6_addr, my6addr, sizeof(struct in6_addr)); in get_my_ipv6_addr() 44 net_sin6(myaddr)->sin6_port = 0U; /* let the IP stack to select */ in get_my_ipv6_addr() 84 net_sprint_ipv6_addr(&net_sin6(myaddr)->sin6_addr), in print_connect_info() 85 ntohs(net_sin6(myaddr)->sin6_port)); in print_connect_info() 87 net_sprint_ipv6_addr(&net_sin6(addr)->sin6_addr), in print_connect_info() 88 ntohs(net_sin6(addr)->sin6_port)); in print_connect_info() 114 &net_sin6(&addr)->sin6_addr); in tcp_connect() 120 net_sin6(&addr)->sin6_port = htons(port); in tcp_connect() 123 nbr = net_ipv6_nbr_lookup(NULL, &net_sin6(&addr)->sin6_addr); in tcp_connect() [all …]
|
D | net_shell.c | 96 &net_sin6(&context->remote)->sin6_addr), in get_addresses() 97 ntohs(net_sin6(&context->remote)->sin6_port)); in get_addresses() 108 net_ipv6_addr_is_v4_mapped(&net_sin6(&context->remote)->sin6_addr)) { in get_addresses() 111 &net_sin6(&context->remote)->sin6_addr), in get_addresses() 112 ntohs(net_sin6(&context->remote)->sin6_port)); in get_addresses()
|
D | conn.c | 74 &net_sin6(&conn->local_addr)->sin6_addr), in conn_handler_cb() 75 ntohs(net_sin6(&conn->local_addr)->sin6_port)); in conn_handler_cb() 78 &net_sin6(&conn->remote_addr)->sin6_addr), in conn_handler_cb() 79 ntohs(net_sin6(&conn->remote_addr)->sin6_port)); in conn_handler_cb() 127 ntohs(net_sin6(&conn->context->remote)->sin6_port), in tcp_cb()
|
D | dns.c | 36 &net_sin6(&info->ai_addr)->sin6_addr, in dns_result_cb() 81 &net_sin6(&ctx->servers[i].dns_server)-> in print_dns_info() 83 ntohs(net_sin6( in print_dns_info()
|
D | udp.c | 105 net_sin6(&addr)->sin6_port = htons(port); in cmd_net_udp_bind() 109 &net_sin6(&addr)->sin6_addr); in cmd_net_udp_bind() 232 net_sin6(&addr)->sin6_port = htons(port); in cmd_net_udp_send() 236 &net_sin6(&addr)->sin6_addr); in cmd_net_udp_send()
|
D | capture.c | 25 net_sprint_ipv6_addr(&net_sin6(addr)->sin6_addr), in get_address_str() 26 ntohs(net_sin6(addr)->sin6_port)); in get_address_str()
|
D | ping.c | 324 iface = net_if_ipv6_select_src_iface(&net_sin6(target)->sin6_addr); in ping_select_iface() 329 nbr = net_ipv6_nbr_lookup(NULL, &net_sin6(target)->sin6_addr); in ping_select_iface() 336 route = net_route_lookup(NULL, &net_sin6(target)->sin6_addr); in ping_select_iface()
|
/Zephyr-Core-3.6.0/samples/net/mdns_responder/src/ |
D | service.c | 65 net_sin6(&server_addr)->sin6_family = AF_INET6; in service() 66 net_sin6(&server_addr)->sin6_addr = in6addr_any; in service() 67 net_sin6(&server_addr)->sin6_port = sys_cpu_to_be16(DEFAULT_PORT); in service() 93 addrp = &net_sin6(&server_addr)->sin6_addr; in service() 94 portp = &net_sin6(&server_addr)->sin6_port; in service()
|
/Zephyr-Core-3.6.0/samples/net/sockets/echo_server/src/ |
D | tunnel.c | 56 &net_sin6(&addr)->sin6_addr, in setup_iface() 106 &net_sin6(&peer)->sin6_addr); in init_tunnel() 110 &net_sin6(&peer)->sin6_addr); in init_tunnel()
|
/Zephyr-Core-3.6.0/tests/net/virtual/src/ |
D | main.c | 465 &net_sin6(&virtual_addr)->sin6_addr, in test_address_setup() 470 &net_sin6(&virtual_addr)->sin6_addr)); in test_address_setup() 474 net_sin6(&virtual_addr)->sin6_port = htons(4242); in test_address_setup() 706 &net_sin6(&peer_addr)->sin6_addr); in ZTEST() 756 &net_sin6(&peer_addr)->sin6_addr, in ZTEST() 810 &net_sin6(&peer_addr)->sin6_addr); in ZTEST() 815 &net_sin6(&peer_addr)->sin6_addr); in ZTEST() 852 net_sin6(&dst_addr)->sin6_addr.s6_addr[15] = 2; in ZTEST() 941 net_sin6(&dst_addr)->sin6_addr.s6_addr[15] = 1; in test_virtual_recv_data_from_tunnel() 942 net_sin6(&src_addr)->sin6_addr.s6_addr[15] = remote_ip; in test_virtual_recv_data_from_tunnel() [all …]
|
/Zephyr-Core-3.6.0/drivers/modem/ |
D | modem_context.c | 32 if (net_addr_ntop(AF_INET6, &net_sin6(addr)->sin6_addr, in modem_context_sprint_ip_addr() 66 *port = ntohs(net_sin6(addr)->sin6_port); in modem_context_get_addr_port()
|
D | wncm14a2a.c | 290 return net_addr_ntop(AF_INET6, &net_sin6(addr)->sin6_addr, in wncm14a2a_sprint_ip_addr() 444 src_port = ntohs(net_sin6(&sock->src)->sin6_port); in pkt_setup_ip_data() 445 dst_port = ntohs(net_sin6(&sock->dst)->sin6_port); in pkt_setup_ip_data() 1504 net_ipaddr_copy(&net_sin6(&sock->src)->sin6_addr, in offload_bind() 1505 &net_sin6(addr)->sin6_addr); in offload_bind() 1506 net_sin6(&sock->src)->sin6_port = net_sin6(addr)->sin6_port; in offload_bind() 1565 net_ipaddr_copy(&net_sin6(&sock->dst)->sin6_addr, in offload_connect() 1566 &net_sin6(addr)->sin6_addr); in offload_connect() 1567 dst_port = ntohs(net_sin6(addr)->sin6_port); in offload_connect() 1568 net_sin6(&sock->dst)->sin6_port = dst_port; in offload_connect()
|
/Zephyr-Core-3.6.0/tests/net/socket/misc/src/ |
D | main.c | 371 net_sin6(&srv_addr)->sin6_port = htons(DST_PORT); in test_getpeername() 373 &net_sin6(&srv_addr)->sin6_addr); in test_getpeername() 460 net_sin6(&srv_addr)->sin6_port = htons(DST_PORT); in test_getsockname_tcp() 462 &net_sin6(&srv_addr)->sin6_addr); in test_getsockname_tcp() 529 net_sin6(&srv_addr)->sin6_port = htons(DST_PORT); in test_getsockname_udp() 531 &net_sin6(&srv_addr)->sin6_addr); in test_getsockname_udp() 598 net_sin6(&srv_addr6)->sin6_port = htons(MAPPING_PORT); in test_ipv4_mapped_to_ipv6_disabled() 600 &net_sin6(&srv_addr6)->sin6_addr); in test_ipv4_mapped_to_ipv6_disabled() 647 net_sin6(&srv_addr6)->sin6_port = htons(MAPPING_PORT); in test_ipv4_mapped_to_ipv6_enabled() 649 &net_sin6(&srv_addr6)->sin6_addr); in test_ipv4_mapped_to_ipv6_enabled() [all …]
|
/Zephyr-Core-3.6.0/subsys/net/ip/ |
D | connection.c | 79 net_sprint_ipv6_addr(&net_sin6(&conn->remote_addr)->sin6_addr)); in conn_register_debug() 95 net_sprint_ipv6_addr(&net_sin6(&conn->local_addr)->sin6_addr)); in conn_register_debug() 189 &net_sin6(local_addr)->sin6_addr, in conn_find_handler() 190 &net_sin6(&conn->local_addr)-> in conn_find_handler() 226 &net_sin6(remote_addr)->sin6_addr, in conn_find_handler() 227 &net_sin6(&conn->remote_addr)-> in conn_find_handler() 307 &net_sin6(remote_addr)-> in net_conn_register() 334 &net_sin6(local_addr)-> in net_conn_register() 468 &net_sin6(addr)->sin6_addr)) { in conn_addr_cmp() 469 if (!net_ipv6_addr_cmp_raw((uint8_t *)&net_sin6(addr)->sin6_addr, in conn_addr_cmp() [all …]
|
D | net_context.c | 195 &net_sin6(local_addr)->sin6_addr))) { in check_used_port() 207 &net_sin6(local_addr)->sin6_addr))) { in check_used_port() 755 &net_sin6(&context->remote)->sin6_addr); in net_context_bind() 1217 memcpy(&addr6->sin6_addr, &net_sin6(addr)->sin6_addr, in net_context_connect() 1220 addr6->sin6_port = net_sin6(addr)->sin6_port; in net_context_connect() 1243 net_sin6(&local_addr)->sin6_family = AF_INET6; in net_context_connect() 1244 net_sin6(&local_addr)->sin6_port = lport = in net_context_connect() 1245 net_sin6((struct sockaddr *)&context->local)->sin6_port; in net_context_connect() 1248 net_ipaddr_copy(&net_sin6(&local_addr)->sin6_addr, in net_context_connect() 1924 addr6 = net_sin6(&context->remote); in context_sendto() [all …]
|
/Zephyr-Core-3.6.0/subsys/net/lib/capture/ |
D | capture.c | 206 ifaddr = net_if_ipv6_addr_add(iface, &net_sin6(addr)->sin6_addr, in setup_iface() 248 ret = net_if_ipv6_addr_rm(iface, &net_sin6(addr)->sin6_addr); in cleanup_iface() 251 net_sprint_ipv6_addr(&net_sin6(addr)->sin6_addr), in cleanup_iface() 310 &net_sin6(&remote)->sin6_addr); in net_capture_setup() 313 &net_sin6(&remote)->sin6_addr); in net_capture_setup() 619 ret = net_ipv6_create(ip, &net_sin6(&ctx->local)->sin6_addr, in capture_send() 620 &net_sin6(&ctx->peer)->sin6_addr); in capture_send()
|
/Zephyr-Core-3.6.0/samples/bluetooth/ipsp/src/ |
D | main.c | 169 net_ipv6_addr_copy_raw((uint8_t *)&net_sin6(dst_addr)->sin6_addr, in set_dst_addr() 171 net_sin6(dst_addr)->sin6_family = AF_INET6; in set_dst_addr() 172 net_sin6(dst_addr)->sin6_port = udp_hdr->src_port; in set_dst_addr()
|
/Zephyr-Core-3.6.0/subsys/net/lib/dns/ |
D | resolve.c | 99 if (net_ipv6_is_addr_mcast(&net_sin6(addr)->sin6_addr) && in server_is_mdns() 100 net_sin6(addr)->sin6_addr.s6_addr[15] == 0xfb) { in server_is_mdns() 122 if (net_ipv6_is_addr_mcast(&net_sin6(addr)->sin6_addr) && in server_is_llmnr() 123 net_sin6(addr)->sin6_addr.s6_addr[15] == 0x03) { in server_is_llmnr() 172 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() 606 addr = (uint8_t *)&net_sin6(&info.ai_addr)-> in dns_validate_msg() 1168 memcpy(net_sin6(&info.ai_addr), net_sin6(&addr), in dns_resolve_name() [all …]
|
/Zephyr-Core-3.6.0/samples/net/sockets/txtime/src/ |
D | main.c | 227 addr = net_if_ipv6_select_src_addr(iface, &net_sin6(peer)->sin6_addr); in get_local_ipv6() 233 memcpy(&net_sin6(local)->sin6_addr, addr, sizeof(*addr)); in get_local_ipv6() 308 net_addr_ntop(AF_INET6, &net_sin6(&local)->sin6_addr, in create_socket() 371 &net_sin6(&peer_data.peer)->sin6_addr); in get_peer_address() 374 &net_sin6(&peer_data.peer)->sin6_addr, addr_str, in get_peer_address()
|
/Zephyr-Core-3.6.0/samples/net/sockets/http_client/src/ |
D | main.c | 50 net_sin6(addr)->sin6_family = AF_INET6; in setup_socket() 51 net_sin6(addr)->sin6_port = htons(port); in setup_socket() 52 inet_pton(family, server, &net_sin6(addr)->sin6_addr); in setup_socket()
|
/Zephyr-Core-3.6.0/samples/net/sockets/websocket_client/src/ |
D | main.c | 86 net_sin6(addr)->sin6_family = AF_INET6; in setup_socket() 87 net_sin6(addr)->sin6_port = htons(port); in setup_socket() 88 inet_pton(family, server, &net_sin6(addr)->sin6_addr); in setup_socket()
|
/Zephyr-Core-3.6.0/subsys/net/lib/zperf/ |
D | zperf_tcp_receiver.c | 255 port = ntohs(net_sin6(address)->sin6_port); in tcp_bind_listen_connection() 344 addr = &net_sin6(&tcp_server_addr)->sin6_addr; in zperf_tcp_receiver_init() 369 memcpy(net_sin6(&sock_addr[SOCK_ID_IPV6_LISTEN]), in6_addr, in zperf_tcp_receiver_init()
|
/Zephyr-Core-3.6.0/samples/net/dns_resolve/src/ |
D | main.c | 70 addr = &net_sin6(&info->ai_addr)->sin6_addr; in dns_result_cb() 119 addr = &net_sin6(&info->ai_addr)->sin6_addr; in mdns_result_cb()
|
/Zephyr-Core-3.6.0/samples/net/cellular_modem/src/ |
D | main.c | 152 net_sin6(ai_addr)->sin6_port = htons(SAMPLE_TEST_ENDPOINT_UDP_ECHO_PORT); in sample_echo_packet() 230 net_sin6(ai_addr)->sin6_port = htons(SAMPLE_TEST_ENDPOINT_UDP_RECEIVE_PORT); in sample_transmit_packets()
|
/Zephyr-Core-3.6.0/drivers/wifi/simplelink/ |
D | simplelink_sockets.c | 1035 net_sin6(ai_addr)->sin6_family = ai->ai_family; in set_addr_info() 1036 net_sin6(ai_addr)->sin6_addr.s6_addr32[0] = in set_addr_info() 1038 net_sin6(ai_addr)->sin6_addr.s6_addr32[1] = in set_addr_info() 1040 net_sin6(ai_addr)->sin6_addr.s6_addr32[2] = in set_addr_info() 1042 net_sin6(ai_addr)->sin6_addr.s6_addr32[3] = in set_addr_info() 1044 net_sin6(ai_addr)->sin6_port = sl_addr->sin6_port; in set_addr_info()
|