Lines Matching refs:acl
73 struct acl {
74 TAILQ_ENTRY(acl) acl_list;
75 LIST_ENTRY(acl) acl_hash;
82 TAILQ_HEAD(, acl) as_list; /* list of all ACL's */
83 LIST_HEAD(, acl) as_hash[ACL_HASHSIZE];
91 static MALLOC_DEFINE(M_80211_ACL, "acl", "802.11 station acl");
107 ACL_LOCK_INIT(as, "acl");
130 static __inline struct acl *
133 struct acl *acl;
137 LIST_FOREACH(acl, &as->as_hash[hash], acl_hash) {
138 if (IEEE80211_ADDR_EQ(acl->acl_macaddr, macaddr))
139 return acl;
145 _acl_free(struct aclstate *as, struct acl *acl)
149 TAILQ_REMOVE(&as->as_list, acl, acl_list);
150 LIST_REMOVE(acl, acl_hash);
151 IEEE80211_FREE(acl, M_80211_ACL);
176 struct acl *acl, *new;
179 new = (struct acl *) IEEE80211_MALLOC(sizeof(struct acl),
190 LIST_FOREACH(acl, &as->as_hash[hash], acl_hash) {
191 if (IEEE80211_ADDR_EQ(acl->acl_macaddr, mac)) {
215 struct acl *acl;
218 acl = _find_acl(as, mac);
219 if (acl != NULL)
220 _acl_free(as, acl);
225 acl == NULL ? ", not present" : "");
227 return (acl == NULL ? ENOENT : 0);
234 struct acl *acl;
239 while ((acl = TAILQ_FIRST(&as->as_list)) != NULL)
240 _acl_free(as, acl);
292 struct acl *acl;
313 TAILQ_FOREACH(acl, &as->as_list, acl_list) {
314 IEEE80211_ADDR_COPY(ap[i].ml_macaddr, acl->acl_macaddr);