Home
last modified time | relevance | path

Searched refs:in4_addr (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_tcp_receiver.c288 struct sockaddr_in *in4_addr = zperf_get_sin(); in zperf_tcp_receiver_init() local
302 memcpy(&in4_addr->sin_addr, addr, in zperf_tcp_receiver_init()
307 &in4_addr->sin_addr); in zperf_tcp_receiver_init()
314 in4_addr->sin_addr.s_addr = INADDR_ANY; in zperf_tcp_receiver_init()
317 in4_addr->sin_port = htons(tcp_server_port); in zperf_tcp_receiver_init()
320 net_sprint_ipv4_addr(&in4_addr->sin_addr)); in zperf_tcp_receiver_init()
322 memcpy(net_sin(&sock_addr[SOCK_ID_IPV4_LISTEN]), in4_addr, in zperf_tcp_receiver_init()
Dzperf_udp_receiver.c389 const struct in_addr *in4_addr = NULL; in zperf_udp_receiver_init() local
401 in4_addr = &net_sin(&udp_server_addr)->sin_addr; in zperf_udp_receiver_init()
403 if (!net_ipv4_is_addr_unspecified(in4_addr)) { in zperf_udp_receiver_init()
404 memcpy(&in4_addr_my->sin_addr, in4_addr, in zperf_udp_receiver_init()