Home
last modified time | relevance | path

Searched refs:sin6_addr (Results 1 – 25 of 101) sorted by relevance

12345

/Zephyr-latest/tests/net/socket/getaddrinfo/src/
Dmain.c209 addr_str = zsock_inet_ntop(AF_INET6, &addr_v6.sin6_addr, str, sizeof(str)); in test_getaddrinfo_setup()
357 zassert_equal(saddr->sin6_addr.s6_addr[0], 0xFE, ""); in ZTEST()
358 zassert_equal(saddr->sin6_addr.s6_addr[1], 0xDC, ""); in ZTEST()
359 zassert_equal(saddr->sin6_addr.s6_addr[2], 0xBA, ""); in ZTEST()
360 zassert_equal(saddr->sin6_addr.s6_addr[3], 0x98, ""); in ZTEST()
361 zassert_equal(saddr->sin6_addr.s6_addr[4], 0x76, ""); in ZTEST()
362 zassert_equal(saddr->sin6_addr.s6_addr[5], 0x54, ""); in ZTEST()
363 zassert_equal(saddr->sin6_addr.s6_addr[6], 0x32, ""); in ZTEST()
364 zassert_equal(saddr->sin6_addr.s6_addr[7], 0x10, ""); in ZTEST()
365 zassert_equal(saddr->sin6_addr.s6_addr[8], 0xFE, ""); in ZTEST()
[all …]
/Zephyr-latest/samples/net/sockets/coap_server/src/
Dmain.c35 .sin6_addr = ALL_NODES_LOCAL_COAP_MCAST, in join_coap_multicast_group()
64 ret = net_ipv6_mld_join(iface, &mcast_addr.sin6_addr); in join_coap_multicast_group()
67 net_sprint_ipv6_addr(&mcast_addr.sin6_addr), ret); in join_coap_multicast_group()
/Zephyr-latest/tests/net/socket/getnameinfo/src/
Dmain.c64 saddr.sin6_addr.s6_addr[0] = 0xff; in ZTEST_USER()
65 saddr.sin6_addr.s6_addr[1] = 0x55; in ZTEST_USER()
66 saddr.sin6_addr.s6_addr[15] = 0x11; in ZTEST_USER()
/Zephyr-latest/subsys/net/lib/shell/
Dtcp.c40 &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()
84 net_sprint_ipv6_addr(&net_sin6(myaddr)->sin6_addr), in print_connect_info()
87 net_sprint_ipv6_addr(&net_sin6(addr)->sin6_addr), in print_connect_info()
114 &net_sin6(&addr)->sin6_addr); in tcp_connect()
123 nbr = net_ipv6_nbr_lookup(NULL, &net_sin6(&addr)->sin6_addr); in tcp_connect()
148 &net_sin6(&addr)->sin6_addr); in tcp_connect()
167 &net_sin6(&addr)->sin6_addr); in tcp_connect()
Dnet_shell.c92 net_sin6_ptr(&context->local)->sin6_addr), in get_addresses()
96 &net_sin6(&context->remote)->sin6_addr), 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()
Dping.c326 iface = net_if_ipv6_select_src_iface(&net_sin6(target)->sin6_addr); in ping_select_iface()
331 nbr = net_ipv6_nbr_lookup(NULL, &net_sin6(target)->sin6_addr); in ping_select_iface()
338 route = net_route_lookup(NULL, &net_sin6(target)->sin6_addr); in ping_select_iface()
456 net_addr_pton(AF_INET6, host, &ping_ctx.addr6.sin6_addr) == 0) { in cmd_net_ping()
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_udp_receiver.c289 if (net_ipv6_is_addr_mcast(&addr6->sin6_addr)) { in zperf_udp_leave_mcast()
290 net_ipv6_mld_leave(iface, &addr6->sin6_addr); in zperf_udp_leave_mcast()
455 in6_addr = &net_sin6(&udp_server_addr)->sin6_addr; in zperf_udp_receiver_init()
458 memcpy(&in6_addr_my->sin6_addr, in6_addr, in zperf_udp_receiver_init()
464 &in6_addr_my->sin6_addr); in zperf_udp_receiver_init()
471 memcpy(&in6_addr_my->sin6_addr, in zperf_udp_receiver_init()
476 if (net_ipv6_is_addr_mcast(&in6_addr_my->sin6_addr)) { in zperf_udp_receiver_init()
478 &in6_addr_my->sin6_addr); in zperf_udp_receiver_init()
482 net_sprint_ipv6_addr(&in6_addr_my->sin6_addr)); in zperf_udp_receiver_init()
Dzperf_tcp_receiver.c345 addr = &net_sin6(&tcp_server_addr)->sin6_addr; in zperf_tcp_receiver_init()
348 memcpy(&in6_addr->sin6_addr, addr, in zperf_tcp_receiver_init()
354 &in6_addr->sin6_addr); in zperf_tcp_receiver_init()
361 memcpy(&in6_addr->sin6_addr, net_ipv6_unspecified_address(), in zperf_tcp_receiver_init()
368 net_sprint_ipv6_addr(&in6_addr->sin6_addr)); in zperf_tcp_receiver_init()
Dzperf_session.c55 net_ipv6_addr_cmp(&ptr->ip.in6_addr, &addr6->sin6_addr)) { in get_session()
82 net_ipaddr_copy(&active->ip.in6_addr, &addr6->sin6_addr); in get_session()
/Zephyr-latest/samples/net/sockets/echo_server/src/
Dtunnel.c58 &net_sin6(&addr)->sin6_addr, in setup_iface()
108 &net_sin6(&peer)->sin6_addr); in init_tunnel()
112 &net_sin6(&peer)->sin6_addr); in init_tunnel()
/Zephyr-latest/samples/net/sockets/echo/src/
Dsocket_echo.c34 .sin6_addr = IN6ADDR_ANY_INIT, in main()
86 inet_ntop(client_addr.sin6_family, &client_addr.sin6_addr, in main()
/Zephyr-latest/tests/net/shell/src/
Dmain.c154 net_ipaddr_copy(&any_addr6.sin6_addr, &in6addr_anyaddr); in test_setup()
157 net_ipaddr_copy(&my_addr6.sin6_addr, &in6addr_my); in test_setup()
160 net_ipaddr_copy(&peer_addr6.sin6_addr, &in6addr_peer); in test_setup()
/Zephyr-latest/tests/net/socket/
Dsocket_helpers.h90 rv = zsock_inet_pton(AF_INET6, addr, &sockaddr->sin6_addr); in prepare_sock_udp_v6()
126 rv = zsock_inet_pton(AF_INET6, addr, &sockaddr->sin6_addr); in prepare_sock_tcp_v6()
164 rv = zsock_inet_pton(AF_INET6, addr, &sockaddr->sin6_addr); in prepare_sock_tls_v6()
202 rv = zsock_inet_pton(AF_INET6, addr, &sockaddr->sin6_addr); in prepare_sock_dtls_v6()
/Zephyr-latest/tests/net/virtual/src/
Dmain.c474 &net_sin6(&virtual_addr)->sin6_addr, in test_address_setup()
479 &net_sin6(&virtual_addr)->sin6_addr)); in test_address_setup()
713 &net_sin6(&peer_addr)->sin6_addr); in ZTEST()
769 &net_sin6(&peer_addr)->sin6_addr, in ZTEST()
835 &net_sin6(&peer_addr)->sin6_addr); in ZTEST()
840 &net_sin6(&peer_addr)->sin6_addr); in ZTEST()
874 net_sin6(&dst_addr)->sin6_addr.s6_addr[15] = 2; in ZTEST()
963 net_sin6(&dst_addr)->sin6_addr.s6_addr[15] = 1; in test_virtual_recv_data_from_tunnel()
964 net_sin6(&src_addr)->sin6_addr.s6_addr[15] = remote_ip; in test_virtual_recv_data_from_tunnel()
965 outerv6 = &net_sin6(&peer_addr)->sin6_addr; in test_virtual_recv_data_from_tunnel()
[all …]
/Zephyr-latest/tests/net/pmtu/src/
Dmain.c233 net_ipaddr_copy(&dest_ipv6.sin6_addr, &dest_ipv6_addr1); in ZTEST()
269 net_ipaddr_copy(&dest_ipv6.sin6_addr, &dest_ipv6_addr1); in ZTEST()
335 net_ipaddr_copy(&dest_ipv6.sin6_addr, &dest_ipv6_addr1); in ZTEST()
344 net_ipaddr_copy(&dest_ipv6.sin6_addr, &dest_ipv6_addr2); in ZTEST()
352 net_ipaddr_copy(&dest_ipv6.sin6_addr, &dest_ipv6_addr3); in ZTEST()
359 net_ipaddr_copy(&dest_ipv6.sin6_addr, &dest_ipv6_addr_not_found); in ZTEST()
407 net_ipaddr_copy(&dest_ipv6.sin6_addr, &dest_ipv6_addr4); in ZTEST()
427 net_ipaddr_copy(&dest_ipv6.sin6_addr, &dest_ipv6_addr1); in ZTEST()
524 dest6 = &dst->sin6_addr; in create_icmpv6_ptb()
525 src6 = &src->sin6_addr; in create_icmpv6_ptb()
[all …]
/Zephyr-latest/tests/net/utils/src/
Dmain.c599 .sin6_addr = { in ZTEST()
617 .sin6_addr = { in ZTEST()
635 .sin6_addr = { in ZTEST()
653 .sin6_addr = { in ZTEST()
672 .sin6_addr = { in ZTEST()
691 .sin6_addr = { in ZTEST()
739 .sin6_addr = { in ZTEST()
757 .sin6_addr = { in ZTEST()
791 .sin6_addr = { in ZTEST()
852 &net_sin6(&addr)->sin6_addr, in ZTEST()
[all …]
/Zephyr-latest/drivers/wifi/simplelink/
Dsimplelink_sockets.c364 memcpy(sl_addr_in6->sin6_addr._S6_un._S6_u32, in translate_z_to_sl_addrs()
365 z_sockaddr_in6->sin6_addr.s6_addr, in translate_z_to_sl_addrs()
366 sizeof(sl_addr_in6->sin6_addr._S6_un._S6_u32)); in translate_z_to_sl_addrs()
406 memcpy(z_sockaddr_in6->sin6_addr.s6_addr, in translate_sl_to_z_addr()
407 sl_addr_in6->sin6_addr._S6_un._S6_u32, in translate_sl_to_z_addr()
408 sizeof(z_sockaddr_in6->sin6_addr.s6_addr)); in translate_sl_to_z_addr()
1036 net_sin6(ai_addr)->sin6_addr.s6_addr32[0] = in set_addr_info()
1037 sl_addr->sin6_addr._S6_un._S6_u32[0]; in set_addr_info()
1038 net_sin6(ai_addr)->sin6_addr.s6_addr32[1] = in set_addr_info()
1039 sl_addr->sin6_addr._S6_un._S6_u32[1]; in set_addr_info()
[all …]
/Zephyr-latest/tests/net/socket/misc/src/
Dmain.c363 .sin6_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in test_ipv6_so_bindtodevice()
369 .sin6_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in test_ipv6_so_bindtodevice()
375 .sin6_addr = IN6ADDR_ANY_INIT, in test_ipv6_so_bindtodevice()
409 &net_sin6(&srv_addr)->sin6_addr); in test_getpeername()
498 &net_sin6(&srv_addr)->sin6_addr); in test_getsockname_tcp()
567 &net_sin6(&srv_addr)->sin6_addr); in test_getsockname_udp()
636 &net_sin6(&srv_addr6)->sin6_addr); in test_ipv4_mapped_to_ipv6_disabled()
685 &net_sin6(&srv_addr6)->sin6_addr); in test_ipv4_mapped_to_ipv6_enabled()
769 &net_sin6(&connect_addr6)->sin6_addr); in test_ipv4_mapped_to_ipv6_server()
773 &mapped.sin6_addr); in test_ipv4_mapped_to_ipv6_server()
[all …]
/Zephyr-latest/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()
189 &net_sin6(local_addr)->sin6_addr, in conn_find_handler()
191 sin6_addr)) { in conn_find_handler()
226 &net_sin6(remote_addr)->sin6_addr, in conn_find_handler()
228 sin6_addr)) { in conn_find_handler()
296 sin6_addr)) { in net_conn_change_remote()
368 sin6_addr)) { in net_conn_register()
507 &net_sin6(addr)->sin6_addr)) { in conn_addr_cmp()
508 if (!net_ipv6_addr_cmp_raw((uint8_t *)&net_sin6(addr)->sin6_addr, in conn_addr_cmp()
[all …]
Dnet_context.c209 if (net_sin6_ptr(&contexts[i].local)->sin6_addr == NULL || in check_used_port()
215 net_sin6_ptr(&contexts[i].local)->sin6_addr) || in check_used_port()
217 &net_sin6(local_addr)->sin6_addr))) { in check_used_port()
227 net_sin6_ptr(&contexts[i].local)->sin6_addr) && in check_used_port()
229 &net_sin6(local_addr)->sin6_addr))) { in check_used_port()
244 sin6_addr, in check_used_port()
246 local_addr)->sin6_addr)) { in check_used_port()
720 if (net_sin6_ptr(&context->local)->sin6_addr) { in bind_default()
725 memcpy(&addr6.sin6_addr, net_ipv6_unspecified_address(), in bind_default()
726 sizeof(addr6.sin6_addr)); in bind_default()
[all …]
/Zephyr-latest/samples/net/mdns_responder/src/
Dservice.c66 net_sin6(&server_addr)->sin6_addr = in6addr_any; in service()
93 addrp = &net_sin6(&server_addr)->sin6_addr; in service()
/Zephyr-latest/subsys/net/lib/dns/
Dllmnr_responder.c83 net_ipv6_addr_create(&addr->sin6_addr, in create_ipv6_addr()
93 net_ipv6_addr_copy_raw((uint8_t *)&addr->sin6_addr, in create_ipv6_dst_addr()
94 (uint8_t *)&src_addr->sin6_addr); in create_ipv6_dst_addr()
350 addr = get_ipv6_src(NULL, &src_addr->sin6_addr); in create_ipv6_answer()
404 net_sprint_ipv6_addr(&net_sin6((struct sockaddr *)&dst)->sin6_addr), in send_response()
411 iface = net_if_ipv6_select_src_iface(&net_sin6(addr)->sin6_addr); in send_response()
472 net_sprint_ipv6_addr(&net_sin6(src_addr)->sin6_addr), in dns_read()
596 net_if_foreach(iface_ipv6_cb, &local_addr->sin6_addr); in setup_ipv6_addr()
/Zephyr-latest/subsys/net/lib/capture/
Dcapture.c210 ifaddr = net_if_ipv6_addr_add(iface, &net_sin6(addr)->sin6_addr, in setup_iface()
254 ret = net_if_ipv6_addr_rm(iface, &net_sin6(addr)->sin6_addr); in cleanup_iface()
257 net_sprint_ipv6_addr(&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()
655 ret = net_ipv6_create(ip, &net_sin6(&ctx->local)->sin6_addr, in capture_send()
656 &net_sin6(&ctx->peer)->sin6_addr); in capture_send()
/Zephyr-latest/subsys/net/lib/mqtt_sn/
Dmqtt_sn_transport_udp.c32 inet_ntop(AF_INET6, &(((struct sockaddr_in6 *)sa)->sin6_addr), s, maxlen); in get_ip_str()
100 memcpy(&((struct sockaddr_in6 *)&addrm)->sin6_addr, &in6addr_any, in tp_udp_init()
120 iface = net_if_ipv6_select_src_iface(&((struct sockaddr_in6 *)&addrm)->sin6_addr); in tp_udp_init()
/Zephyr-latest/samples/net/sockets/echo_service/src/
Dmain.c181 .sin6_addr = IN6ADDR_ANY_INIT, in main()
221 inet_ntop(client_addr.sin6_family, &client_addr.sin6_addr, in main()

12345