/external/wpa_supplicant_8/src/ap/ |
D | pmksa_cache_auth.c | 41 os_free(entry->vlan_desc); in _pmksa_cache_free_entry() 144 struct vlan_description *vlan_desc; in pmksa_cache_from_eapol_data() local 167 vlan_desc = ((struct sta_info *) eapol->sta)->vlan_desc; in pmksa_cache_from_eapol_data() 168 if (vlan_desc && vlan_desc->notempty) { in pmksa_cache_from_eapol_data() 169 entry->vlan_desc = os_zalloc(sizeof(struct vlan_description)); in pmksa_cache_from_eapol_data() 170 if (entry->vlan_desc) in pmksa_cache_from_eapol_data() 171 *entry->vlan_desc = *vlan_desc; in pmksa_cache_from_eapol_data() 173 entry->vlan_desc = NULL; in pmksa_cache_from_eapol_data() 215 ap_sta_set_vlan(hapd, eapol->sta, entry->vlan_desc); in pmksa_cache_to_eapol_data() 424 if (old_entry->vlan_desc) { in pmksa_cache_add_okc() [all …]
|
D | sta_info.c | 908 struct vlan_description *vlan_desc) in ap_sta_set_vlan() argument 919 } else if (!vlan_compare(vlan_desc, sta->vlan_desc)) { in ap_sta_set_vlan() 942 } else if (vlan_desc && vlan_desc->notempty) { in ap_sta_set_vlan() 944 if (!vlan_compare(&vlan->vlan_desc, vlan_desc)) in ap_sta_set_vlan() 953 vlan_id = vlan_desc->untagged; in ap_sta_set_vlan() 954 if (vlan_desc->tagged[0]) { in ap_sta_set_vlan() 963 vlan_desc->untagged, in ap_sta_set_vlan() 964 vlan_desc->tagged[0] ? "+" : ""); in ap_sta_set_vlan() 972 vlan = vlan_add_dynamic(hapd, vlan, vlan_id, vlan_desc); in ap_sta_set_vlan() 978 vlan_desc ? vlan_desc->untagged : -1, in ap_sta_set_vlan() [all …]
|
D | vlan_init.c | 186 struct vlan_description *vlan_desc) in vlan_add_dynamic() argument 208 if (vlan_desc) in vlan_add_dynamic() 209 n->vlan_desc = *vlan_desc; in vlan_add_dynamic()
|
D | vlan_init.h | 19 struct vlan_description *vlan_desc); 33 int vlan_id, struct vlan_description *vlan_desc) in vlan_add_dynamic() argument
|
D | vlan_full.c | 480 notempty = vlan->vlan_desc.notempty; in vlan_newlink() 481 untagged = vlan->vlan_desc.untagged; in vlan_newlink() 482 tagged = vlan->vlan_desc.tagged; in vlan_newlink() 584 int notempty = vlan->vlan_desc.notempty; in vlan_dellink() 585 int untagged = vlan->vlan_desc.untagged; in vlan_dellink() 586 int *tagged = vlan->vlan_desc.tagged; in vlan_dellink()
|
D | ap_config.c | 831 struct vlan_description *vlan_desc) in hostapd_vlan_valid() argument 836 if (!vlan_desc->notempty || vlan_desc->untagged < 0 || in hostapd_vlan_valid() 837 vlan_desc->untagged > MAX_VLAN_ID) in hostapd_vlan_valid() 840 if (vlan_desc->tagged[i] < 0 || in hostapd_vlan_valid() 841 vlan_desc->tagged[i] > MAX_VLAN_ID) in hostapd_vlan_valid() 844 if (!vlan_desc->untagged && !vlan_desc->tagged[0]) in hostapd_vlan_valid() 848 if (!vlan_compare(&v->vlan_desc, vlan_desc) || in hostapd_vlan_valid()
|
D | wpa_auth_glue.c | 803 struct vlan_description vlan_desc; in hostapd_wpa_auth_update_vlan() local 809 os_memset(&vlan_desc, 0, sizeof(vlan_desc)); in hostapd_wpa_auth_update_vlan() 810 vlan_desc.notempty = 1; in hostapd_wpa_auth_update_vlan() 811 vlan_desc.untagged = vlan_id; in hostapd_wpa_auth_update_vlan() 812 if (!hostapd_vlan_valid(hapd->conf->vlan, &vlan_desc)) { in hostapd_wpa_auth_update_vlan() 818 if (ap_sta_set_vlan(hapd, sta, &vlan_desc) < 0) { in hostapd_wpa_auth_update_vlan() 967 if (sta->vlan_desc) in hostapd_wpa_auth_get_vlan() 968 *vlan = *sta->vlan_desc; in hostapd_wpa_auth_get_vlan()
|
D | ieee802_1x.c | 1750 struct vlan_description vlan_desc; in ieee802_1x_update_vlan() local 1752 os_memset(&vlan_desc, 0, sizeof(vlan_desc)); in ieee802_1x_update_vlan() 1753 vlan_desc.notempty = !!radius_msg_get_vlanid(msg, &vlan_desc.untagged, in ieee802_1x_update_vlan() 1755 vlan_desc.tagged); in ieee802_1x_update_vlan() 1757 if (vlan_desc.notempty && in ieee802_1x_update_vlan() 1758 !hostapd_vlan_valid(hapd->conf->vlan, &vlan_desc)) { in ieee802_1x_update_vlan() 1763 vlan_desc.untagged, in ieee802_1x_update_vlan() 1764 vlan_desc.tagged[0] ? "+" : ""); in ieee802_1x_update_vlan() 1765 os_memset(&vlan_desc, 0, sizeof(vlan_desc)); in ieee802_1x_update_vlan() 1766 ap_sta_set_vlan(hapd, sta, &vlan_desc); in ieee802_1x_update_vlan() [all …]
|
D | sta_info.h | 157 struct vlan_description *vlan_desc; member 327 struct vlan_description *vlan_desc);
|
D | pmksa_cache_auth.h | 31 struct vlan_description *vlan_desc; member
|
D | ap_config.h | 124 struct vlan_description vlan_desc; member 883 struct vlan_description *vlan_desc);
|
D | ieee802_11.c | 722 struct vlan_description vlan_desc; in sae_accept_sta() local 729 os_memset(&vlan_desc, 0, sizeof(vlan_desc)); in sae_accept_sta() 730 vlan_desc.notempty = 1; in sae_accept_sta() 731 vlan_desc.untagged = sta->sae->tmp->vlan_id; in sae_accept_sta() 732 if (!hostapd_vlan_valid(hapd->conf->vlan, &vlan_desc)) { in sae_accept_sta() 739 if (ap_sta_set_vlan(hapd, sta, &vlan_desc) < 0 || in sae_accept_sta()
|
D | wpa_auth_ie.c | 909 vlan = sm->pmksa->vlan_desc; in wpa_validate_wpa_ie()
|
/external/wpa_supplicant_8/hostapd/ |
D | ctrl_iface.c | 1310 vlan_compare(&vlan_id, sta->vlan_desc))) in hostapd_disassoc_accept_mac() 1327 !vlan_compare(&vlan_id, sta->vlan_desc))) in hostapd_disassoc_deny_mac()
|
D | config_file.c | 112 vlan->vlan_desc.untagged = vlan_id; in hostapd_config_read_vlan_file() 113 vlan->vlan_desc.notempty = !!vlan_id; in hostapd_config_read_vlan_file()
|