Home
last modified time | relevance | path

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

12

/external/wpa_supplicant_8/src/ap/
Dvlan_init.c491 vlan->vlan_id); in vlan_newlink()
500 if (!vlan_add(tagged_interface, vlan->vlan_id)) in vlan_newlink()
504 "vlan%d", vlan->vlan_id); in vlan_newlink()
538 vlan->vlan_id); in vlan_dellink()
545 "vlan%d", vlan->vlan_id); in vlan_dellink()
759 if (vlan->vlan_id != VLAN_ID_WILDCARD) { in vlan_dynamic_add()
789 if (vlan->vlan_id != VLAN_ID_WILDCARD && in vlan_dynamic_remove()
830 int vlan_id) in vlan_add_dynamic() argument
835 if (vlan == NULL || vlan_id <= 0 || vlan_id > MAX_VLAN_ID || in vlan_add_dynamic()
836 vlan->vlan_id != VLAN_ID_WILDCARD) in vlan_add_dynamic()
[all …]
Dvlan_init.h24 int vlan_id);
25 int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id);
41 int vlan_id) in vlan_add_dynamic() argument
46 static inline int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id) in vlan_remove_dynamic() argument
Dieee802_11_auth.c37 int vlan_id; member
68 u32 *acct_interim_interval, int *vlan_id, in hostapd_acl_cache_get() argument
88 if (vlan_id) in hostapd_acl_cache_get()
89 *vlan_id = entry->vlan_id; in hostapd_acl_cache_get()
221 u32 *acct_interim_interval, int *vlan_id, in hostapd_allowed_address() argument
228 if (vlan_id) in hostapd_allowed_address()
229 *vlan_id = 0; in hostapd_allowed_address()
236 hapd->conf->num_accept_mac, addr, vlan_id)) in hostapd_allowed_address()
240 hapd->conf->num_deny_mac, addr, vlan_id)) in hostapd_allowed_address()
258 vlan_id, psk, has_psk); in hostapd_allowed_address()
[all …]
Dsta_info.c591 if (sta->vlan_id == old_vlanid) in ap_sta_bind_vlan()
606 sta->vlan_id = 0; in ap_sta_bind_vlan()
607 else if (sta->vlan_id > 0) { in ap_sta_bind_vlan()
610 if (vlan->vlan_id == sta->vlan_id || in ap_sta_bind_vlan()
611 vlan->vlan_id == VLAN_ID_WILDCARD) { in ap_sta_bind_vlan()
619 if (sta->vlan_id > 0 && vlan == NULL) { in ap_sta_bind_vlan()
623 sta->vlan_id); in ap_sta_bind_vlan()
625 } else if (sta->vlan_id > 0 && vlan->vlan_id == VLAN_ID_WILDCARD) { in ap_sta_bind_vlan()
626 vlan = vlan_add_dynamic(hapd, vlan, sta->vlan_id); in ap_sta_bind_vlan()
632 sta->vlan_id); in ap_sta_bind_vlan()
[all …]
Dieee802_1x.c235 size_t vlan_id) in ieee802_1x_get_group() argument
239 if (vlan_id == 0) in ieee802_1x_get_group()
242 if (vlan_id <= ssid->max_dyn_vlan_keys && ssid->dyn_vlan_keys && in ieee802_1x_get_group()
243 ssid->dyn_vlan_keys[vlan_id]) in ieee802_1x_get_group()
244 return ssid->dyn_vlan_keys[vlan_id]; in ieee802_1x_get_group()
248 (unsigned long) vlan_id); in ieee802_1x_get_group()
250 ifname = hostapd_get_vlan_id_ifname(hapd->conf->vlan, vlan_id); in ieee802_1x_get_group()
254 (unsigned long) vlan_id); in ieee802_1x_get_group()
259 int size = (vlan_id + 1) * sizeof(ssid->dyn_vlan_keys[0]); in ieee802_1x_get_group()
263 ssid->max_dyn_vlan_keys = vlan_id; in ieee802_1x_get_group()
[all …]
Dpmksa_cache_auth.c144 entry->vlan_id = ((struct sta_info *) eapol->sta)->vlan_id; in pmksa_cache_from_eapol_data()
176 ((struct sta_info *) eapol->sta)->vlan_id = entry->vlan_id; in pmksa_cache_to_eapol_data()
306 entry->vlan_id = old_entry->vlan_id; in pmksa_cache_add_okc()
Dap_config.c510 const u8 *addr, int *vlan_id) in hostapd_maclist_found() argument
521 if (vlan_id) in hostapd_maclist_found()
522 *vlan_id = list[middle].vlan_id; in hostapd_maclist_found()
550 const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id) in hostapd_get_vlan_id_ifname() argument
554 if (v->vlan_id == vlan_id || v->vlan_id == VLAN_ID_WILDCARD) in hostapd_get_vlan_id_ifname()
Dap_config.h24 int vlan_id; member
80 int vlan_id; /* VLAN ID or -1 (VLAN_ID_WILDCARD) for wildcard entry */ member
435 const u8 *addr, int *vlan_id);
443 int vlan_id);
Dieee802_11_auth.h21 u32 *acct_interim_interval, int *vlan_id,
Dwpa_auth.c102 int vlan_id, in wpa_auth_set_key() argument
108 return wpa_auth->cb.set_key(wpa_auth->cb.ctx, vlan_id, alg, addr, idx, in wpa_auth_set_key()
331 int vlan_id, int delay_init) in wpa_group_init() argument
340 group->vlan_id = vlan_id; in wpa_group_init()
2387 "GTK_INIT (VLAN-ID %d)", group->vlan_id); in wpa_group_gtk_init()
2437 "SETKEYS (VLAN-ID %d)", group->vlan_id); in wpa_group_setkeys()
2471 if (wpa_auth_set_key(wpa_auth, group->vlan_id, in wpa_group_config_group_keys()
2479 wpa_auth_set_key(wpa_auth, group->vlan_id, WPA_ALG_IGTK, in wpa_group_config_group_keys()
2494 "SETKEYSDONE (VLAN-ID %d)", group->vlan_id); in wpa_group_setkeysdone()
2895 wpa_auth_add_group(struct wpa_authenticator *wpa_auth, int vlan_id) in wpa_auth_add_group() argument
[all …]
Dpmksa_cache_auth.h30 int vlan_id; member
Dap_drv_ops.h112 const u8 *addr, int vlan_id) in hostapd_drv_set_sta_vlan() argument
117 vlan_id); in hostapd_drv_set_sta_vlan()
Dieee802_11.c309 int vlan_id = 0; in handle_auth() local
374 &acct_interim_interval, &vlan_id, in handle_auth()
399 if (vlan_id > 0) { in handle_auth()
401 vlan_id) == NULL) { in handle_auth()
405 vlan_id); in handle_auth()
409 sta->vlan_id = vlan_id; in handle_auth()
411 HOSTAPD_LEVEL_INFO, "VLAN ID %d", sta->vlan_id); in handle_auth()
1588 } else if (sta->vlan_id) { in handle_assoc_cb()
Dwpa_auth.h184 int (*set_key)(void *ctx, int vlan_id, enum wpa_alg alg,
259 int wpa_auth_sta_set_vlan(struct wpa_state_machine *sm, int vlan_id);
Dwpa_auth_glue.c215 static int hostapd_wpa_auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg, in hostapd_wpa_auth_set_key() argument
222 if (vlan_id > 0) { in hostapd_wpa_auth_set_key()
223 ifname = hostapd_get_vlan_id_ifname(hapd->conf->vlan, vlan_id); in hostapd_wpa_auth_set_key()
Dsta_info.h95 int vlan_id; member
Dwpa_auth_i.h128 int vlan_id; member
/external/kernel-headers/original/linux/
Dif_vlan.h95 u16 vlan_id) in vlan_group_get_device() argument
98 array = vg->vlan_devices_arrays[vlan_id / VLAN_GROUP_ARRAY_PART_LEN]; in vlan_group_get_device()
99 return array ? array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] : NULL; in vlan_group_get_device()
103 u16 vlan_id, in vlan_group_set_device() argument
109 array = vg->vlan_devices_arrays[vlan_id / VLAN_GROUP_ARRAY_PART_LEN]; in vlan_group_set_device()
110 array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] = dev; in vlan_group_set_device()
/external/wpa_supplicant_6/wpa_supplicant/tests/
Dlink_test.c80 const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id) in hostapd_get_vlan_id_ifname() argument
/external/wpa_supplicant_8/wpa_supplicant/tests/
Dlink_test.c80 const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id) in hostapd_get_vlan_id_ifname() argument
/external/wpa_supplicant_8/hostapd/
Dconfig_file.c34 int line = 0, vlan_id; in hostapd_config_read_vlan_file() local
60 vlan_id = VLAN_ID_WILDCARD; in hostapd_config_read_vlan_file()
63 vlan_id = strtol(buf, &pos, 10); in hostapd_config_read_vlan_file()
64 if (buf == pos || vlan_id < 1 || in hostapd_config_read_vlan_file()
65 vlan_id > MAX_VLAN_ID) { in hostapd_config_read_vlan_file()
95 vlan->vlan_id = vlan_id; in hostapd_config_read_vlan_file()
127 int vlan_id; in hostapd_config_read_maclist() local
161 vlan_id = 0; in hostapd_config_read_maclist()
168 vlan_id = atoi(pos); in hostapd_config_read_maclist()
179 (*acl)[*num].vlan_id = vlan_id; in hostapd_config_read_maclist()
/external/qemu/
Dnet.h129 void net_host_device_remove(Monitor *mon, int vlan_id, const char *device);
Dnet-android.c2195 int vlan_id, ret; in net_client_init() local
2199 vlan_id = 0; in net_client_init()
2201 vlan_id = strtol(buf, NULL, 0); in net_client_init()
2203 vlan = qemu_find_vlan(vlan_id); in net_client_init()
2465 snprintf(buf, sizeof(buf), "qemu-vlan%d.pcap", vlan_id); in net_client_init()
2520 void net_host_device_remove(Monitor *mon, int vlan_id, const char *device) in net_host_device_remove() argument
2525 vlan = qemu_find_vlan(vlan_id); in net_host_device_remove()
Dnet.c2091 int vlan_id, ret; in net_client_init() local
2095 vlan_id = 0; in net_client_init()
2097 vlan_id = strtol(buf, NULL, 0); in net_client_init()
2099 vlan = qemu_find_vlan(vlan_id); in net_client_init()
2361 snprintf(buf, sizeof(buf), "qemu-vlan%d.pcap", vlan_id); in net_client_init()
2416 void net_host_device_remove(Monitor *mon, int vlan_id, const char *device) in net_host_device_remove() argument
2421 vlan = qemu_find_vlan(vlan_id); in net_host_device_remove()
Dvl.c596 static void bt_vhci_add(int vlan_id) in bt_vhci_add() argument
598 struct bt_scatternet_s *vlan = qemu_find_bt_vlan(vlan_id); in bt_vhci_add()
602 "an empty scatternet %i\n", vlan_id); in bt_vhci_add()
610 int vlan_id = 0; in bt_device_add() local
618 vlan_id = strtol(endp + 6, &endp, 0); in bt_device_add()
625 vlan = qemu_find_bt_vlan(vlan_id); in bt_device_add()
629 "an empty scatternet %i\n", vlan_id); in bt_device_add()

12