Lines Matching refs:addr
32 macaddr addr;
47 macaddr addr;
89 static int hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr,
102 if (os_memcmp(entry->addr, addr, ETH_ALEN) != 0)
147 static int hostapd_radius_acl_query(struct hostapd_data *hapd, const u8 *addr,
163 os_snprintf(buf, sizeof(buf), RADIUS_ADDR_FORMAT, MAC2STR(addr));
183 MAC2STR(addr));
197 if (radius_client_send(hapd->radius, msg, RADIUS_AUTH, addr) < 0)
211 * @addr: MAC address of the STA
215 int hostapd_check_acl(struct hostapd_data *hapd, const u8 *addr,
219 hapd->conf->num_accept_mac, addr, vlan_id))
223 hapd->conf->num_deny_mac, addr, vlan_id))
238 * @addr: MAC address of the STA
253 int hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr,
276 res = hostapd_check_acl(hapd, addr, vlan_id);
296 res = hostapd_acl_cache_get(hapd, addr, session_timeout,
307 if (os_memcmp(query->addr, addr, ETH_ALEN) == 0) {
333 os_memcpy(query->addr, addr, ETH_ALEN);
334 if (hostapd_radius_acl_query(hapd, addr, query)) {
375 " has expired.", MAC2STR(entry->addr));
380 hostapd_drv_set_radius_acl_expire(hapd, entry->addr);
405 " has expired.", MAC2STR(entry->addr));
480 hostapd_logger(hapd, cache->addr,
557 os_memcpy(cache->addr, query->addr, sizeof(cache->addr));
575 MAC2STR(query->addr));
607 hostapd_logger(hapd, query->addr,
624 hostapd_drv_set_radius_acl_auth(hapd, query->addr, cache->accepted,