Home
last modified time | relevance | path

Searched refs:vlan_desc (Results 1 – 25 of 30) sorted by relevance

12

/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dpmksa_cache_auth.c41 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 …]
Dvlan_init.c186 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()
Dsta_info.c921 struct vlan_description *vlan_desc) in ap_sta_set_vlan() argument
932 } else if (!vlan_compare(vlan_desc, sta->vlan_desc)) { in ap_sta_set_vlan()
955 } else if (vlan_desc && vlan_desc->notempty) { in ap_sta_set_vlan()
957 if (!vlan_compare(&vlan->vlan_desc, vlan_desc)) in ap_sta_set_vlan()
966 vlan_id = vlan_desc->untagged; in ap_sta_set_vlan()
967 if (vlan_desc->tagged[0]) { in ap_sta_set_vlan()
976 vlan_desc->untagged, in ap_sta_set_vlan()
977 vlan_desc->tagged[0] ? "+" : ""); in ap_sta_set_vlan()
985 vlan = vlan_add_dynamic(hapd, vlan, vlan_id, vlan_desc); in ap_sta_set_vlan()
991 vlan_desc ? vlan_desc->untagged : -1, in ap_sta_set_vlan()
[all …]
Dvlan_init.h19 struct vlan_description *vlan_desc);
33 int vlan_id, struct vlan_description *vlan_desc) in vlan_add_dynamic() argument
Dvlan_full.c480 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()
Dap_config.c951 struct vlan_description *vlan_desc) in hostapd_vlan_valid() argument
956 if (!vlan_desc->notempty || vlan_desc->untagged < 0 || in hostapd_vlan_valid()
957 vlan_desc->untagged > MAX_VLAN_ID) in hostapd_vlan_valid()
960 if (vlan_desc->tagged[i] < 0 || in hostapd_vlan_valid()
961 vlan_desc->tagged[i] > MAX_VLAN_ID) in hostapd_vlan_valid()
964 if (!vlan_desc->untagged && !vlan_desc->tagged[0]) in hostapd_vlan_valid()
968 if (!vlan_compare(&v->vlan_desc, vlan_desc) || in hostapd_vlan_valid()
Dwpa_auth_glue.c807 struct vlan_description vlan_desc; in hostapd_wpa_auth_update_vlan() local
813 os_memset(&vlan_desc, 0, sizeof(vlan_desc)); in hostapd_wpa_auth_update_vlan()
814 vlan_desc.notempty = 1; in hostapd_wpa_auth_update_vlan()
815 vlan_desc.untagged = vlan_id; in hostapd_wpa_auth_update_vlan()
816 if (!hostapd_vlan_valid(hapd->conf->vlan, &vlan_desc)) { in hostapd_wpa_auth_update_vlan()
822 if (ap_sta_set_vlan(hapd, sta, &vlan_desc) < 0) { in hostapd_wpa_auth_update_vlan()
971 if (sta->vlan_desc) in hostapd_wpa_auth_get_vlan()
972 *vlan = *sta->vlan_desc; in hostapd_wpa_auth_get_vlan()
Dieee802_1x.c1861 struct vlan_description vlan_desc; in ieee802_1x_update_vlan() local
1863 os_memset(&vlan_desc, 0, sizeof(vlan_desc)); in ieee802_1x_update_vlan()
1864 vlan_desc.notempty = !!radius_msg_get_vlanid(msg, &vlan_desc.untagged, in ieee802_1x_update_vlan()
1866 vlan_desc.tagged); in ieee802_1x_update_vlan()
1868 if (vlan_desc.notempty && in ieee802_1x_update_vlan()
1869 !hostapd_vlan_valid(hapd->conf->vlan, &vlan_desc)) { in ieee802_1x_update_vlan()
1874 vlan_desc.untagged, in ieee802_1x_update_vlan()
1875 vlan_desc.tagged[0] ? "+" : ""); in ieee802_1x_update_vlan()
1876 os_memset(&vlan_desc, 0, sizeof(vlan_desc)); in ieee802_1x_update_vlan()
1877 ap_sta_set_vlan(hapd, sta, &vlan_desc); in ieee802_1x_update_vlan()
[all …]
Dsta_info.h159 struct vlan_description *vlan_desc; member
335 struct vlan_description *vlan_desc);
Dpmksa_cache_auth.h31 struct vlan_description *vlan_desc; member
Dap_config.h125 struct vlan_description vlan_desc; member
1093 struct vlan_description *vlan_desc);
Dieee802_11.c724 struct vlan_description vlan_desc; in sae_accept_sta() local
731 os_memset(&vlan_desc, 0, sizeof(vlan_desc)); in sae_accept_sta()
732 vlan_desc.notempty = 1; in sae_accept_sta()
733 vlan_desc.untagged = sta->sae->tmp->vlan_id; in sae_accept_sta()
734 if (!hostapd_vlan_valid(hapd->conf->vlan, &vlan_desc)) { in sae_accept_sta()
741 if (ap_sta_set_vlan(hapd, sta, &vlan_desc) < 0 || in sae_accept_sta()
Dwpa_auth_ie.c909 vlan = sm->pmksa->vlan_desc; in wpa_validate_wpa_ie()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dpmksa_cache_auth.c41 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 …]
Dvlan_init.c189 struct vlan_description *vlan_desc) in vlan_add_dynamic() argument
211 if (vlan_desc) in vlan_add_dynamic()
212 n->vlan_desc = *vlan_desc; in vlan_add_dynamic()
Dvlan_init.h19 struct vlan_description *vlan_desc);
33 int vlan_id, struct vlan_description *vlan_desc) in vlan_add_dynamic() argument
Dsta_info.c969 struct vlan_description *vlan_desc) in ap_sta_set_vlan() argument
980 } else if (!vlan_compare(vlan_desc, sta->vlan_desc)) { in ap_sta_set_vlan()
1003 } else if (vlan_desc && vlan_desc->notempty) { in ap_sta_set_vlan()
1005 if (!vlan_compare(&vlan->vlan_desc, vlan_desc)) in ap_sta_set_vlan()
1014 vlan_id = vlan_desc->untagged; in ap_sta_set_vlan()
1015 if (vlan_desc->tagged[0]) { in ap_sta_set_vlan()
1024 vlan_desc->untagged, in ap_sta_set_vlan()
1025 vlan_desc->tagged[0] ? "+" : ""); in ap_sta_set_vlan()
1033 vlan = vlan_add_dynamic(hapd, vlan, vlan_id, vlan_desc); in ap_sta_set_vlan()
1039 vlan_desc ? vlan_desc->untagged : -1, in ap_sta_set_vlan()
[all …]
Dvlan_full.c480 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()
Dap_config.c1059 struct vlan_description *vlan_desc) in hostapd_vlan_valid() argument
1064 if (!vlan_desc->notempty || vlan_desc->untagged < 0 || in hostapd_vlan_valid()
1065 vlan_desc->untagged > MAX_VLAN_ID) in hostapd_vlan_valid()
1068 if (vlan_desc->tagged[i] < 0 || in hostapd_vlan_valid()
1069 vlan_desc->tagged[i] > MAX_VLAN_ID) in hostapd_vlan_valid()
1072 if (!vlan_desc->untagged && !vlan_desc->tagged[0]) in hostapd_vlan_valid()
1076 if (!vlan_compare(&v->vlan_desc, vlan_desc) || in hostapd_vlan_valid()
Dieee802_1x.c1874 struct vlan_description vlan_desc; in ieee802_1x_update_vlan() local
1876 os_memset(&vlan_desc, 0, sizeof(vlan_desc)); in ieee802_1x_update_vlan()
1877 vlan_desc.notempty = !!radius_msg_get_vlanid(msg, &vlan_desc.untagged, in ieee802_1x_update_vlan()
1879 vlan_desc.tagged); in ieee802_1x_update_vlan()
1881 if (vlan_desc.notempty && in ieee802_1x_update_vlan()
1882 !hostapd_vlan_valid(hapd->conf->vlan, &vlan_desc)) { in ieee802_1x_update_vlan()
1887 vlan_desc.untagged, in ieee802_1x_update_vlan()
1888 vlan_desc.tagged[0] ? "+" : ""); in ieee802_1x_update_vlan()
1889 os_memset(&vlan_desc, 0, sizeof(vlan_desc)); in ieee802_1x_update_vlan()
1890 ap_sta_set_vlan(hapd, sta, &vlan_desc); in ieee802_1x_update_vlan()
[all …]
Dwpa_auth_glue.c953 struct vlan_description vlan_desc; in hostapd_wpa_auth_update_vlan() local
955 os_memset(&vlan_desc, 0, sizeof(vlan_desc)); in hostapd_wpa_auth_update_vlan()
956 vlan_desc.notempty = 1; in hostapd_wpa_auth_update_vlan()
957 vlan_desc.untagged = vlan_id; in hostapd_wpa_auth_update_vlan()
958 if (!hostapd_vlan_valid(hapd->conf->vlan, &vlan_desc)) { in hostapd_wpa_auth_update_vlan()
965 if (ap_sta_set_vlan(hapd, sta, &vlan_desc) < 0) { in hostapd_wpa_auth_update_vlan()
1155 if (sta->vlan_desc) in hostapd_wpa_auth_get_vlan()
1156 *vlan = *sta->vlan_desc; in hostapd_wpa_auth_get_vlan()
Dpmksa_cache_auth.h31 struct vlan_description *vlan_desc; member
Dsta_info.h201 struct vlan_description *vlan_desc; member
382 struct vlan_description *vlan_desc);
Dap_config.h134 struct vlan_description vlan_desc; member
1186 struct vlan_description *vlan_desc);
Dieee802_11.c938 struct vlan_description vlan_desc; in sae_accept_sta() local
945 os_memset(&vlan_desc, 0, sizeof(vlan_desc)); in sae_accept_sta()
946 vlan_desc.notempty = 1; in sae_accept_sta()
947 vlan_desc.untagged = sta->sae->tmp->vlan_id; in sae_accept_sta()
948 if (!hostapd_vlan_valid(hapd->conf->vlan, &vlan_desc)) { in sae_accept_sta()
955 if (ap_sta_set_vlan(hapd, sta, &vlan_desc) < 0 || in sae_accept_sta()

12