/Zephyr-Core-2.7.6/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-2.7.6/tests/net/virtual/src/ |
D | main.c | 470 &net_sin6(&virtual_addr)->sin6_addr, in test_address_setup() 475 &net_sin6(&virtual_addr)->sin6_addr)); in test_address_setup() 479 net_sin6(&virtual_addr)->sin6_port = htons(4242); in test_address_setup() 642 &net_sin6(&peer_addr)->sin6_addr); in test_virtual_set_peer() 692 &net_sin6(&peer_addr)->sin6_addr, in test_virtual_get_peer() 746 &net_sin6(&peer_addr)->sin6_addr); in test_virtual_send_data_to_tunnel() 751 &net_sin6(&peer_addr)->sin6_addr); in test_virtual_send_data_to_tunnel() 788 net_sin6(&dst_addr)->sin6_addr.s6_addr[15] = 2; in test_virtual_send_data_to_tunnel() 877 net_sin6(&dst_addr)->sin6_addr.s6_addr[15] = 1; in test_virtual_recv_data_from_tunnel() 878 net_sin6(&src_addr)->sin6_addr.s6_addr[15] = remote_ip; in test_virtual_recv_data_from_tunnel() [all …]
|
/Zephyr-Core-2.7.6/samples/net/sockets/echo_server/src/ |
D | tunnel.c | 52 &net_sin6(&addr)->sin6_addr, in setup_iface() 102 &net_sin6(&peer)->sin6_addr); in init_tunnel() 106 &net_sin6(&peer)->sin6_addr); in init_tunnel()
|
/Zephyr-Core-2.7.6/subsys/net/ip/ |
D | connection.c | 75 &net_sin6(&conn->remote_addr)->sin6_addr))); in conn_register_debug() 93 &net_sin6(&conn->local_addr)->sin6_addr))); in conn_register_debug() 173 &net_sin6(remote_addr)->sin6_addr, in conn_find_handler() 174 &net_sin6(&conn->remote_addr)-> in conn_find_handler() 205 &net_sin6(local_addr)->sin6_addr, in conn_find_handler() 206 &net_sin6(&conn->local_addr)-> in conn_find_handler() 275 &net_sin6(remote_addr)-> in net_conn_register() 302 &net_sin6(local_addr)-> in net_conn_register() 432 &net_sin6(addr)->sin6_addr)) { in conn_addr_cmp() 433 if (!net_ipv6_addr_cmp(&net_sin6(addr)->sin6_addr, in conn_addr_cmp()
|
D | net_context.c | 557 &net_sin6(&context->remote)->sin6_addr); in net_context_bind() 994 memcpy(&addr6->sin6_addr, &net_sin6(addr)->sin6_addr, in net_context_connect() 997 addr6->sin6_port = net_sin6(addr)->sin6_port; in net_context_connect() 1020 net_sin6(&local_addr)->sin6_family = AF_INET6; in net_context_connect() 1021 net_sin6(&local_addr)->sin6_port = lport = in net_context_connect() 1022 net_sin6((struct sockaddr *)&context->local)->sin6_port; in net_context_connect() 1025 net_ipaddr_copy(&net_sin6(&local_addr)->sin6_addr, in net_context_connect() 1447 addr6 = net_sin6(&context->remote); in context_sendto() 1472 &net_sin6(&context->remote)->sin6_addr) && in context_sendto() 1903 net_ipaddr_copy(&net_sin6(&local_addr)->sin6_addr, in recv_udp() [all …]
|
D | net_shell.c | 1331 &net_sin6(&context->remote)->sin6_addr), in get_addresses() 1332 ntohs(net_sin6(&context->remote)->sin6_port)); in get_addresses() 1415 &net_sin6(&conn->local_addr)->sin6_addr), in conn_handler_cb() 1416 ntohs(net_sin6(&conn->local_addr)->sin6_port)); in conn_handler_cb() 1419 &net_sin6(&conn->remote_addr)->sin6_addr), in conn_handler_cb() 1420 ntohs(net_sin6(&conn->remote_addr)->sin6_port)); in conn_handler_cb() 1476 ntohs(net_sin6(&conn->context->remote)->sin6_port), in tcp_cb() 1771 net_sprint_ipv6_addr(&net_sin6(addr)->sin6_addr), in get_address_str() 1772 ntohs(net_sin6(addr)->sin6_port)); in get_address_str() 2108 &net_sin6(&info->ai_addr)->sin6_addr, in dns_result_cb() [all …]
|
D | utils.c | 684 addr6 = &net_sin6(addr)->sin6_addr; in parse_ipv6() 691 net_sin6(addr)->sin6_family = AF_INET6; in parse_ipv6() 721 net_sin6(addr)->sin6_port = htons(port); in parse_ipv6()
|
D | tcp2.c | 1454 return tcpv6_init_isn(&net_sin6(saddr)->sin6_addr, in tcp_init_isn() 1455 &net_sin6(daddr)->sin6_addr, in tcp_init_isn() 1456 net_sin6(saddr)->sin6_port, in tcp_init_isn() 1457 net_sin6(daddr)->sin6_port); in tcp_init_isn() 1520 net_ipaddr_copy(&net_sin6(&local_addr)->sin6_addr, in tcp_conn_new() 2317 &net_sin6(remote_addr)->sin6_addr); in net_tcp_connect() 2320 &net_sin6(remote_addr)->sin6_addr); in net_tcp_connect() 2421 net_sin6((struct sockaddr *)&context->local)->sin6_port; in net_tcp_accept() 2423 remote_port = ntohs(net_sin6(&context->remote)->sin6_port); in net_tcp_accept()
|
/Zephyr-Core-2.7.6/drivers/modem/ |
D | modem_context.c | 28 return net_addr_ntop(AF_INET6, &net_sin6(addr)->sin6_addr, in modem_context_sprint_ip_addr() 49 *port = ntohs(net_sin6(addr)->sin6_port); in modem_context_get_addr_port()
|
D | wncm14a2a.c | 330 return net_addr_ntop(AF_INET6, &net_sin6(addr)->sin6_addr, in wncm14a2a_sprint_ip_addr() 484 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() 1567 net_ipaddr_copy(&net_sin6(&sock->src)->sin6_addr, in offload_bind() 1568 &net_sin6(addr)->sin6_addr); in offload_bind() 1569 net_sin6(&sock->src)->sin6_port = net_sin6(addr)->sin6_port; in offload_bind() 1628 net_ipaddr_copy(&net_sin6(&sock->dst)->sin6_addr, in offload_connect() 1629 &net_sin6(addr)->sin6_addr); in offload_connect() 1630 dst_port = ntohs(net_sin6(addr)->sin6_port); in offload_connect() 1631 net_sin6(&sock->dst)->sin6_port = dst_port; in offload_connect()
|
D | hl7800.c | 772 return net_addr_ntop(AF_INET6, &net_sin6(addr)->sin6_addr, buf, in hl7800_sprint_ip_addr() 1434 src_port = ntohs(net_sin6(&sock->src)->sin6_port); in pkt_setup_ip_data() 1435 dst_port = ntohs(net_sin6(&sock->dst)->sin6_port); in pkt_setup_ip_data() 5125 dst_port = net_sin6(&sock->dst)->sin6_port; in configure_TCP_socket() 5329 net_ipaddr_copy(&net_sin6(&sock->src)->sin6_addr, in offload_bind() 5330 &net_sin6(addr)->sin6_addr); in offload_bind() 5331 net_sin6(&sock->src)->sin6_port = net_sin6(addr)->sin6_port; in offload_bind() 5383 net_ipaddr_copy(&net_sin6(&sock->dst)->sin6_addr, in offload_connect() 5384 &net_sin6(addr)->sin6_addr); in offload_connect() 5385 dst_port = ntohs(net_sin6(addr)->sin6_port); in offload_connect() [all …]
|
/Zephyr-Core-2.7.6/samples/bluetooth/ipsp/src/ |
D | main.c | 169 net_ipaddr_copy(&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-2.7.6/subsys/net/lib/capture/ |
D | capture.c | 209 ifaddr = net_if_ipv6_addr_add(iface, &net_sin6(addr)->sin6_addr, in setup_iface() 251 ret = net_if_ipv6_addr_rm(iface, &net_sin6(addr)->sin6_addr); in cleanup_iface() 255 &net_sin6(addr)->sin6_addr)), in cleanup_iface() 316 &net_sin6(&remote)->sin6_addr); in net_capture_setup() 319 &net_sin6(&remote)->sin6_addr); in net_capture_setup() 629 ret = net_ipv6_create(ip, &net_sin6(&ctx->local)->sin6_addr, in capture_send() 630 &net_sin6(&ctx->peer)->sin6_addr); in capture_send()
|
/Zephyr-Core-2.7.6/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() 1165 memcpy(net_sin6(&info.ai_addr), net_sin6(&addr), in dns_resolve_name()
|
/Zephyr-Core-2.7.6/samples/net/sockets/txtime/src/ |
D | main.c | 220 addr = net_if_ipv6_select_src_addr(iface, &net_sin6(peer)->sin6_addr); in get_local_ipv6() 226 memcpy(&net_sin6(local)->sin6_addr, addr, sizeof(*addr)); in get_local_ipv6() 301 net_addr_ntop(AF_INET6, &net_sin6(&local)->sin6_addr, in create_socket() 364 &net_sin6(&data.peer)->sin6_addr); in get_peer_address() 367 &net_sin6(&data.peer)->sin6_addr, addr_str, in get_peer_address()
|
/Zephyr-Core-2.7.6/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-2.7.6/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-2.7.6/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-2.7.6/samples/net/zperf/src/ |
D | zperf_udp_receiver.c | 40 net_ipaddr_copy(&net_sin6(dst_addr)->sin6_addr, in set_dst_addr() 42 net_sin6(dst_addr)->sin6_family = AF_INET6; in set_dst_addr() 43 net_sin6(dst_addr)->sin6_port = udp_hdr->src_port; in set_dst_addr()
|
/Zephyr-Core-2.7.6/drivers/wifi/simplelink/ |
D | simplelink_sockets.c | 1012 net_sin6(ai_addr)->sin6_family = ai->ai_family; in set_addr_info() 1013 net_sin6(ai_addr)->sin6_addr.s6_addr32[0] = in set_addr_info() 1015 net_sin6(ai_addr)->sin6_addr.s6_addr32[1] = in set_addr_info() 1017 net_sin6(ai_addr)->sin6_addr.s6_addr32[2] = in set_addr_info() 1019 net_sin6(ai_addr)->sin6_addr.s6_addr32[3] = in set_addr_info() 1021 net_sin6(ai_addr)->sin6_port = sl_addr->sin6_port; in set_addr_info()
|
/Zephyr-Core-2.7.6/tests/net/utils/src/ |
D | main.c | 837 &net_sin6(&addr)->sin6_addr, in test_addr_parse() 840 zassert_true(net_sin6(&addr)->sin6_port == in test_addr_parse() 843 zassert_true(net_sin6(&addr)->sin6_family == in test_addr_parse()
|
/Zephyr-Core-2.7.6/subsys/logging/ |
D | log_backend_net.c | 121 NULL, &net_sin6(&server_addr)->sin6_addr); in do_net_init()
|
/Zephyr-Core-2.7.6/tests/net/lib/dns_resolve/src/ |
D | main.c | 415 if (net_sin6(&ctx->servers[i].dns_server)->sin6_port == in test_dns_query_ipv6_server_count() 689 if (net_ipv6_addr_cmp(&net_sin6(&info->ai_addr)->sin6_addr, in dns_result_numeric_cb()
|
/Zephyr-Core-2.7.6/tests/net/lib/mqtt_publisher/src/ |
D | test_mqtt_publish.c | 37 struct sockaddr_in6 *broker6 = net_sin6(&broker); in broker_init()
|
/Zephyr-Core-2.7.6/tests/net/lib/mqtt_subscriber/src/ |
D | test_mqtt_subscribe.c | 33 struct sockaddr_in6 *broker6 = net_sin6(&broker); in broker_init()
|