Lines Matching +full:ip +full:- +full:addr
5 * SPDX-License-Identifier: Apache-2.0
23 struct session *get_session(const struct sockaddr *addr, in get_session() argument
29 const struct sockaddr_in *addr4 = (const struct sockaddr_in *)addr; in get_session()
30 const struct sockaddr_in6 *addr6 = (const struct sockaddr_in6 *)addr; in get_session()
42 addr->sa_family == AF_INET && in get_session()
43 ptr->ip.family == AF_INET && in get_session()
44 ptr->port == addr4->sin_port && in get_session()
45 net_ipv4_addr_cmp(&ptr->ip.in_addr, &addr4->sin_addr)) { in get_session()
52 addr->sa_family == AF_INET6 && in get_session()
53 ptr->ip.family == AF_INET6 && in get_session()
54 ptr->port == addr6->sin6_port && in get_session()
55 net_ipv6_addr_cmp(&ptr->ip.in6_addr, &addr6->sin6_addr)) { in get_session()
61 if (!free && (ptr->state == STATE_NULL || in get_session()
62 ptr->state == STATE_COMPLETED)) { in get_session()
63 /* We found a free slot - just in case */ in get_session()
74 if (IS_ENABLED(CONFIG_NET_IPV4) && addr->sa_family == AF_INET) { in get_session()
75 active->port = addr4->sin_port; in get_session()
76 active->ip.family = AF_INET; in get_session()
77 net_ipaddr_copy(&active->ip.in_addr, &addr4->sin_addr); in get_session()
79 addr->sa_family == AF_INET6) { in get_session()
80 active->port = addr6->sin6_port; in get_session()
81 active->ip.family = AF_INET6; in get_session()
82 net_ipaddr_copy(&active->ip.in6_addr, &addr6->sin6_addr); in get_session()
95 session->counter = 0U; in zperf_reset_session_stats()
96 session->start_time = 0U; in zperf_reset_session_stats()
97 session->next_id = 1U; in zperf_reset_session_stats()
98 session->length = 0U; in zperf_reset_session_stats()
99 session->outorder = 0U; in zperf_reset_session_stats()
100 session->error = 0U; in zperf_reset_session_stats()
101 session->jitter = 0; in zperf_reset_session_stats()
102 session->last_transit_time = 0; in zperf_reset_session_stats()