Lines Matching defs:entry

106 	struct hostapd_cached_radius_acl *entry;
111 for (entry = hapd->acl_cache; entry; entry = entry->next) {
112 if (os_memcmp(entry->addr, addr, ETH_ALEN) != 0)
115 if (now.sec - entry->timestamp > RADIUS_ACL_TIMEOUT)
116 return -1; /* entry has expired */
117 if (entry->accepted == HOSTAPD_ACL_ACCEPT_TIMEOUT)
119 *session_timeout = entry->session_timeout;
122 entry->acct_interim_interval;
124 *vlan_id = entry->vlan_id;
125 copy_psk_list(psk, entry->psk);
127 if (entry->identity)
128 *identity = os_strdup(entry->identity);
133 if (entry->radius_cui)
134 *radius_cui = os_strdup(entry->radius_cui);
138 return entry->accepted;
270 /* Check whether ACL cache has an entry for this station */
302 /* No entry in the cache - query external RADIUS server */
343 struct hostapd_cached_radius_acl *prev, *entry, *tmp;
346 entry = hapd->acl_cache;
348 while (entry) {
349 if (now - entry->timestamp > RADIUS_ACL_TIMEOUT) {
350 wpa_printf(MSG_DEBUG, "Cached ACL entry for " MACSTR
351 " has expired.", MAC2STR(entry->addr));
353 prev->next = entry->next;
355 hapd->acl_cache = entry->next;
356 hostapd_drv_set_radius_acl_expire(hapd, entry->addr);
357 tmp = entry;
358 entry = entry->next;
363 prev = entry;
364 entry = entry->next;
372 struct hostapd_acl_query_data *prev, *entry, *tmp;
375 entry = hapd->acl_queries;
377 while (entry) {
378 if (now - entry->timestamp > RADIUS_ACL_TIMEOUT) {
380 " has expired.", MAC2STR(entry->addr));
382 prev->next = entry->next;
384 hapd->acl_queries = entry->next;
386 tmp = entry;
387 entry = entry->next;
392 prev = entry;
393 entry = entry->next;
515 wpa_printf(MSG_DEBUG, "Failed to add ACL cache entry");