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

12345678

/freebsd-current/tests/sys/net/
H A Ddhclient_pcp.conf0 vlan-pcp 6;
H A Dif_vlan.sh20 vlan0=$(jexec alcatraz ifconfig vlan create vlandev ${epair_vlan}a \
21 vlan 42)
25 vlan1=$(jexec singsing ifconfig vlan create)
29 jexec singsing ifconfig ${vlan1} vlandev ${epair_vlan}b vlan 42
36 # Test changing the vlan ID
38 jexec singsing ifconfig ${vlan1} vlandev ${epair_vlan}b vlan 43
42 # Test changing the vlan ID
44 jexec singsing ifconfig ${vlan1} vlan 42 vlandev ${epair_vlan}b
71 vlan5a=$(jexec jqinq0 ifconfig vlan create \
72 vlandev ${epair_qinq}a vlan
[all...]
H A Dpcp.py40 vlan = packet.getlayer(sp.Dot1Q)
42 if vlan is None:
48 if vlan.prio == int(args.expect_pcp[0]):
/freebsd-current/contrib/wpa/src/ap/
H A Dvlan_init.c22 static int vlan_if_add(struct hostapd_data *hapd, struct hostapd_vlan *vlan, argument
34 vlan->ifname);
39 if (!iface_exists(vlan->ifname))
40 ret = hostapd_vlan_if_add(hapd, vlan->ifname);
49 ifconfig_up(vlan->ifname); /* else wpa group will fail fatal */
52 ret = wpa_auth_ensure_group(hapd->wpa_auth, vlan->vlan_id);
58 vlan->vlan_id, ret);
59 if (wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id))
60 wpa_printf(MSG_ERROR, "WPA deinit of %s failed", vlan->ifname);
63 if (hostapd_vlan_if_remove(hapd, vlan
70 vlan_if_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan) argument
84 vlan_dynamic_add(struct hostapd_data *hapd, struct hostapd_vlan *vlan) argument
107 vlan_dynamic_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan) argument
143 struct hostapd_vlan *vlan; local
186 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vlan_id, struct vlan_description *vlan_desc) argument
239 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"
945 struct hostapd_vlan *vlan; local
949 for (vlan = hapd->conf->vlan; vlan; vlan = vlan->next) {
950 if (vlan->vlan_id == vlan_id) {
962 struct hostapd_vlan *vlan = NULL, *wildcard_vlan = NULL; local
981 for (vlan
1066 struct hostapd_vlan *vlan = NULL; local
[all...]
H A Dwpa_auth_ft.c225 struct vlan_description *vlan)
236 os_memset(vlan, 0, sizeof(*vlan));
281 vlan->untagged = vlan_id;
285 vlan->tagged[taggedidx] = vlan_id;
298 qsort(vlan->tagged, taggedidx, sizeof(int), cmp_int);
300 vlan->notempty = vlan->untagged || vlan->tagged[0];
358 static size_t wpa_ft_vlan_len(const struct vlan_description *vlan) argument
224 wpa_ft_rrb_get_tlv_vlan(const u8 *plain, const size_t plain_len, struct vlan_description *vlan) argument
379 wpa_ft_vlan_lin(const struct vlan_description *vlan, u8 *start, u8 *endpos) 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) 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) argument
681 wpa_ft_set_vlan(struct wpa_authenticator *wpa_auth, const u8 *sta_addr, struct vlan_description *vlan) argument
690 wpa_ft_get_vlan(struct wpa_authenticator *wpa_auth, const u8 *sta_addr, struct vlan_description *vlan) argument
1176 struct vlan_description *vlan; member in struct:wpa_ft_pmk_r0_sa
1194 struct vlan_description *vlan; member in struct:wpa_ft_pmk_r1_sa
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) 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) 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) argument
2056 struct vlan_description vlan; local
2097 struct vlan_description vlan; 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) argument
3065 struct vlan_description vlan; local
3989 struct vlan_description vlan; local
[all...]
/freebsd-current/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-current/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...]
/freebsd-current/tests/sys/netpfil/pf/
H A Dprio.sh44 ifconfig ${epair}a.42 vlandev ${epair}a vlan 42
51 jexec alcatraz ifconfig ${epair}b.42 vlandev ${epair}b vlan 42
53 jexec alcatraz sysctl net.link.vlan.mtag_pcp=1
61 atf_check -e ignore -o match:'.*vlan 42, p 4.*' tcpdump -n -i ${epair}a -e -c 4
H A Daltq.sh104 vlan=$(vnet_mkvlan)
105 ifconfig ${vlan} vlan 42 vlandev ${epair}a
106 ifconfig ${vlan} 192.0.2.1/24 up
109 vlanj=$(jexec altq_cbq_vlan ifconfig vlan create)
113 jexec altq_cbq_vlan ifconfig ${vlanj} vlan 42 vlandev ${epair}b
306 va=$(jexec ${j}a ifconfig vlan create)
308 jexec ${j}a ifconfig ${va} vlan 42 vlandev ${epair}a up
312 vb=$(jexec ${j}b ifconfig vlan create)
314 jexec ${j}b ifconfig ${vb} vlan 4
[all...]
/freebsd-current/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-current/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)
160 req->vlan = htons(e->vlan);
211 int *ndesc, uint16_t vlan, uint8_t port, uint8_t *eth_addr)
229 if (e->vlan == vlan && e->lport == port &&
264 e->vlan = vlan;
210 t4_l2t_alloc_tls(struct adapter *sc, struct sge_txq *txq, void *dst, int *ndesc, uint16_t vlan, uint8_t port, uint8_t *eth_addr) argument
286 t4_l2t_alloc_switching(struct adapter *sc, uint16_t vlan, uint8_t port, uint8_t *eth_addr) argument
[all...]
/freebsd-current/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-current/sys/kern/
H A Duipc_mbufhash.c159 struct ether_vlan_header vlan; member in union:__anon5028
162 const struct ether_vlan_header *vlan; local
180 vlan = m_common_hash_gethdr(m, off, sizeof(*vlan), &buf);
181 if (vlan == NULL)
185 p = fnv_32_buf(&vlan->evl_tag, sizeof(vlan->evl_tag), p);
186 etype = ntohs(vlan->evl_proto);
187 off += sizeof(*vlan) - sizeof(*eh);
/freebsd-current/sys/dev/mlx5/mlx5_core/
H A Dmlx5_mpfs.c44 u8 vlan_valid, u16 vlan)
71 MLX5_SET(set_l2_table_entry_in, in, vlan, vlan);
43 mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u32 *p_index, const u8 *mac, u8 vlan_valid, u16 vlan) argument
H A Deswitch.h107 u16 vlan; member in struct:mlx5_vport
144 __u32 vlan; member in struct:mlx5_esw_vport_info
163 int vport, u16 vlan, u8 qos);
H A Dmlx5_eswitch.c133 u16 *vlan, u8 *qos)
140 *vlan = 0;
158 *vlan = MLX5_GET(query_esw_vport_context_out, out,
165 vport, *vlan, *qos);
186 u16 vlan, u8 qos, bool set)
195 vport, vlan, qos, set);
200 /* insert only if no vlan in packet */
206 esw_vport_context.cvlan_id, vlan);
802 if (!vport->vlan && !vport->qos)
806 "vport[%d] configure ingress rules, vlan(
132 query_esw_vport_cvlan(struct mlx5_core_dev *dev, u32 vport, u16 *vlan, u8 *qos) argument
185 modify_esw_vport_cvlan(struct mlx5_core_dev *dev, u32 vport, u16 vlan, u8 qos, bool set) argument
1244 u16 vlan; local
1267 mlx5_eswitch_set_vport_vlan(struct mlx5_eswitch *esw, int vport, u16 vlan, u8 qos) argument
[all...]
/freebsd-current/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-current/sys/modules/netgraph/
H A DMakefile53 vlan \
/freebsd-current/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-current/sys/dev/enic/
H A Dcq_enet_desc.h39 __le16 vlan; member in struct:cq_enet_rq_desc
52 __le16 vlan; member in struct:cq_enet_rq_clsf_desc
114 u16 vlan, u16 checksum, u8 fcoe_sof, u8 fcoe_fc_crc_ok,
139 desc->vlan = cpu_to_le16(vlan);
208 * Tag Control Information(16) = user_priority(3) + cfi(1) + vlan(12)
210 *vlan_tci = le16_to_cpu(desc->vlan);
110 cq_enet_rq_desc_enc(struct cq_enet_rq_desc *desc, u8 type, u8 color, u16 q_number, u16 completed_index, u8 ingress_port, u8 fcoe, u8 eop, u8 sop, u8 rss_type, u8 csum_not_calc, u32 rss_hash, u16 bytes_written, u8 packet_error, u8 vlan_stripped, u16 vlan, u16 checksum, u8 fcoe_sof, u8 fcoe_fc_crc_ok, u8 fcoe_enc_error, u8 fcoe_eof, u8 tcp_udp_csum_ok, u8 udp, u8 tcp, u8 ipv4_csum_ok, u8 ipv6, u8 ipv4, u8 ipv4_fragment, u8 fcs_ok) argument
/freebsd-current/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

Completed in 167 milliseconds

12345678