Lines Matching refs:addr
34 macaddr addr; member
44 macaddr addr; member
78 static int hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, in hostapd_acl_cache_get() argument
87 if (!ether_addr_equal(entry->addr, addr)) in hostapd_acl_cache_get()
115 static int hostapd_radius_acl_query(struct hostapd_data *hapd, const u8 *addr, in hostapd_radius_acl_query() argument
134 os_snprintf(buf, sizeof(buf), RADIUS_ADDR_FORMAT, MAC2STR(addr)); in hostapd_radius_acl_query()
154 MAC2STR(addr)); in hostapd_radius_acl_query()
193 if (radius_client_send(hapd->radius, msg, RADIUS_AUTH, addr) < 0) in hostapd_radius_acl_query()
211 int hostapd_check_acl(struct hostapd_data *hapd, const u8 *addr, in hostapd_check_acl() argument
215 hapd->conf->num_accept_mac, addr, vlan_id)) in hostapd_check_acl()
219 hapd->conf->num_deny_mac, addr, vlan_id)) in hostapd_check_acl()
250 int hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr, in hostapd_allowed_address() argument
258 res = hostapd_check_acl(hapd, addr, &out->vlan_id); in hostapd_allowed_address()
278 res = hostapd_acl_cache_get(hapd, addr, out); in hostapd_allowed_address()
287 if (ether_addr_equal(query->addr, addr)) { in hostapd_allowed_address()
305 os_memcpy(query->addr, addr, ETH_ALEN); in hostapd_allowed_address()
306 if (hostapd_radius_acl_query(hapd, addr, query)) { in hostapd_allowed_address()
347 " has expired.", MAC2STR(entry->addr)); in hostapd_acl_expire_cache()
352 hostapd_drv_set_radius_acl_expire(hapd, entry->addr); in hostapd_acl_expire_cache()
377 " has expired.", MAC2STR(entry->addr)); in hostapd_acl_expire_queries()
452 hostapd_logger(hapd, cache->addr, in decode_tunnel_passwords()
534 os_memcpy(cache->addr, query->addr, sizeof(cache->addr)); in hostapd_acl_recv_radius()
554 MAC2STR(query->addr)); in hostapd_acl_recv_radius()
586 hostapd_logger(hapd, query->addr, in hostapd_acl_recv_radius()
607 sta = ap_get_sta(hapd, query->addr); in hostapd_acl_recv_radius()
623 hostapd_drv_set_radius_acl_auth(hapd, query->addr, in hostapd_acl_recv_radius()
721 void hostapd_acl_req_radius_psk(struct hostapd_data *hapd, const u8 *addr, in hostapd_acl_req_radius_psk() argument
734 os_memcpy(query->addr, addr, ETH_ALEN); in hostapd_acl_req_radius_psk()
741 if (hostapd_radius_acl_query(hapd, addr, query)) { in hostapd_acl_req_radius_psk()