Home
last modified time | relevance | path

Searched refs:addr6 (Results 1 – 25 of 38) sorted by relevance

12

/Zephyr-latest/samples/net/sockets/sntp_client/src/
Dmain.c24 struct sockaddr_in6 addr6; in main() local
59 memset(&addr6, 0, sizeof(addr6)); in main()
60 addr6.sin6_family = AF_INET6; in main()
61 addr6.sin6_port = htons(SNTP_PORT); in main()
62 inet_pton(AF_INET6, SERVER_ADDR6, &addr6.sin6_addr); in main()
64 rv = sntp_init(&ctx, (struct sockaddr *) &addr6, in main()
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_session.c30 const struct sockaddr_in6 *addr6 = (const struct sockaddr_in6 *)addr; in get_session() local
54 ptr->port == addr6->sin6_port && in get_session()
55 net_ipv6_addr_cmp(&ptr->ip.in6_addr, &addr6->sin6_addr)) { in get_session()
80 active->port = addr6->sin6_port; in get_session()
82 net_ipaddr_copy(&active->ip.in6_addr, &addr6->sin6_addr); in get_session()
/Zephyr-latest/samples/net/sockets/coap_download/src/
Dmain.c114 struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)&sa; in main() local
116 addr6->sin6_family = AF_INET6; in main()
117 addr6->sin6_port = htons(CONFIG_NET_SAMPLE_COAP_SERVER_PORT); in main()
118 zsock_inet_pton(AF_INET6, CONFIG_NET_CONFIG_PEER_IPV6_ADDR, &addr6->sin6_addr); in main()
/Zephyr-latest/samples/net/vlan/src/
Dmain.c45 struct in6_addr addr6, netaddr6; in setup_iface() local
54 if (net_addr_pton(AF_INET6, ipv6_addr, &addr6)) { in setup_iface()
59 ifaddr = net_if_ipv6_addr_add(vlan, &addr6, in setup_iface()
67 net_ipv6_addr_prefix_mask((uint8_t *)&addr6, in setup_iface()
/Zephyr-latest/samples/net/sockets/echo_server/src/
Dudp.c181 struct sockaddr_in6 addr6; in process_udp6() local
183 (void)memset(&addr6, 0, sizeof(addr6)); in process_udp6()
184 addr6.sin6_family = AF_INET6; in process_udp6()
185 addr6.sin6_port = htons(MY_PORT); in process_udp6()
187 ret = start_udp_proto(&conf.ipv6, (struct sockaddr *)&addr6, in process_udp6()
188 sizeof(addr6)); in process_udp6()
Dvlan.c51 struct in6_addr addr6; in setup_iface() local
60 if (net_addr_pton(AF_INET6, ipv6_addr, &addr6)) { in setup_iface()
65 ifaddr = net_if_ipv6_addr_add(vlan, &addr6, in setup_iface()
Dtcp.c335 struct sockaddr_in6 addr6; in process_tcp6() local
337 (void)memset(&addr6, 0, sizeof(addr6)); in process_tcp6()
338 addr6.sin6_family = AF_INET6; in process_tcp6()
339 addr6.sin6_port = htons(MY_PORT); in process_tcp6()
341 ret = start_tcp_proto(&conf.ipv6, (struct sockaddr *)&addr6, in process_tcp6()
342 sizeof(addr6)); in process_tcp6()
/Zephyr-latest/subsys/net/l2/openthread/
Dopenthread_utils.h24 const struct in6_addr *addr6);
26 const struct in6_addr *addr6);
/Zephyr-latest/samples/net/sockets/echo_client/src/
Dvlan.c47 struct in6_addr addr6; in setup_iface() local
55 if (net_addr_pton(AF_INET6, ipv6_addr, &addr6)) { in setup_iface()
60 ifaddr = net_if_ipv6_addr_add(iface, &addr6, NET_ADDR_MANUAL, 0); in setup_iface()
Dtcp.c237 struct sockaddr_in6 addr6; in start_tcp() local
240 addr6.sin6_family = AF_INET6; in start_tcp()
241 addr6.sin6_port = htons(PEER_PORT); in start_tcp()
243 &addr6.sin6_addr); in start_tcp()
246 (struct sockaddr *)&addr6, in start_tcp()
247 sizeof(addr6)); in start_tcp()
Dudp.c307 struct sockaddr_in6 addr6; in start_udp() local
310 addr6.sin6_family = AF_INET6; in start_udp()
311 addr6.sin6_port = htons(PEER_PORT); in start_udp()
313 &addr6.sin6_addr); in start_udp()
316 (struct sockaddr *)&addr6, in start_udp()
317 sizeof(addr6)); in start_udp()
/Zephyr-latest/subsys/net/lib/dns/
Ddns_sd.h140 const struct in_addr *addr4, const struct in6_addr *addr6,
158 const struct in_addr *addr4, const struct in6_addr *addr6,
/Zephyr-latest/samples/boards/nxp/s32/netc/src/
Dmain.c25 struct in6_addr addr6; in setup_iface() local
30 if (net_addr_pton(AF_INET6, ipv6_addr, &addr6)) { in setup_iface()
35 ifaddr = net_if_ipv6_addr_add(iface, &addr6, NET_ADDR_MANUAL, 0); in setup_iface()
/Zephyr-latest/subsys/net/ip/
Dutils.c164 struct in6_addr *addr6 = NULL; in z_impl_net_addr_ntop() local
178 addr6 = (struct in6_addr *)src; in z_impl_net_addr_ntop()
179 w = (uint16_t *)addr6->s6_addr16; in z_impl_net_addr_ntop()
182 if (net_ipv6_addr_is_v4_mapped(addr6)) { in z_impl_net_addr_ntop()
241 addr = (struct in_addr *)(&addr6->s6_addr32[3]); in z_impl_net_addr_ntop()
302 struct in6_addr addr6; in z_vrfy_net_addr_ntop() local
314 K_OOPS(k_usermode_from_copy(&addr6, (const void *)src, in z_vrfy_net_addr_ntop()
315 sizeof(addr6))); in z_vrfy_net_addr_ntop()
316 addr = &addr6; in z_vrfy_net_addr_ntop()
471 struct in6_addr addr6; in z_vrfy_net_addr_pton() local
[all …]
Dnet_context.c574 struct sockaddr_in6 *addr6 = in net_context_get() local
576 addr6->sin6_port = in net_context_get()
577 find_available_port(&contexts[i], (struct sockaddr *)addr6); in net_context_get()
579 if (!addr6->sin6_port) { in net_context_get()
718 struct sockaddr_in6 addr6; in bind_default() local
724 addr6.sin6_family = AF_INET6; in bind_default()
725 memcpy(&addr6.sin6_addr, net_ipv6_unspecified_address(), in bind_default()
726 sizeof(addr6.sin6_addr)); in bind_default()
727 addr6.sin6_port = in bind_default()
729 (struct sockaddr *)&addr6); in bind_default()
[all …]
/Zephyr-latest/samples/net/mdns_responder/src/
Dvlan.c48 struct in6_addr addr6; in setup_iface() local
57 if (net_addr_pton(AF_INET6, ipv6_addr, &addr6)) { in setup_iface()
62 ifaddr = net_if_ipv6_addr_add(iface, &addr6, in setup_iface()
/Zephyr-latest/samples/net/sockets/txtime/src/
Dvlan.c47 struct in6_addr addr6; in setup_iface() local
61 if (net_addr_pton(AF_INET6, ipv6_addr, &addr6)) { in setup_iface()
66 ifaddr = net_if_ipv6_addr_add(iface, &addr6, in setup_iface()
/Zephyr-latest/samples/net/sockets/dumb_http_server_mt/src/
Dmain.c364 struct sockaddr_in6 addr6; in process_tcp6() local
367 (void)memset(&addr6, 0, sizeof(addr6)); in process_tcp6()
368 addr6.sin6_family = AF_INET6; in process_tcp6()
369 addr6.sin6_port = htons(MY_PORT); in process_tcp6()
371 ret = setup(&tcp6_listen_sock, (struct sockaddr *)&addr6, in process_tcp6()
372 sizeof(addr6)); in process_tcp6()
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/
Dsmp_udp.c174 struct sockaddr_in6 addr6; in create_socket() local
191 memset(&addr6, 0, sizeof(addr6)); in create_socket()
192 addr6.sin6_family = AF_INET6; in create_socket()
193 addr6.sin6_port = htons(CONFIG_MCUMGR_TRANSPORT_UDP_PORT); in create_socket()
194 addr6.sin6_addr = in6addr_any; in create_socket()
195 addr = (struct sockaddr *)&addr6; in create_socket()
/Zephyr-latest/samples/net/sockets/http_client/src/
Dmain.c154 struct sockaddr_in6 addr6; in run_queries() local
183 &sock6, (struct sockaddr *)&addr6, in run_queries()
184 sizeof(addr6)); in run_queries()
239 &sock6, (struct sockaddr *)&addr6, in run_queries()
240 sizeof(addr6)); in run_queries()
301 &sock6, (struct sockaddr *)&addr6, in run_queries()
302 sizeof(addr6)); in run_queries()
/Zephyr-latest/samples/net/sockets/coap_client/src/
Dcoap-client.c60 struct sockaddr_in6 addr6; in start_coap_client() local
62 addr6.sin6_family = AF_INET6; in start_coap_client()
63 addr6.sin6_port = htons(PEER_PORT); in start_coap_client()
64 addr6.sin6_scope_id = 0U; in start_coap_client()
67 &addr6.sin6_addr); in start_coap_client()
69 sock = socket(addr6.sin6_family, SOCK_DGRAM, IPPROTO_UDP); in start_coap_client()
75 ret = connect(sock, (struct sockaddr *)&addr6, sizeof(addr6)); in start_coap_client()
/Zephyr-latest/samples/net/lldp/src/
Dmain.c68 struct in6_addr addr6; in setup_iface() local
76 if (net_addr_pton(AF_INET6, ipv6_addr, &addr6)) { in setup_iface()
81 ifaddr = net_if_ipv6_addr_add(iface, &addr6, NET_ADDR_MANUAL, 0); in setup_iface()
/Zephyr-latest/tests/net/ip-addr/src/
Dmain.c219 struct in6_addr addr6 = { { { 0xfe, 0x80, 0, 0, 0, 0, 0, 0, in ZTEST() local
243 &addr6, in ZTEST()
249 ifaddr2 = net_if_ipv6_addr_lookup(&addr6, NULL); in ZTEST()
260 zassert_true(net_ipv6_is_my_addr(&addr6), in ZTEST()
285 ifmaddr1 = net_if_ipv6_maddr_add(default_iface, &addr6); in ZTEST()
294 &addr6, in ZTEST()
302 zassert_false(tmp && memcmp(tmp, &addr6.s6_addr, in ZTEST()
340 out = net_if_ipv6_select_src_addr(iface, &addr6); in ZTEST()
355 out = net_if_ipv6_select_src_addr(iface, &addr6); in ZTEST()
362 zassert_false(memcmp(out->s6_addr, &addr6.s6_addr, in ZTEST()
[all …]
/Zephyr-latest/tests/net/mgmt/src/
Dmgmt.c47 static struct in6_addr addr6 = { { { 0xfe, 0x80, 0, 0, 0, 0, 0, 0, variable
326 memcpy(info_data, &addr6, sizeof(addr6)); in test_core_event()
351 &addr6, NET_ADDR_MANUAL, 0)) { in _iface_ip6_add()
362 &addr6)) { in _iface_ip6_del()
/Zephyr-latest/samples/net/virtual/src/
Dmain.c234 struct in6_addr addr6; in setup_iface() local
240 if (net_addr_pton(AF_INET6, ipv6_addr, &addr6)) { in setup_iface()
245 ifaddr = net_if_ipv6_addr_add(iface, &addr6, in setup_iface()
259 if (net_addr_pton(AF_INET6, peer6addr, &addr6)) { in setup_iface()
263 net_ipaddr_copy(&params.peer6addr, &addr6); in setup_iface()

12