Lines Matching refs:active
26 struct session *active = NULL; in get_session() local
38 while (!active && i < SESSION_MAX) { in get_session()
47 active = ptr; in get_session()
57 active = ptr; in get_session()
71 if (!active && free) { in get_session()
72 active = free; 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()
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()
86 return active; in get_session()