Home
last modified time | relevance | path

Searched refs:addr_v4 (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/tests/net/socket/getaddrinfo/src/
Dmain.c35 static struct sockaddr_in addr_v4; variable
119 ntohs(addr_v4.sin_port)); in process_dns()
140 addr_len = sizeof(addr_v4); in process_dns()
141 addr = (struct sockaddr *)&addr_v4; in process_dns()
187 memcpy(&addr_v4, net_sin(&addr), sizeof(struct sockaddr_in)); in test_getaddrinfo_setup()
198 memcpy(&addr_v4, net_sin(&addr), sizeof(struct sockaddr_in)); in test_getaddrinfo_setup()
203 addr_str = zsock_inet_ntop(AF_INET, &addr_v4.sin_addr, str, sizeof(str)); in test_getaddrinfo_setup()
204 NET_DBG("v4: [%s]:%d", addr_str, ntohs(addr_v4.sin_port)); in test_getaddrinfo_setup()
206 sock_v4 = prepare_listen_sock_udp_v4(&addr_v4); in test_getaddrinfo_setup()
/Zephyr-latest/tests/net/socket/net_mgmt/src/
Dmain.c27 static ZTEST_DMEM struct in_addr addr_v4 = { { { 192, 0, 2, 3 } } }; variable
295 ifaddr_v4 = net_if_ipv4_addr_add(iface, &addr_v4, in trigger_events()
312 ret = net_if_ipv4_addr_rm(iface, &addr_v4); in trigger_events()
/Zephyr-latest/subsys/net/ip/
Dnet_if.c3845 struct in_addr addr_v4; in z_vrfy_net_if_ipv4_addr_lookup_by_index() local
3847 K_OOPS(k_usermode_from_copy(&addr_v4, (void *)addr, sizeof(addr_v4))); in z_vrfy_net_if_ipv4_addr_lookup_by_index()
3849 return z_impl_net_if_ipv4_addr_lookup_by_index(&addr_v4); in z_vrfy_net_if_ipv4_addr_lookup_by_index()
4438 struct in_addr addr_v4; in z_vrfy_net_if_ipv4_addr_add_by_index() local
4446 K_OOPS(k_usermode_from_copy(&addr_v4, (void *)addr, sizeof(addr_v4))); in z_vrfy_net_if_ipv4_addr_add_by_index()
4449 &addr_v4, in z_vrfy_net_if_ipv4_addr_add_by_index()
4474 struct in_addr addr_v4; in z_vrfy_net_if_ipv4_addr_rm_by_index() local
4482 K_OOPS(k_usermode_from_copy(&addr_v4, (void *)addr, sizeof(addr_v4))); in z_vrfy_net_if_ipv4_addr_rm_by_index()
4484 return (uint32_t)z_impl_net_if_ipv4_addr_rm_by_index(index, &addr_v4); in z_vrfy_net_if_ipv4_addr_rm_by_index()