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

1234567

/freebsd-11-stable/contrib/wpa/src/ap/
H A Dvlan_init.c22 static int vlan_if_add(struct hostapd_data *hapd, struct hostapd_vlan *vlan, argument
32 vlan->ifname);
36 if (!iface_exists(vlan->ifname))
37 ret = hostapd_vlan_if_add(hapd, vlan->ifname);
46 ifconfig_up(vlan->ifname); /* else wpa group will fail fatal */
49 ret = wpa_auth_ensure_group(hapd->wpa_auth, vlan->vlan_id);
55 vlan->vlan_id, ret);
56 if (wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id))
57 wpa_printf(MSG_ERROR, "WPA deinit of %s failed", vlan->ifname);
60 if (hostapd_vlan_if_remove(hapd, vlan
67 vlan_if_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan) argument
81 vlan_dynamic_add(struct hostapd_data *hapd, struct hostapd_vlan *vlan) argument
104 vlan_dynamic_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan) argument
140 struct hostapd_vlan *vlan; local
183 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vlan_id, struct vlan_description *vlan_desc) argument
236 struct hostapd_vlan *vlan; local
[all...]
H A Dvlan_init.h17 struct hostapd_vlan *vlan,
32 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, argument
H A Dvlan_full.c399 ret = os_snprintf(vlan_ifname, sizeof(vlan_ifname), "vlan%d",
421 struct hostapd_vlan *vlan, int vid)
426 if (vlan->bridge[0]) {
427 os_strlcpy(br_name, vlan->bridge, IFNAMSIZ);
464 struct hostapd_vlan *vlan; local
469 for (vlan = hapd->conf->vlan; vlan; vlan = vlan
420 vlan_bridge_name(char *br_name, struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vid) argument
566 struct hostapd_vlan *first, *prev, *vlan = hapd->conf->vlan; local
[all...]
H A Dvlan_util.h23 int vlan_if_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan);
H A Dsta_info.c40 #include "vlan.h"
906 struct hostapd_vlan *vlan; local
910 for (vlan = hapd->conf->vlan; vlan; vlan = vlan->next) {
911 if (vlan->vlan_id == vlan_id) {
923 struct hostapd_vlan *vlan = NULL, *wildcard_vlan = NULL; local
942 for (vlan
1027 struct hostapd_vlan *vlan = NULL; local
[all...]
H A Dwpa_auth_ft.c224 struct vlan_description *vlan)
235 os_memset(vlan, 0, sizeof(*vlan));
280 vlan->untagged = vlan_id;
284 vlan->tagged[taggedidx] = vlan_id;
297 qsort(vlan->tagged, taggedidx, sizeof(int), cmp_int);
299 vlan->notempty = vlan->untagged || vlan->tagged[0];
357 static size_t wpa_ft_vlan_len(const struct vlan_description *vlan) argument
223 wpa_ft_rrb_get_tlv_vlan(const u8 *plain, const size_t plain_len, struct vlan_description *vlan) argument
378 wpa_ft_vlan_lin(const struct vlan_description *vlan, u8 *start, u8 *endpos) 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) 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) argument
680 wpa_ft_set_vlan(struct wpa_authenticator *wpa_auth, const u8 *sta_addr, struct vlan_description *vlan) argument
689 wpa_ft_get_vlan(struct wpa_authenticator *wpa_auth, const u8 *sta_addr, struct vlan_description *vlan) argument
1174 struct vlan_description *vlan; member in struct:wpa_ft_pmk_r0_sa
1192 struct vlan_description *vlan; member in struct:wpa_ft_pmk_r1_sa
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) 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) 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) argument
2053 struct vlan_description vlan; local
2094 struct vlan_description vlan; 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) argument
2874 struct vlan_description vlan; local
3761 struct vlan_description vlan; local
[all...]
/freebsd-11-stable/tests/sys/netgraph/
H A Dvlan_rotate.c45 struct vlan struct
55 struct vlan vlan[10]; member in struct:frame
61 .vlan[0] = {htons(ETHERTYPE_VLAN), htons(EVL_MAKETAG(1, 0, 0))},
62 .vlan[1] = {htons(ETHERTYPE_VLAN), htons(EVL_MAKETAG(2, 0, 0))},
63 .vlan[2] = {htons(ETHERTYPE_VLAN), htons(EVL_MAKETAG(3, 0, 0))},
64 .vlan[3] = {htons(ETHERTYPE_VLAN), htons(EVL_MAKETAG(4, 0, 0))},
65 .vlan[4] = {htons(ETHERTYPE_VLAN), htons(EVL_MAKETAG(5, 0, 0))},
66 .vlan[5] = {htons(ETHERTYPE_VLAN), htons(EVL_MAKETAG(6, 0, 0))},
67 .vlan[
123 int vlan = r[i]; local
192 int vlan[10]; local
[all...]
/freebsd-11-stable/sys/dev/etherswitch/ip17x/
H A Dip17x_vlans.c64 /* Do not add or strip vlan tags on any port. */
68 /* Reset all vlan data. */
69 memset(sc->vlan, 0, sizeof(sc->vlan));
78 v = &sc->vlan[i];
91 * Setup vlan 1 as PVID for all switch ports. Add all ports as
92 * members of vlan 1.
94 v = &sc->vlan[0];
119 vg->es_vid = sc->vlan[vg->es_vlangroup].vlanid;
126 if ((sc->vlan[v
[all...]
H A Dip17x_var.h62 struct ip17x_vlan vlan[IP17X_MAX_VLANS]; member in struct:ip17x_softc
/freebsd-11-stable/sys/kern/
H A Duipc_mbufhash.c78 struct ether_vlan_header vlan; member in union:__anon6
82 const struct ether_vlan_header *vlan; local
108 vlan = m_ether_tcpip_hash_gethdr(m, off, sizeof(*vlan), &buf);
109 if (vlan == NULL)
113 p = fnv_32_buf(&vlan->evl_tag, sizeof(vlan->evl_tag), p);
114 etype = ntohs(vlan->evl_proto);
115 off += sizeof(*vlan) - sizeof(*eh);
/freebsd-11-stable/contrib/netbsd-tests/net/if_vlan/
H A Dt_vlan.sh40 atf_set "descr" "tests of creation and deletion of vlan interface"
47 rump_server_start $SOCK_LOCAL vlan
68 atf_set "descr" "tests of communications over vlan interfaces"
75 rump_server_start $SOCK_LOCAL vlan
77 rump_server_start $SOCK_REMOTE vlan
87 atf_check -s exit:0 rump.ifconfig vlan0 vlan 10 vlanif shmif0
94 atf_check -s exit:0 rump.ifconfig vlan0 vlan 10 vlanif shmif0
/freebsd-11-stable/sys/dev/cxgbe/
H A Dt4_l2t.c110 find_or_alloc_l2e(struct l2t_data *d, uint16_t vlan, uint8_t port, uint8_t *dmac) argument
121 e->vlan == vlan && e->lport == port)
176 req->vlan = htons(e->vlan);
193 t4_l2t_alloc_switching(struct adapter *sc, uint16_t vlan, uint8_t port, argument
201 e = find_or_alloc_l2e(d, vlan, port, eth_addr);
208 e->vlan = vlan;
218 MPASS(e->vlan
[all...]
H A Dt4_l2t.h68 uint16_t vlan; /* VLAN TCI (id: 0-11, prio: 13-15) */ member in struct:l2t_entry
/freebsd-11-stable/sys/netgraph/
H A Dng_vlan.h35 /* Using "vlan" in addfilter and gettable messages. 2012.01 */
39 #define NG_VLAN_NODE_TYPE "vlan"
67 uint16_t vlan; /* VLAN - same as vid, oldname, deprecated. */ member in struct:ng_vlan_filter
78 { "vlan", &ng_parse_uint16_type }, \
/freebsd-11-stable/sys/dev/mlx5/mlx5_core/
H A Dmlx5_mpfs.c43 u8 vlan_valid, u16 vlan)
70 MLX5_SET(set_l2_table_entry_in, in, vlan, vlan);
42 mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u32 *p_index, const u8 *mac, u8 vlan_valid, u16 vlan) argument
H A Deswitch.h109 u16 vlan; member in struct:mlx5_vport
146 __u32 vlan; member in struct:mlx5_esw_vport_info
165 int vport, u16 vlan, u8 qos);
H A Dmlx5_eswitch.c132 u16 *vlan, u8 *qos)
139 *vlan = 0;
157 *vlan = MLX5_GET(query_esw_vport_context_out, out,
164 vport, *vlan, *qos);
185 u16 vlan, u8 qos, bool set)
194 vport, vlan, qos, set);
199 /* insert only if no vlan in packet */
205 esw_vport_context.cvlan_id, vlan);
812 if (!vport->vlan && !vport->qos)
816 "vport[%d] configure ingress rules, vlan(
131 query_esw_vport_cvlan(struct mlx5_core_dev *dev, u32 vport, u16 *vlan, u8 *qos) argument
184 modify_esw_vport_cvlan(struct mlx5_core_dev *dev, u32 vport, u16 vlan, u8 qos, bool set) argument
1253 u16 vlan; local
1276 mlx5_eswitch_set_vport_vlan(struct mlx5_eswitch *esw, int vport, u16 vlan, u8 qos) argument
[all...]
/freebsd-11-stable/sys/dev/ixgbe/
H A Dixgbe_82598.h43 s32 ixgbe_set_vfta_82598(struct ixgbe_hw *hw, u32 vlan, u32 vind, bool vlan_on,
/freebsd-11-stable/sys/modules/netgraph/
H A DMakefile55 vlan \
/freebsd-11-stable/sys/arm/ti/cpsw/
H A Dif_cpswvar.h84 int vlan; member in struct:cpsw_port
136 int vlan; member in struct:cpswp_softc
/freebsd-11-stable/sys/mips/adm5120/
H A Dif_admsw.c601 static int vlan = 0; local
609 vlan++;
610 if (vlan == SW_DEVS)
611 vlan = 0;
612 i = vlan;
625 if (i == vlan)
628 vlan = i;
706 desc->status = (len << ADM5120_DMA_LENSHIFT) | (1 << vlan);
749 int vlan; local
775 for (vlan
896 int i, vlan; local
966 int i, len, port, vlan; local
[all...]
/freebsd-11-stable/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_flow_table.c459 int vlan; local
464 for_each_set_bit(vlan, priv->vlan.active_vlans, VLAN_N_VID)
481 for_each_set_bit(vlan, priv->vlan.active_vlans, VLAN_N_VID) {
484 vlans[i++] = vlan;
508 struct mlx5_flow_table *ft = priv->fts.vlan.t;
521 rule_p = &priv->vlan.untagged_ft_rule;
525 rule_p = &priv->vlan.any_cvlan_ft_rule;
530 rule_p = &priv->vlan
[all...]
/freebsd-11-stable/sys/dev/ae/
H A Dif_aevar.h58 uint16_t vlan; member in struct:ae_txd
71 uint16_t vlan; member in struct:ae_rxd
/freebsd-11-stable/sys/dev/cxgb/ulp/tom/
H A Dcxgb_l2t.h63 uint16_t vlan; /* VLAN TCI (id: bits 0-11, prio: 13-15 */ member in struct:l2t_entry
/freebsd-11-stable/contrib/ofed/libmlx4/
H A Dwqe.h96 uint16_t vlan; member in struct:mlx4_wqe_datagram_seg

Completed in 168 milliseconds

1234567