Home
last modified time | relevance | path

Searched refs:vlan (Results 1 – 25 of 53) sorted by relevance

123

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
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->ifname)) in vlan_if_add()
[all …]
Dvlan_full.c421 struct hostapd_vlan *vlan, int vid) in vlan_bridge_name() argument
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->next) { in vlan_newlink()
470 if (vlan->configured || in vlan_newlink()
471 os_strcmp(ifname, vlan->ifname) != 0) in vlan_newlink()
475 if (!vlan) in vlan_newlink()
478 vlan->configured = 1; in vlan_newlink()
480 notempty = vlan->vlan_desc.notempty; in vlan_newlink()
[all …]
Dsta_info.c945 struct hostapd_vlan *vlan; in ap_sta_get_free_vlan_id() local
949 for (vlan = hapd->conf->vlan; vlan; vlan = vlan->next) { in ap_sta_get_free_vlan_id()
950 if (vlan->vlan_id == vlan_id) { in ap_sta_get_free_vlan_id()
962 struct hostapd_vlan *vlan = NULL, *wildcard_vlan = NULL; in ap_sta_set_vlan() local
981 for (vlan = hapd->conf->vlan; vlan; vlan = vlan->next) { in ap_sta_set_vlan()
982 if (vlan->vlan_id == VLAN_ID_WILDCARD) in ap_sta_set_vlan()
985 if (!vlan) { in ap_sta_set_vlan()
995 for (vlan = hapd->conf->vlan; vlan; vlan = vlan->next) { in ap_sta_set_vlan()
996 if (!vlan_compare(&vlan->vlan_desc, vlan_desc)) in ap_sta_set_vlan()
998 if (vlan->vlan_id == VLAN_ID_WILDCARD) in ap_sta_set_vlan()
[all …]
Dwpa_auth_ft.c225 struct vlan_description *vlan) in wpa_ft_rrb_get_tlv_vlan() argument
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
363 if (!vlan || !vlan->notempty) in wpa_ft_vlan_len()
366 if (vlan->untagged) { in wpa_ft_vlan_len()
370 if (vlan->tagged[0]) in wpa_ft_vlan_len()
[all …]
Dvlan_init.h17 struct hostapd_vlan *vlan,
32 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, in vlan_add_dynamic() argument
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()
1058 int hostapd_vlan_valid(struct hostapd_vlan *vlan, in hostapd_vlan_valid() argument
1061 struct hostapd_vlan *v = vlan; 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
1087 struct hostapd_vlan *v = vlan; in hostapd_get_vlan_id_ifname()
Dwpa_auth_glue.c445 ifname = hostapd_get_vlan_id_ifname(hapd->conf->vlan, vlan_id); in hostapd_wpa_auth_set_key()
958 if (!hostapd_vlan_valid(hapd->conf->vlan, &vlan_desc)) { in hostapd_wpa_auth_update_vlan()
1113 struct vlan_description *vlan) in hostapd_wpa_auth_set_vlan() argument
1122 if (vlan->notempty && in hostapd_wpa_auth_set_vlan()
1123 !hostapd_vlan_valid(hapd->conf->vlan, vlan)) { in hostapd_wpa_auth_set_vlan()
1127 vlan->untagged, vlan->tagged[0] ? "+" : ""); in hostapd_wpa_auth_set_vlan()
1131 if (ap_sta_set_vlan(hapd, sta, vlan) < 0) in hostapd_wpa_auth_set_vlan()
1146 struct vlan_description *vlan) in hostapd_wpa_auth_get_vlan() argument
1156 *vlan = *sta->vlan_desc; in hostapd_wpa_auth_get_vlan()
1158 os_memset(vlan, 0, sizeof(*vlan)); in hostapd_wpa_auth_get_vlan()
Dvlan_util.h23 int vlan_if_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan);
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
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->ifname)) in vlan_if_add()
[all …]
Dvlan_full.c421 struct hostapd_vlan *vlan, int vid) in vlan_bridge_name() argument
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->next) { in vlan_newlink()
470 if (vlan->configured || in vlan_newlink()
471 os_strcmp(ifname, vlan->ifname) != 0) in vlan_newlink()
475 if (!vlan) in vlan_newlink()
478 vlan->configured = 1; in vlan_newlink()
480 notempty = vlan->vlan_desc.notempty; in vlan_newlink()
[all …]
Dsta_info.c906 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 = hapd->conf->vlan; vlan; vlan = vlan->next) { in ap_sta_set_vlan()
943 if (vlan->vlan_id == VLAN_ID_WILDCARD) in ap_sta_set_vlan()
946 if (!vlan) { in ap_sta_set_vlan()
956 for (vlan = hapd->conf->vlan; vlan; vlan = vlan->next) { in ap_sta_set_vlan()
957 if (!vlan_compare(&vlan->vlan_desc, vlan_desc)) in ap_sta_set_vlan()
959 if (vlan->vlan_id == VLAN_ID_WILDCARD) in ap_sta_set_vlan()
[all …]
Dwpa_auth_ft.c224 struct vlan_description *vlan) in wpa_ft_rrb_get_tlv_vlan() argument
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
362 if (!vlan || !vlan->notempty) in wpa_ft_vlan_len()
365 if (vlan->untagged) { in wpa_ft_vlan_len()
369 if (vlan->tagged[0]) in wpa_ft_vlan_len()
[all …]
Dvlan_init.h17 struct hostapd_vlan *vlan,
32 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, in vlan_add_dynamic() argument
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 const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id) in hostapd_get_vlan_id_ifname() argument
979 struct hostapd_vlan *v = vlan; in hostapd_get_vlan_id_ifname()
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() argument
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() argument
972 *vlan = *sta->vlan_desc; in hostapd_wpa_auth_get_vlan()
974 os_memset(vlan, 0, sizeof(*vlan)); in hostapd_wpa_auth_get_vlan()
Dvlan_util.h23 int vlan_if_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan);
/third_party/iptables/extensions/
Dlibebt_vlan.t2 -p 802_1Q --vlan-id 42;=;OK
3 -p 802_1Q --vlan-id ! 42;=;OK
4 -p 802_1Q --vlan-prio 1;=;OK
5 -p 802_1Q --vlan-prio ! 1;=;OK
6 -p 802_1Q --vlan-encap ip;-p 802_1Q --vlan-encap 0800 -j CONTINUE;OK
7 -p 802_1Q --vlan-encap 0800 ;=;OK
8 -p 802_1Q --vlan-encap ! 0800 ;=;OK
9 -p 802_1Q --vlan-encap IPv6 ! --vlan-id 1;-p 802_1Q --vlan-id ! 1 --vlan-encap 86DD -j CONTINUE;OK
10 -p 802_1Q --vlan-id ! 1 --vlan-encap 86DD;=;OK
11 --vlan-encap ip;=;FAIL
[all …]
Dlibebt_vlan.txlate1 ebtables-translate -A INPUT -p 802_1Q --vlan-id 42
2 nft add rule bridge filter INPUT vlan id 42 counter
4 ebtables-translate -A INPUT -p 802_1Q --vlan-prio ! 1
5 nft add rule bridge filter INPUT vlan pcp != 1 counter
7 ebtables-translate -A INPUT -p 802_1Q --vlan-encap ip
8 nft add rule bridge filter INPUT vlan type 0x0800 counter
10 ebtables-translate -A INPUT -p 802_1Q --vlan-encap ipv6 ! --vlan-id 1
11 nft add rule bridge filter INPUT vlan id != 1 vlan type 0x86dd counter
/third_party/libnl/lib/route/link/
Dsriov.c311 vlans->vlans[cur].vf_vlan = vi[cur]->vlan ? vi[cur]->vlan : 0; in rtnl_link_vf_vlan_info()
328 struct ifla_vf_vlan vlan; in sriov_fill_vf_vlan() local
330 vlan.vf = index; in sriov_fill_vf_vlan()
331 vlan.vlan = vinfo[0].vf_vlan; in sriov_fill_vf_vlan()
332 vlan.qos = vinfo[0].vf_vlan_qos; in sriov_fill_vf_vlan()
333 NLA_PUT(msg, IFLA_VF_VLAN, sizeof(vlan), &vlan); in sriov_fill_vf_vlan()
344 struct ifla_vf_vlan_info vlan; in sriov_fill_vf_vlan_list() local
350 vlan.vf = index; in sriov_fill_vf_vlan_list()
352 vlan.vlan = vlan_info[cur].vf_vlan; in sriov_fill_vf_vlan_list()
353 vlan.qos = vlan_info[cur].vf_vlan_qos; in sriov_fill_vf_vlan_list()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Ddriver_roboswitch.c361 u16 vlan = 0, _read[2]; in wpa_driver_roboswitch_init() local
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 & ~(1 << 13)); in wpa_driver_roboswitch_init()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Ddriver_roboswitch.c361 u16 vlan = 0, _read[2]; in wpa_driver_roboswitch_init() local
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 & ~(1 << 13)); in wpa_driver_roboswitch_init()
/third_party/lwip/src/netif/
Dethernet.c116 struct eth_vlan_hdr *vlan = (struct eth_vlan_hdr *)(((char *)ethhdr) + SIZEOF_ETH_HDR); local
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/libnl/python/netlink/route/links/
Dvlan.py70 link.vlan = VLANLink(link._rtnl_link)
71 return link.vlan
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/
Dhostapd.vlan9 * vlan#
/third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/
Dhostapd.vlan9 * vlan#

123