Home
last modified time | relevance | path

Searched refs:net_sin6 (Results 1 – 25 of 42) sorted by relevance

12

/Zephyr-Core-2.7.6/samples/net/mdns_responder/src/
Dservice.c65 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/
Dmain.c470 &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/
Dtunnel.c52 &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/
Dconnection.c75 &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()
Dnet_context.c557 &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 …]
Dnet_shell.c1331 &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 …]
Dutils.c684 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()
Dtcp2.c1454 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/
Dmodem_context.c28 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()
Dwncm14a2a.c330 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()
Dhl7800.c772 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/
Dmain.c169 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/
Dcapture.c209 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/
Dresolve.c99 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/
Dmain.c220 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/
Dmain.c86 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/
Dmain.c50 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/
Dmain.c70 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/
Dzperf_udp_receiver.c40 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/
Dsimplelink_sockets.c1012 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/
Dmain.c837 &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/
Dlog_backend_net.c121 NULL, &net_sin6(&server_addr)->sin6_addr); in do_net_init()
/Zephyr-Core-2.7.6/tests/net/lib/dns_resolve/src/
Dmain.c415 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/
Dtest_mqtt_publish.c37 struct sockaddr_in6 *broker6 = net_sin6(&broker); in broker_init()
/Zephyr-Core-2.7.6/tests/net/lib/mqtt_subscriber/src/
Dtest_mqtt_subscribe.c33 struct sockaddr_in6 *broker6 = net_sin6(&broker); in broker_init()

12