Home
last modified time | relevance | path

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

12

/external/wpa_supplicant_8/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 …]
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
Dsta_info.c283 if (sta->vlan_id) in ap_free_sta()
284 vlan_remove_dynamic(hapd, sta->vlan_id); in ap_free_sta()
911 int vlan_id = MAX_VLAN_ID + 2; in ap_sta_get_free_vlan_id() local
915 if (vlan->vlan_id == vlan_id) { in ap_sta_get_free_vlan_id()
916 vlan_id++; in ap_sta_get_free_vlan_id()
920 return vlan_id; in ap_sta_get_free_vlan_id()
928 int old_vlan_id, vlan_id = 0, ret = 0; in ap_sta_set_vlan() local
931 if (hapd->conf->ssid.per_sta_vif && !sta->vlan_id) { in ap_sta_set_vlan()
934 !hapd->conf->ssid.per_sta_vif && sta->vlan_id) { in ap_sta_set_vlan()
944 vlan_id = ap_sta_get_free_vlan_id(hapd); in ap_sta_set_vlan()
[all …]
Dap_config.c316 int vlan_id = 0; in hostapd_config_read_wpa_psk() local
351 vlan_id = atoi(value); in hostapd_config_read_wpa_psk()
380 psk->vlan_id = vlan_id; in hostapd_config_read_wpa_psk()
994 const u8 *addr, struct vlan_description *vlan_id) in hostapd_maclist_found() argument
1005 if (vlan_id) in hostapd_maclist_found()
1006 *vlan_id = list[middle].vlan_id; in hostapd_maclist_found()
1053 v->vlan_id == VLAN_ID_WILDCARD) in hostapd_vlan_valid()
1061 const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id) in hostapd_get_vlan_id_ifname() argument
1065 if (v->vlan_id == vlan_id) in hostapd_get_vlan_id_ifname()
1075 const u8 *prev_psk, int *vlan_id) in hostapd_get_psk() argument
[all …]
Dieee802_11_auth.h22 struct vlan_description vlan_id; member
29 struct vlan_description *vlan_id);
Dwpa_auth_glue.c319 int *vlan_id) in hostapd_wpa_auth_get_psk() argument
325 if (vlan_id) in hostapd_wpa_auth_get_psk()
326 *vlan_id = 0; in hostapd_wpa_auth_get_psk()
363 vlan_id); in hostapd_wpa_auth_get_psk()
372 if (vlan_id) in hostapd_wpa_auth_get_psk()
373 *vlan_id = 0; in hostapd_wpa_auth_get_psk()
423 static int hostapd_wpa_auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg, in hostapd_wpa_auth_set_key() argument
430 if (vlan_id > 0) { in hostapd_wpa_auth_set_key()
431 ifname = hostapd_get_vlan_id_ifname(hapd->conf->vlan, vlan_id); in hostapd_wpa_auth_set_key()
481 return hostapd_drv_set_key(ifname, hapd, alg, addr, idx, vlan_id, 1, in hostapd_wpa_auth_set_key()
[all …]
Dap_config.h63 struct vlan_description vlan_id; member
132 int vlan_id; /* VLAN ID or -1 (VLAN_ID_WILDCARD) for wildcard entry */ member
165 int vlan_id; member
262 int vlan_id; member
1126 const u8 *addr, struct vlan_description *vlan_id);
1130 const u8 *prev_psk, int *vlan_id);
1135 int vlan_id);
Dwpa_auth.c120 int *vlan_id) in wpa_auth_get_psk() argument
125 prev_psk, psk_len, vlan_id); in wpa_auth_get_psk()
139 int vlan_id, in wpa_auth_set_key() argument
146 return wpa_auth->cb->set_key(wpa_auth->cb_ctx, vlan_id, alg, addr, idx, in wpa_auth_set_key()
283 const u8 *addr, int vlan_id) in wpa_auth_update_vlan() argument
287 return wpa_auth->cb->update_vlan(wpa_auth->cb_ctx, addr, vlan_id); in wpa_auth_update_vlan()
416 int vlan_id, int delay_init) in wpa_group_init() argument
425 group->vlan_id = vlan_id; in wpa_group_init()
922 int vlan_id = 0; in wpa_try_alt_snonce() local
930 &vlan_id); in wpa_try_alt_snonce()
[all …]
Dwpa_auth.h282 int *vlan_id);
284 int (*set_key)(void *ctx, int vlan_id, enum wpa_alg alg,
299 int (*update_vlan)(void *ctx, const u8 *addr, int vlan_id);
430 int wpa_auth_sta_set_vlan(struct wpa_state_machine *sm, int vlan_id);
474 int wpa_auth_ensure_group(struct wpa_authenticator *wpa_auth, int vlan_id);
475 int wpa_auth_release_group(struct wpa_authenticator *wpa_auth, int vlan_id);
Dap_drv_ops.h94 int key_idx, int vlan_id, int set_tx,
161 const u8 *addr, int vlan_id) in hostapd_drv_set_sta_vlan() argument
166 vlan_id); in hostapd_drv_set_sta_vlan()
Dieee802_11.c528 if (pw && pw->vlan_id) { in auth_build_sae_commit()
534 sta->sae->tmp->vlan_id = pw->vlan_id; in auth_build_sae_commit()
845 if (sta->sae->tmp && sta->sae->tmp->vlan_id > 0) { in sae_accept_sta()
848 MAC2STR(sta->addr), sta->sae->tmp->vlan_id); in sae_accept_sta()
852 vlan_desc.untagged = sta->sae->tmp->vlan_id; in sae_accept_sta()
856 sta->sae->tmp->vlan_id); in sae_accept_sta()
864 MACSTR, sta->sae->tmp->vlan_id, in sae_accept_sta()
2194 struct vlan_description *vlan_id = &info->vlan_id; in ieee802_11_set_radius_info() local
2199 if (vlan_id->notempty && in ieee802_11_set_radius_info()
2200 !hostapd_vlan_valid(hapd->conf->vlan, vlan_id)) { in ieee802_11_set_radius_info()
[all …]
/external/wpa_supplicant_8/hostapd/
Dconfig_file.h18 int vlan_id, const u8 *addr);
Dconfig_file.c33 int line = 0, vlan_id; in hostapd_config_read_vlan_file() local
59 vlan_id = VLAN_ID_WILDCARD; in hostapd_config_read_vlan_file()
62 vlan_id = strtol(buf, &pos, 10); in hostapd_config_read_vlan_file()
63 if (buf == pos || vlan_id < 1 || in hostapd_config_read_vlan_file()
64 vlan_id > MAX_VLAN_ID) { in hostapd_config_read_vlan_file()
103 vlan->vlan_id = vlan_id; in hostapd_config_read_vlan_file()
104 vlan->vlan_desc.untagged = vlan_id; in hostapd_config_read_vlan_file()
105 vlan->vlan_desc.notempty = !!vlan_id; in hostapd_config_read_vlan_file()
128 int vlan_id, const u8 *addr) in hostapd_add_acl_maclist() argument
140 os_memset(&(*acl)[*num].vlan_id, 0, sizeof((*acl)[*num].vlan_id)); in hostapd_add_acl_maclist()
[all …]
/external/linux-kselftest/tools/testing/selftests/net/forwarding/
Dgre_inner_v4_multipath.sh156 flower vlan_id 111 action pass
158 flower vlan_id 222 action pass
Dgre_multipath.sh137 flower vlan_id 111 action pass
139 flower vlan_id 222 action pass
Dgre_inner_v6_multipath.sh156 flower vlan_id 111 action pass
158 flower vlan_id 222 action pass
Dip6gre_inner_v4_multipath.sh155 flower vlan_id 111 action pass
157 flower vlan_id 222 action pass
Dip6gre_inner_v6_multipath.sh155 flower vlan_id 111 action pass
157 flower vlan_id 222 action pass
Dtc_flower.sh259 flower vlan_id 75 $tcflags action drop
261 flower vlan_id 85 $tcflags action drop
/external/wpa_supplicant_8/src/radius/
Dradius.c1461 int j, taggedidx = 0, vlan_id; in radius_msg_get_vlanid() local
1503 vlan_id = atoi(buf); in radius_msg_get_vlanid()
1504 if (vlan_id <= 0) in radius_msg_get_vlanid()
1507 tun->vlanid = vlan_id; in radius_msg_get_vlanid()
1512 vlan_id = WPA_GET_BE24(data + 1); in radius_msg_get_vlanid()
1513 if (vlan_id <= 0) in radius_msg_get_vlanid()
1516 *untagged = vlan_id; in radius_msg_get_vlanid()
1519 tagged[taggedidx++] = vlan_id; in radius_msg_get_vlanid()
/external/wpa_supplicant_8/wpa_supplicant/
Dmesh_rsn.c79 size_t *psk_len, int *vlan_id) in auth_get_psk() argument
87 if (vlan_id) in auth_get_psk()
88 *vlan_id = 0; in auth_get_psk()
102 static int auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg, in auth_set_key() argument
Dibss_rsn.c277 size_t *psk_len, int *vlan_id) in auth_get_psk() argument
283 if (vlan_id) in auth_get_psk()
284 *vlan_id = 0; in auth_get_psk()
315 static int auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg, in auth_set_key() argument
/external/wpa_supplicant_8/src/common/
Dsae.h45 int vlan_id; member
/external/bcc/examples/networking/vlan_learning/
Dvlan_learning.py72 vlan_id=available_vlans.pop(0)).commit()

12