/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
H A D | vlan_init.c | 52 ret = wpa_auth_ensure_group(hapd->wpa_auth, vlan->vlan_id); in vlan_if_add() 58 vlan->vlan_id, ret); in vlan_if_add() 59 if (wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id)) in vlan_if_add() 74 ret = wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id); in vlan_if_remove() 78 vlan->vlan_id, ret); in vlan_if_remove() 88 if (vlan->vlan_id != VLAN_ID_WILDCARD) { in vlan_dynamic_add() 117 if (vlan->vlan_id != VLAN_ID_WILDCARD) in vlan_dynamic_remove() 120 if (vlan->vlan_id != VLAN_ID_WILDCARD && in vlan_dynamic_remove() 153 vlan->vlan_id = VLAN_ID_WILDCARD; in vlan_init() 188 int vlan_id, in vlan_add_dynamic() 186 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vlan_id, struct vlan_description *vlan_desc) vlan_add_dynamic() argument 237 vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id) vlan_remove_dynamic() argument [all...] |
H A D | ieee802_11_auth.c | 171 * @vlan_id: Buffer for returning VLAN ID 175 struct vlan_description *vlan_id) in hostapd_check_acl() 178 hapd->conf->num_accept_mac, addr, vlan_id)) in hostapd_check_acl() 182 hapd->conf->num_deny_mac, addr, vlan_id)) in hostapd_check_acl() 203 * @out.vlan_id: Buffer for returning VLAN ID 221 res = hostapd_check_acl(hapd, addr, &out->vlan_id); in hostapd_allowed_address() 238 os_memset(&out->vlan_id, 0, sizeof(out->vlan_id)); in hostapd_allowed_address() 517 info->vlan_id.notempty = !!radius_msg_get_vlanid( in hostapd_acl_recv_radius() 518 msg, &info->vlan_id in hostapd_acl_recv_radius() 174 hostapd_check_acl(struct hostapd_data *hapd, const u8 *addr, struct vlan_description *vlan_id) hostapd_check_acl() argument [all...] |
H A D | vlan_init.h | 18 int vlan_id, 20 int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id); 33 int vlan_id, struct vlan_description *vlan_desc) in vlan_add_dynamic() 38 static inline int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id) in vlan_remove_dynamic() argument 32 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vlan_id, struct vlan_description *vlan_desc) vlan_add_dynamic() argument
|
H A D | sta_info.c | 326 if (sta->vlan_id) in ap_free_sta() 327 vlan_remove_dynamic(hapd, sta->vlan_id); in ap_free_sta() 961 int vlan_id = MAX_VLAN_ID + 2; in ap_sta_get_free_vlan_id() local 965 if (vlan->vlan_id == vlan_id) { in ap_sta_get_free_vlan_id() 966 vlan_id++; in ap_sta_get_free_vlan_id() 970 return vlan_id; in ap_sta_get_free_vlan_id() 978 int old_vlan_id, vlan_id = 0, ret = 0; in ap_sta_set_vlan() local 981 if (hapd->conf->ssid.per_sta_vif && !sta->vlan_id) { in ap_sta_set_vlan() 984 !hapd->conf->ssid.per_sta_vif && sta->vlan_id) { in ap_sta_set_vlan() [all...] |
H A D | ap_config.c | 331 int vlan_id = 0; in hostapd_config_read_wpa_psk() local 366 vlan_id = atoi(value); in hostapd_config_read_wpa_psk() 395 psk->vlan_id = vlan_id; in hostapd_config_read_wpa_psk() 1013 * @vlan_id: Buffer for returning VLAN ID or %NULL if not needed 1019 const u8 *addr, struct vlan_description *vlan_id) in hostapd_maclist_found() 1030 if (vlan_id) in hostapd_maclist_found() 1031 *vlan_id = list[middle].vlan_id; in hostapd_maclist_found() 1078 v->vlan_id in hostapd_vlan_valid() 1018 hostapd_maclist_found(struct mac_acl_entry *list, int num_entries, const u8 *addr, struct vlan_description *vlan_id) hostapd_maclist_found() argument 1086 hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id) hostapd_get_vlan_id_ifname() argument 1098 hostapd_get_psk(const struct hostapd_bss_config *conf, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk, int *vlan_id) hostapd_get_psk() argument [all...] |
H A D | ieee802_11_auth.h | 22 struct vlan_description vlan_id; member 29 struct vlan_description *vlan_id);
|
H A D | wpa_auth_glue.c | 348 int *vlan_id) in hostapd_wpa_auth_get_psk() 354 if (vlan_id) in hostapd_wpa_auth_get_psk() 355 *vlan_id = 0; in hostapd_wpa_auth_get_psk() 394 vlan_id); in hostapd_wpa_auth_get_psk() 403 if (vlan_id) in hostapd_wpa_auth_get_psk() 404 *vlan_id = 0; in hostapd_wpa_auth_get_psk() 454 static int hostapd_wpa_auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg, in hostapd_wpa_auth_set_key() argument 461 if (vlan_id > 0) { in hostapd_wpa_auth_set_key() 462 ifname = hostapd_get_vlan_id_ifname(hapd->conf->vlan, vlan_id); in hostapd_wpa_auth_set_key() 512 return hostapd_drv_set_key(ifname, hapd, alg, addr, idx, vlan_id, in hostapd_wpa_auth_set_key() 345 hostapd_wpa_auth_get_psk(void *ctx, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk, size_t *psk_len, int *vlan_id) hostapd_wpa_auth_get_psk() argument 959 hostapd_wpa_auth_update_vlan(void *ctx, const u8 *addr, int vlan_id) hostapd_wpa_auth_update_vlan() argument [all...] |
H A D | ap_config.h | 64 struct vlan_description vlan_id; member 133 int vlan_id; /* VLAN ID or -1 (VLAN_ID_WILDCARD) for wildcard entry */ member 166 int vlan_id; member 254 int vlan_id; member 1181 const u8 *addr, struct vlan_description *vlan_id); 1185 const u8 *prev_psk, int *vlan_id); 1190 int vlan_id);
|
H A D | wpa_auth.h | 299 int *vlan_id); 301 int (*set_key)(void *ctx, int vlan_id, enum wpa_alg alg, 316 int (*update_vlan)(void *ctx, const u8 *addr, int vlan_id); 452 int wpa_auth_sta_set_vlan(struct wpa_state_machine *sm, int vlan_id); 504 int wpa_auth_ensure_group(struct wpa_authenticator *wpa_auth, int vlan_id); 505 int wpa_auth_release_group(struct wpa_authenticator *wpa_auth, int vlan_id); 576 int wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id,
|
H A D | wpa_auth.c | 134 int *vlan_id) in wpa_auth_get_psk() 139 prev_psk, psk_len, vlan_id); in wpa_auth_get_psk() 153 int vlan_id, in wpa_auth_set_key() 166 return wpa_auth->cb->set_key(wpa_auth->cb_ctx, vlan_id, alg, addr, idx, in wpa_auth_set_key() 320 const u8 *addr, int vlan_id) in wpa_auth_update_vlan() 324 return wpa_auth->cb->update_vlan(wpa_auth->cb_ctx, addr, vlan_id); in wpa_auth_update_vlan() 453 int vlan_id, int delay_init) in wpa_group_init() 462 group->vlan_id = vlan_id; in wpa_group_init() 963 int vlan_id in wpa_try_alt_snonce() local 130 wpa_auth_get_psk(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk, size_t *psk_len, int *vlan_id) wpa_auth_get_psk() argument 152 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len, enum key_flag key_flag) wpa_auth_set_key() argument 319 wpa_auth_update_vlan(struct wpa_authenticator *wpa_auth, const u8 *addr, int vlan_id) wpa_auth_update_vlan() argument 452 wpa_group_init(struct wpa_authenticator *wpa_auth, int vlan_id, int delay_init) wpa_group_init() argument 2972 int vlan_id = 0; SM_STATE() local 5063 wpa_auth_add_group(struct wpa_authenticator *wpa_auth, int vlan_id) wpa_auth_add_group() argument 5089 wpa_auth_ensure_group(struct wpa_authenticator *wpa_auth, int vlan_id) wpa_auth_ensure_group() argument 5129 wpa_auth_release_group(struct wpa_authenticator *wpa_auth, int vlan_id) wpa_auth_release_group() argument 5175 wpa_auth_sta_set_vlan(struct wpa_state_machine *sm, int vlan_id) wpa_auth_sta_set_vlan() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | vlan_init.c | 49 ret = wpa_auth_ensure_group(hapd->wpa_auth, vlan->vlan_id); in vlan_if_add() 55 vlan->vlan_id, ret); in vlan_if_add() 56 if (wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id)) in vlan_if_add() 71 ret = wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id); in vlan_if_remove() 75 vlan->vlan_id, ret); in vlan_if_remove() 85 if (vlan->vlan_id != VLAN_ID_WILDCARD) { in vlan_dynamic_add() 114 if (vlan->vlan_id != VLAN_ID_WILDCARD) in vlan_dynamic_remove() 117 if (vlan->vlan_id != VLAN_ID_WILDCARD && in vlan_dynamic_remove() 150 vlan->vlan_id = VLAN_ID_WILDCARD; in vlan_init() 185 int vlan_id, in vlan_add_dynamic() 183 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vlan_id, struct vlan_description *vlan_desc) vlan_add_dynamic() argument 234 vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id) vlan_remove_dynamic() argument [all...] |
H A D | ieee802_11_auth.c | 37 struct vlan_description vlan_id; member 92 struct vlan_description *vlan_id, in hostapd_acl_cache_get() 114 if (vlan_id) in hostapd_acl_cache_get() 115 *vlan_id = entry->vlan_id; in hostapd_acl_cache_get() 212 * @vlan_id: Buffer for returning VLAN ID 216 struct vlan_description *vlan_id) in hostapd_check_acl() 219 hapd->conf->num_accept_mac, addr, vlan_id)) in hostapd_check_acl() 223 hapd->conf->num_deny_mac, addr, vlan_id)) in hostapd_check_acl() 243 * @vlan_id 89 hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, u32 *session_timeout, u32 *acct_interim_interval, struct vlan_description *vlan_id, struct hostapd_sta_wpa_psk_short **psk, char **identity, char **radius_cui) hostapd_acl_cache_get() argument 215 hostapd_check_acl(struct hostapd_data *hapd, const u8 *addr, struct vlan_description *vlan_id) hostapd_check_acl() argument 253 hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr, const u8 *msg, size_t len, u32 *session_timeout, u32 *acct_interim_interval, struct vlan_description *vlan_id, struct hostapd_sta_wpa_psk_short **psk, char **identity, char **radius_cui, int is_probe_req) hostapd_allowed_address() argument [all...] |
H A D | sta_info.c | 286 if (sta->vlan_id) in ap_free_sta() 287 vlan_remove_dynamic(hapd, sta->vlan_id); in ap_free_sta() 907 int vlan_id = MAX_VLAN_ID + 2; in ap_sta_get_free_vlan_id() local 911 if (vlan->vlan_id == vlan_id) { in ap_sta_get_free_vlan_id() 912 vlan_id++; in ap_sta_get_free_vlan_id() 916 return vlan_id; in ap_sta_get_free_vlan_id() 924 int old_vlan_id, vlan_id = 0, ret = 0; in ap_sta_set_vlan() local 927 if (hapd->conf->ssid.per_sta_vif && !sta->vlan_id) { in ap_sta_set_vlan() 930 !hapd->conf->ssid.per_sta_vif && sta->vlan_id) { in ap_sta_set_vlan() [all...] |
H A D | vlan_init.h | 18 int vlan_id, 20 int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id); 33 int vlan_id, struct vlan_description *vlan_desc) in vlan_add_dynamic() 38 static inline int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id) in vlan_remove_dynamic() argument 32 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vlan_id, struct vlan_description *vlan_desc) vlan_add_dynamic() argument
|
H A D | ap_config.c | 301 int vlan_id = 0; in hostapd_config_read_wpa_psk() local 333 vlan_id = atoi(value); in hostapd_config_read_wpa_psk() 361 psk->vlan_id = vlan_id; in hostapd_config_read_wpa_psk() 904 * @vlan_id: Buffer for returning VLAN ID or %NULL if not needed 910 const u8 *addr, struct vlan_description *vlan_id) in hostapd_maclist_found() 921 if (vlan_id) in hostapd_maclist_found() 922 *vlan_id = list[middle].vlan_id; in hostapd_maclist_found() 969 v->vlan_id in hostapd_vlan_valid() 909 hostapd_maclist_found(struct mac_acl_entry *list, int num_entries, const u8 *addr, struct vlan_description *vlan_id) hostapd_maclist_found() argument 977 hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id) hostapd_get_vlan_id_ifname() argument 989 hostapd_get_psk(const struct hostapd_bss_config *conf, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk, int *vlan_id) hostapd_get_psk() argument [all...] |
H A D | wpa_auth_glue.c | 254 int *vlan_id) in hostapd_wpa_auth_get_psk() 260 if (vlan_id) in hostapd_wpa_auth_get_psk() 261 *vlan_id = 0; in hostapd_wpa_auth_get_psk() 298 vlan_id); in hostapd_wpa_auth_get_psk() 307 if (vlan_id) in hostapd_wpa_auth_get_psk() 308 *vlan_id = 0; in hostapd_wpa_auth_get_psk() 358 static int hostapd_wpa_auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg, in hostapd_wpa_auth_set_key() argument 365 if (vlan_id > 0) { in hostapd_wpa_auth_set_key() 366 ifname = hostapd_get_vlan_id_ifname(hapd->conf->vlan, vlan_id); in hostapd_wpa_auth_set_key() 802 static int hostapd_wpa_auth_update_vlan(void *ctx, const u8 *addr, int vlan_id) in hostapd_wpa_auth_update_vlan() argument 251 hostapd_wpa_auth_get_psk(void *ctx, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk, size_t *psk_len, int *vlan_id) hostapd_wpa_auth_get_psk() argument [all...] |
H A D | ieee802_11_auth.h | 20 struct vlan_description *vlan_id); 24 struct vlan_description *vlan_id,
|
H A D | wpa_auth.h | 258 int *vlan_id); 260 int (*set_key)(void *ctx, int vlan_id, enum wpa_alg alg, 274 int (*update_vlan)(void *ctx, const u8 *addr, int vlan_id); 401 int wpa_auth_sta_set_vlan(struct wpa_state_machine *sm, int vlan_id); 443 int wpa_auth_ensure_group(struct wpa_authenticator *wpa_auth, int vlan_id); 444 int wpa_auth_release_group(struct wpa_authenticator *wpa_auth, int vlan_id);
|
H A D | ap_config.h | 63 struct vlan_description vlan_id; member 124 int vlan_id; /* VLAN ID or -1 (VLAN_ID_WILDCARD) for wildcard entry */ member 156 int vlan_id; member 253 int vlan_id; member 1086 const u8 *addr, struct vlan_description *vlan_id); 1090 const u8 *prev_psk, int *vlan_id); 1095 int vlan_id);
|
H A D | wpa_auth.c | 118 int *vlan_id) in wpa_auth_get_psk() 123 prev_psk, psk_len, vlan_id); in wpa_auth_get_psk() 137 int vlan_id, in wpa_auth_set_key() 149 return wpa_auth->cb->set_key(wpa_auth->cb_ctx, vlan_id, alg, addr, idx, in wpa_auth_set_key() 262 const u8 *addr, int vlan_id) in wpa_auth_update_vlan() 266 return wpa_auth->cb->update_vlan(wpa_auth->cb_ctx, addr, vlan_id); in wpa_auth_update_vlan() 395 int vlan_id, int delay_init) in wpa_group_init() 404 group->vlan_id = vlan_id; in wpa_group_init() 887 int vlan_id in wpa_try_alt_snonce() local 114 wpa_auth_get_psk(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk, size_t *psk_len, int *vlan_id) wpa_auth_get_psk() argument 136 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) wpa_auth_set_key() argument 261 wpa_auth_update_vlan(struct wpa_authenticator *wpa_auth, const u8 *addr, int vlan_id) wpa_auth_update_vlan() argument 394 wpa_group_init(struct wpa_authenticator *wpa_auth, int vlan_id, int delay_init) wpa_group_init() argument 2830 int vlan_id = 0; SM_STATE() local 4634 wpa_auth_add_group(struct wpa_authenticator *wpa_auth, int vlan_id) wpa_auth_add_group() argument 4660 wpa_auth_ensure_group(struct wpa_authenticator *wpa_auth, int vlan_id) wpa_auth_ensure_group() argument 4700 wpa_auth_release_group(struct wpa_authenticator *wpa_auth, int vlan_id) wpa_auth_release_group() argument 4746 wpa_auth_sta_set_vlan(struct wpa_state_machine *sm, int vlan_id) wpa_auth_sta_set_vlan() argument [all...] |
H A D | ieee802_11.c | 428 if (pw && pw->vlan_id) { in auth_build_sae_commit() 434 sta->sae->tmp->vlan_id = pw->vlan_id; in auth_build_sae_commit() 726 if (sta->sae->tmp && sta->sae->tmp->vlan_id > 0) { in sae_accept_sta() 729 MAC2STR(sta->addr), sta->sae->tmp->vlan_id); in sae_accept_sta() 733 vlan_desc.untagged = sta->sae->tmp->vlan_id; in sae_accept_sta() 737 sta->sae->tmp->vlan_id); in sae_accept_sta() 745 MACSTR, sta->sae->tmp->vlan_id, in sae_accept_sta() 1938 struct vlan_description *vlan_id, in ieee802_11_allowed_address() 1944 os_memset(vlan_id, in ieee802_11_allowed_address() 1935 ieee802_11_allowed_address(struct hostapd_data *hapd, const u8 *addr, const u8 *msg, size_t len, u32 *session_timeout, u32 *acct_interim_interval, struct vlan_description *vlan_id, struct hostapd_sta_wpa_psk_short **psk, char **identity, char **radius_cui, int is_probe_req) ieee802_11_allowed_address() argument 1974 ieee802_11_set_radius_info(struct hostapd_data *hapd, struct sta_info *sta, int res, u32 session_timeout, u32 acct_interim_interval, struct vlan_description *vlan_id, struct hostapd_sta_wpa_psk_short **psk, char **identity, char **radius_cui) ieee802_11_set_radius_info() argument 2039 struct vlan_description vlan_id; handle_auth() local 3951 struct vlan_description vlan_id; handle_assoc() local [all...] |
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/ |
H A D | layout_eth_conf_1_0.h | 155 uint16_t vlan_id; /**< The vlan id of the received frame */ member 193 uint16_t vlan_id; /**< The vlan id of the received frame */ member
|
H A D | layout_eth_conf.h | 154 uint16_t vlan_id; /**< The vlan id of the received frame */ member 192 uint16_t vlan_id; /**< The vlan id of the received frame */ member
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/ |
H A D | config_file.h | 18 int vlan_id, const u8 *addr);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/ |
H A D | config_file.h | 18 int vlan_id, const u8 *addr);
|