Home
last modified time | relevance | path

Searched refs:vlan_id (Results 1 – 25 of 61) sorted by relevance

123

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dvlan_init.c52 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() argument
[all …]
Dieee802_11_auth.c175 struct vlan_description *vlan_id) in hostapd_check_acl() argument
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()
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.untagged, in hostapd_acl_recv_radius()
519 MAX_NUM_TAGGED_VLAN, info->vlan_id.tagged); in hostapd_acl_recv_radius()
542 if (info->vlan_id.notempty && in hostapd_acl_recv_radius()
543 !hostapd_vlan_valid(hapd->conf->vlan, &info->vlan_id)) { in hostapd_acl_recv_radius()
[all …]
Dsta_info.c314 if (sta->vlan_id) in ap_free_sta()
315 vlan_remove_dynamic(hapd, sta->vlan_id); in ap_free_sta()
946 int vlan_id = MAX_VLAN_ID + 2; in ap_sta_get_free_vlan_id() local
950 if (vlan->vlan_id == vlan_id) { in ap_sta_get_free_vlan_id()
951 vlan_id++; in ap_sta_get_free_vlan_id()
955 return vlan_id; in ap_sta_get_free_vlan_id()
963 int old_vlan_id, vlan_id = 0, ret = 0; in ap_sta_set_vlan() local
966 if (hapd->conf->ssid.per_sta_vif && !sta->vlan_id) { in ap_sta_set_vlan()
969 !hapd->conf->ssid.per_sta_vif && sta->vlan_id) { in ap_sta_set_vlan()
979 vlan_id = ap_sta_get_free_vlan_id(hapd); in ap_sta_set_vlan()
[all …]
Dvlan_init.h18 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() argument
38 static inline int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id) in vlan_remove_dynamic() argument
Dap_config.c331 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()
1018 const u8 *addr, struct vlan_description *vlan_id) in hostapd_maclist_found() argument
1029 if (vlan_id) in hostapd_maclist_found()
1030 *vlan_id = list[middle].vlan_id; in hostapd_maclist_found()
1077 v->vlan_id == VLAN_ID_WILDCARD) in hostapd_vlan_valid()
1085 const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id) in hostapd_get_vlan_id_ifname() argument
1089 if (v->vlan_id == vlan_id) in hostapd_get_vlan_id_ifname()
1099 const u8 *prev_psk, int *vlan_id) in hostapd_get_psk() argument
[all …]
Dwpa_auth_glue.c333 int *vlan_id) in hostapd_wpa_auth_get_psk() argument
339 if (vlan_id) in hostapd_wpa_auth_get_psk()
340 *vlan_id = 0; in hostapd_wpa_auth_get_psk()
377 vlan_id); in hostapd_wpa_auth_get_psk()
386 if (vlan_id) in hostapd_wpa_auth_get_psk()
387 *vlan_id = 0; in hostapd_wpa_auth_get_psk()
437 static int hostapd_wpa_auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg, in hostapd_wpa_auth_set_key() argument
444 if (vlan_id > 0) { in hostapd_wpa_auth_set_key()
445 ifname = hostapd_get_vlan_id_ifname(hapd->conf->vlan, vlan_id); in hostapd_wpa_auth_set_key()
495 return hostapd_drv_set_key(ifname, hapd, alg, addr, idx, vlan_id, 1, in hostapd_wpa_auth_set_key()
[all …]
Dieee802_11_auth.h22 struct vlan_description vlan_id; member
29 struct vlan_description *vlan_id);
Dap_config.h64 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
1178 const u8 *addr, struct vlan_description *vlan_id);
1182 const u8 *prev_psk, int *vlan_id);
1187 int vlan_id);
Dwpa_auth.c121 int *vlan_id) in wpa_auth_get_psk() argument
126 prev_psk, psk_len, vlan_id); in wpa_auth_get_psk()
140 int vlan_id, in wpa_auth_set_key() argument
153 return wpa_auth->cb->set_key(wpa_auth->cb_ctx, vlan_id, alg, addr, idx, in wpa_auth_set_key()
307 const u8 *addr, int vlan_id) in wpa_auth_update_vlan() argument
311 return wpa_auth->cb->update_vlan(wpa_auth->cb_ctx, addr, vlan_id); in wpa_auth_update_vlan()
440 int vlan_id, int delay_init) in wpa_group_init() argument
449 group->vlan_id = vlan_id; in wpa_group_init()
946 int vlan_id = 0; in wpa_try_alt_snonce() local
954 &vlan_id); in wpa_try_alt_snonce()
[all …]
Dwpa_auth.h299 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);
450 int wpa_auth_sta_set_vlan(struct wpa_state_machine *sm, int vlan_id);
502 int wpa_auth_ensure_group(struct wpa_authenticator *wpa_auth, int vlan_id);
503 int wpa_auth_release_group(struct wpa_authenticator *wpa_auth, int vlan_id);
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dvlan_init.c49 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() argument
[all …]
Dieee802_11_auth.c37 struct vlan_description vlan_id; member
92 struct vlan_description *vlan_id, in hostapd_acl_cache_get() argument
114 if (vlan_id) in hostapd_acl_cache_get()
115 *vlan_id = entry->vlan_id; in hostapd_acl_cache_get()
216 struct vlan_description *vlan_id) in hostapd_check_acl() argument
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()
256 struct vlan_description *vlan_id, in hostapd_allowed_address() argument
267 if (vlan_id) in hostapd_allowed_address()
268 os_memset(vlan_id, 0, sizeof(*vlan_id)); in hostapd_allowed_address()
[all …]
Dsta_info.c286 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()
940 vlan_id = ap_sta_get_free_vlan_id(hapd); in ap_sta_set_vlan()
[all …]
Dvlan_init.h18 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() argument
38 static inline int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id) in vlan_remove_dynamic() argument
Dap_config.c301 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()
910 const u8 *addr, struct vlan_description *vlan_id) in hostapd_maclist_found() argument
921 if (vlan_id) in hostapd_maclist_found()
922 *vlan_id = list[middle].vlan_id; in hostapd_maclist_found()
969 v->vlan_id == VLAN_ID_WILDCARD) in hostapd_vlan_valid()
977 const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id) in hostapd_get_vlan_id_ifname() argument
981 if (v->vlan_id == vlan_id) in hostapd_get_vlan_id_ifname()
991 const u8 *prev_psk, int *vlan_id) in hostapd_get_psk() argument
[all …]
Dwpa_auth_glue.c254 int *vlan_id) in hostapd_wpa_auth_get_psk() argument
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
[all …]
Dieee802_11_auth.h20 struct vlan_description *vlan_id);
24 struct vlan_description *vlan_id,
Dap_config.h63 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);
Dwpa_auth.c118 int *vlan_id) in wpa_auth_get_psk() argument
123 prev_psk, psk_len, vlan_id); in wpa_auth_get_psk()
137 int vlan_id, in wpa_auth_set_key() argument
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() argument
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() argument
404 group->vlan_id = vlan_id; in wpa_group_init()
887 int vlan_id = 0; in wpa_try_alt_snonce() local
895 &vlan_id); in wpa_try_alt_snonce()
[all …]
Dwpa_auth.h258 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);
Dieee802_11.c428 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() argument
1944 os_memset(vlan_id, 0, sizeof(*vlan_id)); in ieee802_11_allowed_address()
1947 vlan_id, psk, identity, radius_cui, in ieee802_11_allowed_address()
[all …]
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
Dlayout_eth_conf.h154 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
Dlayout_eth_conf_1_0.h155 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
/third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/
Dconfig_file.h18 int vlan_id, const u8 *addr);
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/
Dconfig_file.h18 int vlan_id, const u8 *addr);

123