Home
last modified time | relevance | path

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

12

/external/wpa_supplicant_8/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()
148 vlan->vlan_id = VLAN_ID_WILDCARD; in vlan_init()
175 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()
255 struct vlan_description *vlan_id, in hostapd_allowed_address() argument
265 if (vlan_id) in hostapd_allowed_address()
266 os_memset(vlan_id, 0, sizeof(*vlan_id)); in hostapd_allowed_address()
[all …]
Dsta_info.c282 if (sta->vlan_id) in ap_free_sta()
283 vlan_remove_dynamic(hapd, sta->vlan_id); in ap_free_sta()
857 int vlan_id = MAX_VLAN_ID + 2; in ap_sta_get_free_vlan_id() local
861 if (vlan->vlan_id == vlan_id) { in ap_sta_get_free_vlan_id()
862 vlan_id++; in ap_sta_get_free_vlan_id()
866 return vlan_id; in ap_sta_get_free_vlan_id()
874 int old_vlan_id, vlan_id = 0, ret = 0; in ap_sta_set_vlan() local
880 if (hapd->conf->ssid.per_sta_vif && !sta->vlan_id) { in ap_sta_set_vlan()
883 !hapd->conf->ssid.per_sta_vif && sta->vlan_id) { in ap_sta_set_vlan()
893 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
Dieee802_11_auth.h20 struct vlan_description *vlan_id);
24 struct vlan_description *vlan_id,
Dwpa_auth.c130 int vlan_id, in wpa_auth_set_key() argument
136 return wpa_auth->cb->set_key(wpa_auth->cb_ctx, vlan_id, alg, addr, idx, in wpa_auth_set_key()
362 int vlan_id, int delay_init) in wpa_group_init() argument
371 group->vlan_id = vlan_id; in wpa_group_init()
3209 "GTK_INIT (VLAN-ID %d)", group->vlan_id); in wpa_group_gtk_init()
3348 "SETKEYS (VLAN-ID %d)", group->vlan_id); in wpa_group_setkeys()
3382 if (wpa_auth_set_key(wpa_auth, group->vlan_id, in wpa_group_config_group_keys()
3397 wpa_auth_set_key(wpa_auth, group->vlan_id, alg, in wpa_group_config_group_keys()
3435 "SETKEYSDONE (VLAN-ID %d)", group->vlan_id); in wpa_group_setkeysdone()
3950 group->vlan_id); in wpa_group_free()
[all …]
Dap_config.c655 const u8 *addr, struct vlan_description *vlan_id) in hostapd_maclist_found() argument
666 if (vlan_id) in hostapd_maclist_found()
667 *vlan_id = list[middle].vlan_id; in hostapd_maclist_found()
714 v->vlan_id == VLAN_ID_WILDCARD) in hostapd_vlan_valid()
722 const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id) in hostapd_get_vlan_id_ifname() argument
726 if (v->vlan_id == vlan_id) in hostapd_get_vlan_id_ifname()
Dwpa_auth.h214 int (*set_key)(void *ctx, int vlan_id, enum wpa_alg alg,
321 int wpa_auth_sta_set_vlan(struct wpa_state_machine *sm, int vlan_id);
358 int wpa_auth_ensure_group(struct wpa_authenticator *wpa_auth, int vlan_id);
359 int wpa_auth_release_group(struct wpa_authenticator *wpa_auth, int vlan_id);
Dap_config.h61 struct vlan_description vlan_id; member
122 int vlan_id; /* VLAN ID or -1 (VLAN_ID_WILDCARD) for wildcard entry */ member
771 const u8 *addr, struct vlan_description *vlan_id);
780 int vlan_id);
Dieee802_11.c1309 struct vlan_description *vlan_id, in ieee802_11_allowed_address() argument
1315 os_memset(vlan_id, 0, sizeof(*vlan_id)); in ieee802_11_allowed_address()
1318 vlan_id, psk, identity, radius_cui); in ieee802_11_allowed_address()
1345 struct vlan_description *vlan_id, in ieee802_11_set_radius_info() argument
1349 if (vlan_id->notempty && in ieee802_11_set_radius_info()
1350 !hostapd_vlan_valid(hapd->conf->vlan, vlan_id)) { in ieee802_11_set_radius_info()
1354 vlan_id->untagged, in ieee802_11_set_radius_info()
1355 vlan_id->tagged[0] ? "+" : ""); in ieee802_11_set_radius_info()
1358 if (ap_sta_set_vlan(hapd, sta, vlan_id) < 0) in ieee802_11_set_radius_info()
1360 if (sta->vlan_id) in ieee802_11_set_radius_info()
[all …]
Dwpa_auth_glue.c300 static int hostapd_wpa_auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg, in hostapd_wpa_auth_set_key() argument
307 if (vlan_id > 0) { in hostapd_wpa_auth_set_key()
308 ifname = hostapd_get_vlan_id_ifname(hapd->conf->vlan, vlan_id); in hostapd_wpa_auth_set_key()
Dap_drv_ops.h144 const u8 *addr, int vlan_id) in hostapd_drv_set_sta_vlan() argument
149 vlan_id); in hostapd_drv_set_sta_vlan()
Dwpa_auth_i.h147 int vlan_id; member
Dsta_info.h153 int vlan_id; /* 0: none, >0: VID */ member
Dctrl_iface_ap.c159 if (sta->vlan_id > 0) { in hostapd_ctrl_iface_sta_mib()
161 sta->vlan_id); in hostapd_ctrl_iface_sta_mib()
Dieee802_1x.c227 if (sta->vlan_id > 0) { in ieee802_1x_tx_key()
1803 if (sta->vlan_id > 0) { in ieee802_1x_receive_auth()
1807 "VLAN ID %d", sta->vlan_id); in ieee802_1x_receive_auth()
Dwpa_auth_ft.c775 int vlan_id, in wpa_auth_set_key() argument
781 return wpa_auth->cb->set_key(wpa_auth->cb_ctx, vlan_id, alg, addr, idx, in wpa_auth_set_key()
/external/wpa_supplicant_8/src/radius/
Dradius.c1458 int j, taggedidx = 0, vlan_id; in radius_msg_get_vlanid() local
1500 vlan_id = atoi(buf); in radius_msg_get_vlanid()
1501 if (vlan_id <= 0) in radius_msg_get_vlanid()
1504 tun->vlanid = vlan_id; in radius_msg_get_vlanid()
1509 vlan_id = WPA_GET_BE24(data + 1); in radius_msg_get_vlanid()
1510 if (vlan_id <= 0) in radius_msg_get_vlanid()
1513 *untagged = vlan_id; in radius_msg_get_vlanid()
1516 tagged[taggedidx++] = vlan_id; in radius_msg_get_vlanid()
/external/wpa_supplicant_8/hostapd/
Dconfig_file.c39 int line = 0, vlan_id; in hostapd_config_read_vlan_file() local
65 vlan_id = VLAN_ID_WILDCARD; in hostapd_config_read_vlan_file()
68 vlan_id = strtol(buf, &pos, 10); in hostapd_config_read_vlan_file()
69 if (buf == pos || vlan_id < 1 || in hostapd_config_read_vlan_file()
70 vlan_id > MAX_VLAN_ID) { in hostapd_config_read_vlan_file()
99 vlan->vlan_id = vlan_id; in hostapd_config_read_vlan_file()
100 vlan->vlan_desc.untagged = vlan_id; in hostapd_config_read_vlan_file()
101 vlan->vlan_desc.notempty = !!vlan_id; in hostapd_config_read_vlan_file()
130 int vlan_id; in hostapd_config_read_maclist() local
181 vlan_id = 0; in hostapd_config_read_maclist()
[all …]
Dctrl_iface.c1384 struct vlan_description vlan_id; in hostapd_ctrl_iface_set() local
1395 &vlan_id) && in hostapd_ctrl_iface_set()
1396 (!vlan_id.notempty || in hostapd_ctrl_iface_set()
1397 !vlan_compare(&vlan_id, sta->vlan_desc))) in hostapd_ctrl_iface_set()
1408 sta->addr, &vlan_id) || in hostapd_ctrl_iface_set()
1409 (vlan_id.notempty && in hostapd_ctrl_iface_set()
1410 vlan_compare(&vlan_id, sta->vlan_desc))) in hostapd_ctrl_iface_set()
/external/tcpdump/
Dprint-sflow.c290 uint8_t vlan_id[4]; member
429 EXTRACT_32BITS(sflow_vlan_counter->vlan_id), in print_sflow_counter_vlan()
Dprint-juniper.c460 uint8_t vlan_id[2]; in juniper_ggsn_print() member
476 EXTRACT_16BITS(&gh->vlan_id[0]))); in juniper_ggsn_print()
/external/wpa_supplicant_8/wpa_supplicant/
Dmesh_rsn.c97 static int auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg, in auth_set_key() argument
Dibss_rsn.c291 static int auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg, in auth_set_key() argument
/external/syslinux/gpxe/src/drivers/net/e1000/
De1000_hw.h374 uint16_t vlan_id; member
387 uint16_t vlan_id; member

12