Lines Matching refs:ptr
39 struct session *ptr = &sessions[proto][i]; in get_session() local
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()
47 active = ptr; 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()
57 active = ptr; in get_session()
61 if (!free && (ptr->state == STATE_NULL || in get_session()
62 ptr->state == STATE_COMPLETED)) { in get_session()
64 free = ptr; in get_session()