Home
last modified time | relevance | path

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

12

/Zephyr-Core-3.4.0/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-3.4.0/samples/net/sockets/echo_server/src/
Dtunnel.c55 &net_sin6(&addr)->sin6_addr, in setup_iface()
105 &net_sin6(&peer)->sin6_addr); in init_tunnel()
109 &net_sin6(&peer)->sin6_addr); in init_tunnel()
/Zephyr-Core-3.4.0/tests/net/virtual/src/
Dmain.c465 &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.4.0/drivers/modem/
Dmodem_context.c32 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()
Dwncm14a2a.c290 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()
1500 net_ipaddr_copy(&net_sin6(&sock->src)->sin6_addr, in offload_bind()
1501 &net_sin6(addr)->sin6_addr); in offload_bind()
1502 net_sin6(&sock->src)->sin6_port = net_sin6(addr)->sin6_port; in offload_bind()
1561 net_ipaddr_copy(&net_sin6(&sock->dst)->sin6_addr, in offload_connect()
1562 &net_sin6(addr)->sin6_addr); in offload_connect()
1563 dst_port = ntohs(net_sin6(addr)->sin6_port); in offload_connect()
1564 net_sin6(&sock->dst)->sin6_port = dst_port; in offload_connect()
/Zephyr-Core-3.4.0/subsys/net/ip/
Dconnection.c79 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()
187 &net_sin6(remote_addr)->sin6_addr, in conn_find_handler()
188 &net_sin6(&conn->remote_addr)-> in conn_find_handler()
219 &net_sin6(local_addr)->sin6_addr, in conn_find_handler()
220 &net_sin6(&conn->local_addr)-> in conn_find_handler()
291 &net_sin6(remote_addr)-> in net_conn_register()
318 &net_sin6(local_addr)-> in net_conn_register()
450 &net_sin6(addr)->sin6_addr)) { in conn_addr_cmp()
451 if (!net_ipv6_addr_cmp_raw((uint8_t *)&net_sin6(addr)->sin6_addr, in conn_addr_cmp()
Dnet_context.c549 &net_sin6(&context->remote)->sin6_addr); in net_context_bind()
1010 memcpy(&addr6->sin6_addr, &net_sin6(addr)->sin6_addr, in net_context_connect()
1013 addr6->sin6_port = net_sin6(addr)->sin6_port; in net_context_connect()
1036 net_sin6(&local_addr)->sin6_family = AF_INET6; in net_context_connect()
1037 net_sin6(&local_addr)->sin6_port = lport = in net_context_connect()
1038 net_sin6((struct sockaddr *)&context->local)->sin6_port; in net_context_connect()
1041 net_ipaddr_copy(&net_sin6(&local_addr)->sin6_addr, in net_context_connect()
1509 addr6 = net_sin6(&context->remote); in context_sendto()
1534 &net_sin6(&context->remote)->sin6_addr) && in context_sendto()
1990 net_ipaddr_copy(&net_sin6(&local_addr)->sin6_addr, in recv_udp()
[all …]
Dnet_shell.c1360 &net_sin6(&context->remote)->sin6_addr), in get_addresses()
1361 ntohs(net_sin6(&context->remote)->sin6_port)); in get_addresses()
1444 &net_sin6(&conn->local_addr)->sin6_addr), in conn_handler_cb()
1445 ntohs(net_sin6(&conn->local_addr)->sin6_port)); in conn_handler_cb()
1448 &net_sin6(&conn->remote_addr)->sin6_addr), in conn_handler_cb()
1449 ntohs(net_sin6(&conn->remote_addr)->sin6_port)); in conn_handler_cb()
1500 ntohs(net_sin6(&conn->context->remote)->sin6_port), in tcp_cb()
1795 net_sprint_ipv6_addr(&net_sin6(addr)->sin6_addr), in get_address_str()
1796 ntohs(net_sin6(addr)->sin6_port)); in get_address_str()
2132 &net_sin6(&info->ai_addr)->sin6_addr, in dns_result_cb()
[all …]
Dutils.c753 addr6 = &net_sin6(addr)->sin6_addr; in parse_ipv6()
760 net_sin6(addr)->sin6_family = AF_INET6; in parse_ipv6()
790 net_sin6(addr)->sin6_port = htons(port); in parse_ipv6()
/Zephyr-Core-3.4.0/subsys/net/lib/capture/
Dcapture.c206 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.4.0/samples/bluetooth/ipsp/src/
Dmain.c169 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.4.0/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()
1166 memcpy(net_sin6(&info.ai_addr), net_sin6(&addr), in dns_resolve_name()
[all …]
Dllmnr_responder.c361 create_ipv6_dst_addr(pkt, net_sin6(dst)); in create_ipv6_answer()
431 net_sprint_ipv6_addr(&net_sin6(&dst)->sin6_addr), in send_response()
/Zephyr-Core-3.4.0/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-3.4.0/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-3.4.0/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-3.4.0/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-3.4.0/drivers/wifi/simplelink/
Dsimplelink_sockets.c1035 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()
/Zephyr-Core-3.4.0/subsys/net/lib/zperf/
Dzperf_tcp_receiver.c110 port = ntohs(net_sin6(address)->sin6_port); in tcp_bind_listen_connection()
235 memcpy(net_sin6(&sock_addr[SOCK_ID_IPV6_LISTEN]), in6_addr, in tcp_server_session()
/Zephyr-Core-3.4.0/subsys/logging/backends/
Dlog_backend_net.c121 NULL, &net_sin6(&server_addr)->sin6_addr); in do_net_init()
/Zephyr-Core-3.4.0/tests/net/utils/src/
Dmain.c837 &net_sin6(&addr)->sin6_addr, in ZTEST()
840 zassert_true(net_sin6(&addr)->sin6_port == in ZTEST()
843 zassert_true(net_sin6(&addr)->sin6_family == in ZTEST()
/Zephyr-Core-3.4.0/tests/net/socket/misc/src/
Dmain.c352 net_sin6(&srv_addr)->sin6_port = htons(DST_PORT); in test_getpeername()
354 &net_sin6(&srv_addr)->sin6_addr); in test_getpeername()
/Zephyr-Core-3.4.0/tests/net/lib/mqtt_publisher/src/
Dtest_mqtt_publish.c37 struct sockaddr_in6 *broker6 = net_sin6(&broker); in broker_init()
/Zephyr-Core-3.4.0/tests/net/lib/mqtt_subscriber/src/
Dtest_mqtt_subscribe.c33 struct sockaddr_in6 *broker6 = net_sin6(&broker); in broker_init()
/Zephyr-Core-3.4.0/tests/net/lib/dns_resolve/src/
Dmain.c412 if (net_sin6(&ctx->servers[i].dns_server)->sin6_port == in ZTEST()
686 if (net_ipv6_addr_cmp(&net_sin6(&info->ai_addr)->sin6_addr, in dns_result_numeric_cb()

12