Home
last modified time | relevance | path

Searched refs:vlan (Results 1 - 25 of 39) sorted by relevance

12

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
H A Dvlan_init.c22 static int vlan_if_add(struct hostapd_data *hapd, struct hostapd_vlan *vlan, in vlan_if_add() argument
34 vlan->ifname); in vlan_if_add()
39 if (!iface_exists(vlan->ifname)) in vlan_if_add()
40 ret = hostapd_vlan_if_add(hapd, vlan->ifname); in vlan_if_add()
49 ifconfig_up(vlan->ifname); /* else wpa group will fail fatal */ in vlan_if_add()
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()
60 wpa_printf(MSG_ERROR, "WPA deinit of %s failed", vlan->ifname); in vlan_if_add()
63 if (hostapd_vlan_if_remove(hapd, vlan in vlan_if_add()
70 vlan_if_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan) vlan_if_remove() argument
84 vlan_dynamic_add(struct hostapd_data *hapd, struct hostapd_vlan *vlan) vlan_dynamic_add() argument
107 vlan_dynamic_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan) vlan_dynamic_remove() argument
143 struct hostapd_vlan *vlan; vlan_init() local
186 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vlan_id, struct vlan_description *vlan_desc) vlan_add_dynamic() argument
239 struct hostapd_vlan *vlan; vlan_remove_dynamic() local
[all...]
H A Dvlan_full.c399 ret = os_snprintf(vlan_ifname, sizeof(vlan_ifname), "vlan%d", in vlan_newlink_tagged()
421 struct hostapd_vlan *vlan, int vid) in vlan_bridge_name()
426 if (vlan->bridge[0]) { in vlan_bridge_name()
427 os_strlcpy(br_name, vlan->bridge, IFNAMSIZ); in vlan_bridge_name()
464 struct hostapd_vlan *vlan; in vlan_newlink() local
469 for (vlan = hapd->conf->vlan; vlan; vlan = vlan in vlan_newlink()
420 vlan_bridge_name(char *br_name, struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vid) vlan_bridge_name() argument
566 struct hostapd_vlan *first, *prev, *vlan = hapd->conf->vlan; vlan_dellink() local
[all...]
H A Dsta_info.c42 #include "vlan.h"
960 struct hostapd_vlan *vlan; in ap_sta_get_free_vlan_id() local
964 for (vlan = hapd->conf->vlan; vlan; vlan = vlan->next) { in ap_sta_get_free_vlan_id()
965 if (vlan->vlan_id == vlan_id) { in ap_sta_get_free_vlan_id()
977 struct hostapd_vlan *vlan = NULL, *wildcard_vlan = NULL; in ap_sta_set_vlan() local
996 for (vlan in ap_sta_set_vlan()
1081 struct hostapd_vlan *vlan = NULL; ap_sta_bind_vlan() local
[all...]
H A Dwpa_auth_ft.c225 struct vlan_description *vlan) in wpa_ft_rrb_get_tlv_vlan()
236 os_memset(vlan, 0, sizeof(*vlan)); in wpa_ft_rrb_get_tlv_vlan()
281 vlan->untagged = vlan_id; in wpa_ft_rrb_get_tlv_vlan()
285 vlan->tagged[taggedidx] = vlan_id; in wpa_ft_rrb_get_tlv_vlan()
298 qsort(vlan->tagged, taggedidx, sizeof(int), cmp_int); in wpa_ft_rrb_get_tlv_vlan()
300 vlan->notempty = vlan->untagged || vlan->tagged[0]; in wpa_ft_rrb_get_tlv_vlan()
358 static size_t wpa_ft_vlan_len(const struct vlan_description *vlan) in wpa_ft_vlan_len() argument
224 wpa_ft_rrb_get_tlv_vlan(const u8 *plain, const size_t plain_len, struct vlan_description *vlan) wpa_ft_rrb_get_tlv_vlan() argument
379 wpa_ft_vlan_lin(const struct vlan_description *vlan, u8 *start, u8 *endpos) wpa_ft_vlan_lin() argument
433 wpa_ft_rrb_lin(const struct tlv_list *tlvs1, const struct tlv_list *tlvs2, const struct vlan_description *vlan, u8 **plain, size_t *plain_len) wpa_ft_rrb_lin() argument
519 wpa_ft_rrb_build(const u8 *key, const size_t key_len, const struct tlv_list *tlvs_enc0, const struct tlv_list *tlvs_enc1, const struct tlv_list *tlvs_auth, const struct vlan_description *vlan, const u8 *src_addr, u8 type, u8 **packet, size_t *packet_len) wpa_ft_rrb_build() argument
681 wpa_ft_set_vlan(struct wpa_authenticator *wpa_auth, const u8 *sta_addr, struct vlan_description *vlan) wpa_ft_set_vlan() argument
690 wpa_ft_get_vlan(struct wpa_authenticator *wpa_auth, const u8 *sta_addr, struct vlan_description *vlan) wpa_ft_get_vlan() argument
1176 struct vlan_description *vlan; global() member
1194 struct vlan_description *vlan; global() member
1322 wpa_ft_store_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0, size_t pmk_r0_len, const u8 *pmk_r0_name, int pairwise, const struct vlan_description *vlan, int expires_in, int session_timeout, const u8 *identity, size_t identity_len, const u8 *radius_cui, size_t radius_cui_len) wpa_ft_store_pmk_r0() argument
1409 wpa_ft_store_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1, size_t pmk_r1_len, const u8 *pmk_r1_name, int pairwise, const struct vlan_description *vlan, int expires_in, int session_timeout, const u8 *identity, size_t identity_len, const u8 *radius_cui, size_t radius_cui_len) wpa_ft_store_pmk_r1() argument
1476 wpa_ft_fetch_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1_name, u8 *pmk_r1, size_t *pmk_r1_len, int *pairwise, struct vlan_description *vlan, const u8 **identity, size_t *identity_len, const u8 **radius_cui, size_t *radius_cui_len, int *session_timeout) wpa_ft_fetch_pmk_r1() argument
2056 struct vlan_description vlan; wpa_ft_store_pmk_fils() local
2097 struct vlan_description vlan; wpa_auth_derive_ptk_ft() local
2979 wpa_ft_local_derive_pmk_r1(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, const u8 *r0kh_id, size_t r0kh_id_len, const u8 *req_pmk_r0_name, const u8 *req_pmk_r1_name, u8 *out_pmk_r1, int *out_pairwise, struct vlan_description *vlan, const u8 **identity, size_t *identity_len, const u8 **radius_cui, size_t *radius_cui_len, int *out_session_timeout) wpa_ft_local_derive_pmk_r1() argument
3065 struct vlan_description vlan; wpa_ft_process_auth_req() local
3989 struct vlan_description vlan; wpa_ft_rrb_rx_r1() local
[all...]
H A Dvlan_init.h17 struct hostapd_vlan *vlan,
32 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, in vlan_add_dynamic() argument
H A Dap_config.c30 struct hostapd_vlan *vlan, *prev; in hostapd_config_free_vlan() local
32 vlan = bss->vlan; in hostapd_config_free_vlan()
34 while (vlan) { in hostapd_config_free_vlan()
35 prev = vlan; in hostapd_config_free_vlan()
36 vlan = vlan->next; in hostapd_config_free_vlan()
40 bss->vlan = NULL; in hostapd_config_free_vlan()
1059 int hostapd_vlan_valid(struct hostapd_vlan *vlan, in hostapd_vlan_valid() argument
1062 struct hostapd_vlan *v = vlan; in hostapd_vlan_valid()
1086 hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id) hostapd_get_vlan_id_ifname() argument
[all...]
H A Dwpa_auth_glue.c462 ifname = hostapd_get_vlan_id_ifname(hapd->conf->vlan, vlan_id); in hostapd_wpa_auth_set_key()
975 if (!hostapd_vlan_valid(hapd->conf->vlan, &vlan_desc)) { in hostapd_wpa_auth_update_vlan()
1130 struct vlan_description *vlan) in hostapd_wpa_auth_set_vlan()
1139 if (vlan->notempty && in hostapd_wpa_auth_set_vlan()
1140 !hostapd_vlan_valid(hapd->conf->vlan, vlan)) { in hostapd_wpa_auth_set_vlan()
1144 vlan->untagged, vlan->tagged[0] ? "+" : ""); in hostapd_wpa_auth_set_vlan()
1148 if (ap_sta_set_vlan(hapd, sta, vlan) < 0) in hostapd_wpa_auth_set_vlan()
1163 struct vlan_description *vlan) in hostapd_wpa_auth_get_vlan()
1129 hostapd_wpa_auth_set_vlan(void *ctx, const u8 *sta_addr, struct vlan_description *vlan) hostapd_wpa_auth_set_vlan() argument
1162 hostapd_wpa_auth_get_vlan(void *ctx, const u8 *sta_addr, struct vlan_description *vlan) hostapd_wpa_auth_get_vlan() argument
[all...]
H A Dvlan_util.h23 int vlan_if_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan);
H A Dap_config.h21 #include "vlan.h"
102 char vlan[IFNAMSIZ + 1]; member
463 struct hostapd_vlan *vlan; member
1187 int hostapd_vlan_valid(struct hostapd_vlan *vlan,
1189 const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan,
H A DMakefile48 vlan.o \
H A Dwpa_auth_ie.c978 struct vlan_description *vlan; in wpa_validate_wpa_ie() local
980 vlan = sm->pmksa->vlan_desc; in wpa_validate_wpa_ie()
982 "PMKID found from PMKSA cache eap_type=%d vlan=%d%s", in wpa_validate_wpa_ie()
984 vlan ? vlan->untagged : 0, in wpa_validate_wpa_ie()
985 (vlan && vlan->tagged[0]) ? "+" : ""); in wpa_validate_wpa_ie()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
H A Dvlan_init.c22 static int vlan_if_add(struct hostapd_data *hapd, struct hostapd_vlan *vlan, in vlan_if_add() argument
32 vlan->ifname); in vlan_if_add()
36 if (!iface_exists(vlan->ifname)) in vlan_if_add()
37 ret = hostapd_vlan_if_add(hapd, vlan->ifname); in vlan_if_add()
46 ifconfig_up(vlan->ifname); /* else wpa group will fail fatal */ in vlan_if_add()
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()
57 wpa_printf(MSG_ERROR, "WPA deinit of %s failed", vlan->ifname); in vlan_if_add()
60 if (hostapd_vlan_if_remove(hapd, vlan in vlan_if_add()
67 vlan_if_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan) vlan_if_remove() argument
81 vlan_dynamic_add(struct hostapd_data *hapd, struct hostapd_vlan *vlan) vlan_dynamic_add() argument
104 vlan_dynamic_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan) vlan_dynamic_remove() argument
140 struct hostapd_vlan *vlan; vlan_init() local
183 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vlan_id, struct vlan_description *vlan_desc) vlan_add_dynamic() argument
236 struct hostapd_vlan *vlan; vlan_remove_dynamic() local
[all...]
H A Dvlan_full.c399 ret = os_snprintf(vlan_ifname, sizeof(vlan_ifname), "vlan%d", in vlan_newlink_tagged()
421 struct hostapd_vlan *vlan, int vid) in vlan_bridge_name()
426 if (vlan->bridge[0]) { in vlan_bridge_name()
427 os_strlcpy(br_name, vlan->bridge, IFNAMSIZ); in vlan_bridge_name()
464 struct hostapd_vlan *vlan; in vlan_newlink() local
469 for (vlan = hapd->conf->vlan; vlan; vlan = vlan in vlan_newlink()
420 vlan_bridge_name(char *br_name, struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vid) vlan_bridge_name() argument
566 struct hostapd_vlan *first, *prev, *vlan = hapd->conf->vlan; vlan_dellink() local
[all...]
H A Dsta_info.c40 #include "vlan.h"
906 struct hostapd_vlan *vlan; in ap_sta_get_free_vlan_id() local
910 for (vlan = hapd->conf->vlan; vlan; vlan = vlan->next) { in ap_sta_get_free_vlan_id()
911 if (vlan->vlan_id == vlan_id) { in ap_sta_get_free_vlan_id()
923 struct hostapd_vlan *vlan = NULL, *wildcard_vlan = NULL; in ap_sta_set_vlan() local
942 for (vlan in ap_sta_set_vlan()
1027 struct hostapd_vlan *vlan = NULL; ap_sta_bind_vlan() local
[all...]
H A Dwpa_auth_ft.c224 struct vlan_description *vlan) in wpa_ft_rrb_get_tlv_vlan()
235 os_memset(vlan, 0, sizeof(*vlan)); in wpa_ft_rrb_get_tlv_vlan()
280 vlan->untagged = vlan_id; in wpa_ft_rrb_get_tlv_vlan()
284 vlan->tagged[taggedidx] = vlan_id; in wpa_ft_rrb_get_tlv_vlan()
297 qsort(vlan->tagged, taggedidx, sizeof(int), cmp_int); in wpa_ft_rrb_get_tlv_vlan()
299 vlan->notempty = vlan->untagged || vlan->tagged[0]; in wpa_ft_rrb_get_tlv_vlan()
357 static size_t wpa_ft_vlan_len(const struct vlan_description *vlan) in wpa_ft_vlan_len() argument
223 wpa_ft_rrb_get_tlv_vlan(const u8 *plain, const size_t plain_len, struct vlan_description *vlan) wpa_ft_rrb_get_tlv_vlan() argument
378 wpa_ft_vlan_lin(const struct vlan_description *vlan, u8 *start, u8 *endpos) wpa_ft_vlan_lin() argument
432 wpa_ft_rrb_lin(const struct tlv_list *tlvs1, const struct tlv_list *tlvs2, const struct vlan_description *vlan, u8 **plain, size_t *plain_len) wpa_ft_rrb_lin() argument
518 wpa_ft_rrb_build(const u8 *key, const size_t key_len, const struct tlv_list *tlvs_enc0, const struct tlv_list *tlvs_enc1, const struct tlv_list *tlvs_auth, const struct vlan_description *vlan, const u8 *src_addr, u8 type, u8 **packet, size_t *packet_len) wpa_ft_rrb_build() argument
680 wpa_ft_set_vlan(struct wpa_authenticator *wpa_auth, const u8 *sta_addr, struct vlan_description *vlan) wpa_ft_set_vlan() argument
689 wpa_ft_get_vlan(struct wpa_authenticator *wpa_auth, const u8 *sta_addr, struct vlan_description *vlan) wpa_ft_get_vlan() argument
1174 struct vlan_description *vlan; global() member
1192 struct vlan_description *vlan; global() member
1320 wpa_ft_store_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0, size_t pmk_r0_len, const u8 *pmk_r0_name, int pairwise, const struct vlan_description *vlan, int expires_in, int session_timeout, const u8 *identity, size_t identity_len, const u8 *radius_cui, size_t radius_cui_len) wpa_ft_store_pmk_r0() argument
1407 wpa_ft_store_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1, size_t pmk_r1_len, const u8 *pmk_r1_name, int pairwise, const struct vlan_description *vlan, int expires_in, int session_timeout, const u8 *identity, size_t identity_len, const u8 *radius_cui, size_t radius_cui_len) wpa_ft_store_pmk_r1() argument
1474 wpa_ft_fetch_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1_name, u8 *pmk_r1, size_t *pmk_r1_len, int *pairwise, struct vlan_description *vlan, const u8 **identity, size_t *identity_len, const u8 **radius_cui, size_t *radius_cui_len, int *session_timeout) wpa_ft_fetch_pmk_r1() argument
2053 struct vlan_description vlan; wpa_ft_store_pmk_fils() local
2094 struct vlan_description vlan; wpa_auth_derive_ptk_ft() local
2786 wpa_ft_local_derive_pmk_r1(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, const u8 *r0kh_id, size_t r0kh_id_len, const u8 *req_pmk_r0_name, const u8 *req_pmk_r1_name, u8 *out_pmk_r1, int *out_pairwise, struct vlan_description *vlan, const u8 **identity, size_t *identity_len, const u8 **radius_cui, size_t *radius_cui_len, int *out_session_timeout) wpa_ft_local_derive_pmk_r1() argument
2874 struct vlan_description vlan; wpa_ft_process_auth_req() local
3761 struct vlan_description vlan; wpa_ft_rrb_rx_r1() local
[all...]
H A Dvlan_init.h17 struct hostapd_vlan *vlan,
32 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, in vlan_add_dynamic() argument
H A Dwpa_auth_glue.c366 ifname = hostapd_get_vlan_id_ifname(hapd->conf->vlan, vlan_id); in hostapd_wpa_auth_set_key()
816 if (!hostapd_vlan_valid(hapd->conf->vlan, &vlan_desc)) { in hostapd_wpa_auth_update_vlan()
929 struct vlan_description *vlan) in hostapd_wpa_auth_set_vlan()
938 if (vlan->notempty && in hostapd_wpa_auth_set_vlan()
939 !hostapd_vlan_valid(hapd->conf->vlan, vlan)) { in hostapd_wpa_auth_set_vlan()
943 vlan->untagged, vlan->tagged[0] ? "+" : ""); in hostapd_wpa_auth_set_vlan()
947 if (ap_sta_set_vlan(hapd, sta, vlan) < 0) in hostapd_wpa_auth_set_vlan()
962 struct vlan_description *vlan) in hostapd_wpa_auth_get_vlan()
928 hostapd_wpa_auth_set_vlan(void *ctx, const u8 *sta_addr, struct vlan_description *vlan) hostapd_wpa_auth_set_vlan() argument
961 hostapd_wpa_auth_get_vlan(void *ctx, const u8 *sta_addr, struct vlan_description *vlan) hostapd_wpa_auth_get_vlan() argument
[all...]
H A Dap_config.c29 struct hostapd_vlan *vlan, *prev; in hostapd_config_free_vlan() local
31 vlan = bss->vlan; in hostapd_config_free_vlan()
33 while (vlan) { in hostapd_config_free_vlan()
34 prev = vlan; in hostapd_config_free_vlan()
35 vlan = vlan->next; in hostapd_config_free_vlan()
39 bss->vlan = NULL; in hostapd_config_free_vlan()
950 int hostapd_vlan_valid(struct hostapd_vlan *vlan, in hostapd_vlan_valid() argument
953 struct hostapd_vlan *v = vlan; in hostapd_vlan_valid()
977 hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id) hostapd_get_vlan_id_ifname() argument
[all...]
H A Dvlan_util.h23 int vlan_if_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan);
H A Dap_config.h21 #include "vlan.h"
96 char vlan[IFNAMSIZ + 1]; member
455 struct hostapd_vlan *vlan; member
1092 int hostapd_vlan_valid(struct hostapd_vlan *vlan,
1094 const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan,
H A DMakefile61 vlan.o \
H A Dwpa_auth_ie.c907 struct vlan_description *vlan; in wpa_validate_wpa_ie() local
909 vlan = sm->pmksa->vlan_desc; in wpa_validate_wpa_ie()
911 "PMKID found from PMKSA cache eap_type=%d vlan=%d%s", in wpa_validate_wpa_ie()
913 vlan ? vlan->untagged : 0, in wpa_validate_wpa_ie()
914 (vlan && vlan->tagged[0]) ? "+" : ""); in wpa_validate_wpa_ie()
/third_party/lwip/src/netif/
H A Dethernet.c116 struct eth_vlan_hdr *vlan = (struct eth_vlan_hdr *)(((char *)ethhdr) + SIZEOF_ETH_HDR); local
119 /* a packet with only an ethernet/vlan header (or less) is not valid for us */
127 if (!LWIP_HOOK_VLAN_CHECK(netif, ethhdr, vlan)) {
129 if (!ETHARP_VLAN_CHECK_FN(ethhdr, vlan)) {
131 if (VLAN_ID(vlan) != ETHARP_VLAN_CHECK) {
138 type = vlan->tpid;
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
H A Ddriver_roboswitch.c361 u16 vlan = 0, _read[2]; in wpa_driver_roboswitch_init() local
371 /* find the '.' separating <interface> and <vlan> */ in wpa_driver_roboswitch_init()
374 wpa_printf(MSG_INFO, "%s: No <interface>.<vlan> pair in " in wpa_driver_roboswitch_init()
382 wpa_printf(MSG_INFO, "%s: Invalid vlan specification " in wpa_driver_roboswitch_init()
387 vlan *= 10; in wpa_driver_roboswitch_init()
388 vlan += *sep - '0'; in wpa_driver_roboswitch_init()
389 if (vlan > ROBO_VLAN_MAX) { in wpa_driver_roboswitch_init()
430 vlan |= 1 << 13; in wpa_driver_roboswitch_init()
434 &vlan, 1); in wpa_driver_roboswitch_init()
439 "VLAN %d", __func__, vlan in wpa_driver_roboswitch_init()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
H A Ddriver_roboswitch.c361 u16 vlan = 0, _read[2]; in wpa_driver_roboswitch_init() local
371 /* find the '.' separating <interface> and <vlan> */ in wpa_driver_roboswitch_init()
374 wpa_printf(MSG_INFO, "%s: No <interface>.<vlan> pair in " in wpa_driver_roboswitch_init()
382 wpa_printf(MSG_INFO, "%s: Invalid vlan specification " in wpa_driver_roboswitch_init()
387 vlan *= 10; in wpa_driver_roboswitch_init()
388 vlan += *sep - '0'; in wpa_driver_roboswitch_init()
389 if (vlan > ROBO_VLAN_MAX) { in wpa_driver_roboswitch_init()
430 vlan |= 1 << 13; in wpa_driver_roboswitch_init()
434 &vlan, 1); in wpa_driver_roboswitch_init()
439 "VLAN %d", __func__, vlan in wpa_driver_roboswitch_init()
[all...]

Completed in 45 milliseconds

12