Home
last modified time | relevance | path

Searched full:vlan (Results 1 – 25 of 669) sorted by relevance

12345678910>>...27

/freebsd-src/contrib/wpa/src/ap/
H A Dvlan_init.c2 * hostapd / VLAN initialization
22 static int vlan_if_add(struct hostapd_data *hapd, struct hostapd_vlan *vlan, in vlan_if_add() argument
33 "VLAN: Refusing to set up VLAN iface %s with WEP", in vlan_if_add()
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()
57 wpa_printf(MSG_ERROR, "WPA initialization for VLAN %d failed (%d)", in vlan_if_add()
58 vlan->vlan_id, ret); in vlan_if_add()
[all …]
H A Dvlan_full.c2 * hostapd / VLAN initialization - full dynamic VLAN
122 wpa_printf(MSG_DEBUG, "VLAN: Set interface %s down", if_name); in ifconfig_down()
140 wpa_printf(MSG_DEBUG, "VLAN: br_delif(%s, %s)", br_name, if_name); in br_delif()
142 wpa_printf(MSG_ERROR, "VLAN: %s: socket(AF_INET,SOCK_STREAM) " in br_delif()
153 wpa_printf(MSG_ERROR, "VLAN: %s: Failure determining " in br_delif()
168 wpa_printf(MSG_ERROR, "VLAN: %s: ioctl[SIOCDEVPRIVATE," in br_delif()
195 wpa_printf(MSG_DEBUG, "VLAN: br_addif(%s, %s)", br_name, if_name); in br_addif()
197 wpa_printf(MSG_ERROR, "VLAN: %s: socket(AF_INET,SOCK_STREAM) " in br_addif()
213 wpa_printf(MSG_ERROR, "VLAN: %s: Failure determining " in br_addif()
233 wpa_printf(MSG_ERROR, "VLAN: %s: ioctl[SIOCDEVPRIVATE," in br_addif()
[all …]
H A Dvlan_util.c2 * hostapd / VLAN netlink api
11 #include <netlink/route/link/vlan.h>
17 * Add a vlan interface with name 'vlan_if_name', VLAN ID 'vid' and
31 wpa_printf(MSG_DEBUG, "VLAN: vlan_add(if_name=%s, vid=%d, " in vlan_add()
35 wpa_printf(MSG_ERROR, "VLAN: Interface name too long: '%s'", in vlan_add()
41 wpa_printf(MSG_ERROR, "VLAN: Interface name too long: '%s'", in vlan_add()
48 wpa_printf(MSG_ERROR, "VLAN: failed to open netlink socket"); in vlan_add()
54 wpa_printf(MSG_ERROR, "VLAN: failed to connect to netlink: %s", in vlan_add()
62 wpa_printf(MSG_ERROR, "VLAN: interface %s does not exist", in vlan_add()
75 wpa_printf(MSG_ERROR, "VLAN: interface %s already exists", in vlan_add()
[all …]
H A Dvlan_ioctl.c2 * hostapd / VLAN ioctl API
24 wpa_printf(MSG_DEBUG, "VLAN: vlan_rem(%s)", if_name); in vlan_rem()
26 wpa_printf(MSG_ERROR, "VLAN: Interface name too long: '%s'", in vlan_rem()
32 wpa_printf(MSG_ERROR, "VLAN: %s: socket(AF_INET,SOCK_STREAM) " in vlan_rem()
43 wpa_printf(MSG_ERROR, "VLAN: %s: DEL_VLAN_CMD failed for %s: " in vlan_rem()
55 Add a vlan interface with VLAN ID 'vid' and tagged interface
67 wpa_printf(MSG_DEBUG, "VLAN: vlan_add(if_name=%s, vid=%d)", in vlan_add()
72 wpa_printf(MSG_ERROR, "VLAN: Interface name too long: '%s'", in vlan_add()
78 wpa_printf(MSG_ERROR, "VLAN: %s: socket(AF_INET,SOCK_STREAM) " in vlan_add()
85 /* Determine if a suitable vlan device already exists. */ in vlan_add()
[all …]
H A Dsta_info.c40 #include "vlan.h"
374 * VLAN. in ap_free_sta()
1141 struct hostapd_vlan *vlan; in ap_sta_bind_vlan()
1145 for (vlan = hapd->conf->vlan; vlan; vlan = vlan->next) { in ap_check_sa_query_timeout()
1146 if (vlan->vlan_id == vlan_id) { in ap_check_sa_query_timeout()
1158 struct hostapd_vlan *vlan in ap_check_sa_query_timeout()
945 struct hostapd_vlan *vlan; ap_sta_get_free_vlan_id() local
962 struct hostapd_vlan *vlan = NULL, *wildcard_vlan = NULL; ap_sta_set_vlan() local
1066 struct hostapd_vlan *vlan = NULL; ap_sta_bind_vlan() local
[all...]
/freebsd-src/tests/sys/net/
H A Dif_vlan.sh7 atf_set descr 'Basic VLAN test'
20 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 \
[all …]
/freebsd-src/sys/dev/ice/
H A Dice_vlan_mode.c36 * ice_pkg_get_supported_vlan_mode - chk if DDP supports Double VLAN mode (DVM)
85 * ice_aq_get_vlan_mode - get the VLAN mode of the device
87 * @get_params: structure FW fills in based on the current VLAN mode config
89 * Get VLAN Mode Parameters (0x020D)
108 * ice_aq_is_dvm_ena - query FW to check if double VLAN mode is enabled
111 * Returns true if the hardware/firmware is configured in double VLAN mode,
113 * single VLAN mode.
125 ice_debug(hw, ICE_DBG_AQ, "Failed to get VLAN mode, status %d\n", in ice_aq_is_dvm_ena()
134 * ice_is_dvm_ena - check if double VLAN mode is enabled
137 * The device is configured in single or double VLAN mod
[all...]
H A Dvirtchnl.h59 * driver may start its queues, optionally add MAC and VLAN filters, and
396 * and all MAC and VLAN filters (except the default MAC address) on all VSIs
749 * VF sends this message to add one or more VLAN tag filters for receives.
751 * If a port VLAN is configured by the PF, this operation will return an
756 * VF sends this message to remove one or more VLAN tag filters for receives.
758 * If a port VLAN is configured by the PF, this operation will return an
789 * The VF would interpret this as VLAN filtering can be supported on both 0x8100
790 * and 0x88A8 VLAN ethertypes.
801 * The VF would interpret this as VLAN stripping can be supported on either
802 * 0x8100 or 0x88a8 VLAN ethertype
[all...]
/freebsd-src/sys/dev/etherswitch/ip17x/
H A Dip17x_vlans.c64 /* Do not add or strip vlan tags on any port. */ in ip17x_reset_vlans()
68 /* Reset all vlan data. */ in ip17x_reset_vlans()
69 memset(sc->vlan, 0, sizeof(sc->vlan)); in ip17x_reset_vlans()
78 v = &sc->vlan[i]; in ip17x_reset_vlans()
91 * Setup vlan 1 as PVID for all switch ports. Add all ports as in ip17x_reset_vlans()
92 * members of vlan 1. in ip17x_reset_vlans()
94 v = &sc->vlan[0]; in ip17x_reset_vlans()
118 /* Vlan ID. */ in ip17x_getvgroup()
119 vg->es_vid = sc->vlan[vg->es_vlangroup].vlanid; in ip17x_getvgroup()
126 if ((sc->vlan[vg->es_vlangroup].ports & (1 << i)) == 0) in ip17x_getvgroup()
[all …]
/freebsd-src/sys/dev/mii/
H A Drlswitch.c141 val |= 0 << 10; /* enable 802.1q VLAN Tag support */ in rlswitch_attach()
142 val |= 0 << 9; /* enable VLAN ingress filtering */ in rlswitch_attach()
143 val |= 1 << 8; /* disable VLAN tag admit control */ in rlswitch_attach()
157 val |= 1 << 11; /* disable forwarding unicast frames to other VLAN's */ in rlswitch_attach()
158 val |= 1 << 10; /* disable forwarding ARP broadcasts to other VLAN's */ in rlswitch_attach()
160 val |= 0 << 8; /* enable VLAN */ in rlswitch_attach()
173 val |= 1 << 11; /* drop received packets with wrong VLAN tag */ in rlswitch_attach()
180 val |= 1 << 0; /* remove VLAN tags on output */ in rlswitch_attach()
186 val |= 1 << 11; /* drop received packets with wrong VLAN tag */ in rlswitch_attach()
193 val |= 1 << 0; /* remove VLAN tags on output */ in rlswitch_attach()
[all …]
/freebsd-src/tests/sys/netgraph/
H A Dvlan_rotate.c45 struct vlan struct
55 struct vlan vlan[10]; argument
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[6] = {htons(ETHERTYPE_VLAN), htons(EVL_MAKETAG(7, 0, 0))},
68 .vlan[7] = {htons(ETHERTYPE_VLAN), htons(EVL_MAKETAG(8, 0, 0))},
[all …]
/freebsd-src/sbin/etherswitchcfg/
H A Detherswitchcfg.884 Sets the switch VLAN mode (depends on the hardware).
133 Add VLAN tag to each packet sent by the port.
135 Disable the add VLAN tag option.
137 Strip the VLAN tags from the packets sent by the port.
139 Disable the strip VLAN tag option.
141 Strip the VLAN tags from the packets received by the port.
143 Disable the strip VLAN tag on ingress option.
153 Drop packets with a VLAN tag.
157 Drop packets without a VLAN tag.
172 The vlangroup command selects one of the VLAN groups for configuration.
[all …]
/freebsd-src/share/man/man4/
H A Dng_vlan_rotate.434 .Nd IEEE 802.1ad VLAN manipulation netgraph node type
42 node type manipulates the order of VLAN tags of frames tagged
112 innermost VLAN tag to the outmost level.
113 Rotation includes the VLAN id, the ether type, and the QOS parameters
157 frames so that the innermost C-VLAN can be used as service
159 The single or double tagged frames (C-VLAN removed) are sent out to an
171 mkpeer rotate: vlan ordered downstream
174 msg services: addfilter { vlan=123 hook="voip" }
183 ethertype 802.1Q-9100 (0x9100), length 110: vlan 2, p 1,
184 ethertype 802.1Q-QinQ, vlan 101, p 0,
[all …]
H A Dng_vlan.430 .Nd IEEE 802.1Q VLAN tagging netgraph node type
37 .Nm vlan
46 .Dq vlan
47 hooks, each associated with a particular VLAN tag.
55 .Dq vlan
73 .Dq vlan
119 mkpeer ${ETHER_IF}: vlan lower downstream
120 name ${ETHER_IF}:lower vlan
121 connect ${ETHER_IF}: vlan: upper nomatch
124 ngctl mkpeer vlan: eiface vlan123 ether
[all …]
H A Dvlan.427 .Dt VLAN 4
30 .Nm vlan
31 .Nd "IEEE 802.1Q VLAN network interface"
37 .Cd "device vlan"
70 numeric VLAN tag using
77 The VLAN tag should match one of those set up in the switched
85 .Va net.link.vlan.soft_pad
93 .Va net.link.vlan.soft_pad
107 interface, it may do full VLAN processing or just be able to
120 At present, these devices are capable of full VLAN processin
[all...]
/freebsd-src/sys/net/
H A Dif_vlan_var.h35 /* Set the VLAN ID in an mbuf packet header non-destructively. */
77 #define SIOCGVLANPCP SIOCGLANPCP /* Get VLAN PCP */
78 #define SIOCSVLANPCP SIOCSLANPCP /* Set VLAN PCP */
82 * Drivers that are capable of adding and removing the VLAN header
86 * VLAN header w/o lowering the normal MTU should mark IFCAP_VLAN_MTU
87 * in if_capabilities; this notifies the VLAN code it can leave the
88 * MTU on the vlan interface at the normal setting.
92 * VLAN tags are stored in host byte order. Byte swapping may be
95 * Drivers that support hardware VLAN tag stripping fill in the
96 * received VLAN tag (containing both vlan and priority information)
[all …]
/freebsd-src/sys/dev/etherswitch/ar40xx/
H A Dar40xx_hw_vtu.c75 * Perform a VTU (vlan table unit) operation.
104 * Load in a VLAN table map / port configuration for the given
105 * vlan ID.
123 /* Not in the VLAN at all */ in ar40xx_hw_vtu_load_vlan()
125 else if (sc->sc_vlan.vlan == 0) in ar40xx_hw_vtu_load_vlan()
126 /* VLAN mode disabled; keep the provided VLAN tag */ in ar40xx_hw_vtu_load_vlan()
129 /* Port in the VLAN; is untagged */ in ar40xx_hw_vtu_load_vlan()
132 /* Port is in the VLAN; is tagged */ in ar40xx_hw_vtu_load_vlan()
142 * Flush all VLAN port entries.
156 * Get the VLAN port map for the given vlan ID.
[all …]
/freebsd-src/sys/kern/
H A Duipc_mbufhash.c159 struct ether_vlan_header vlan; in m_ether_tcpip_hash() member
162 const struct ether_vlan_header *vlan; in m_ether_tcpip_hash() local
175 /* Special handling for encapsulating VLAN frames */ in m_ether_tcpip_hash()
180 vlan = m_common_hash_gethdr(m, off, sizeof(*vlan), &buf); in m_ether_tcpip_hash()
181 if (vlan == NULL) in m_ether_tcpip_hash()
185 p = fnv_32_buf(&vlan->evl_tag, sizeof(vlan->evl_tag), p); in m_ether_tcpip_hash()
186 etype = ntohs(vlan->evl_proto); in m_ether_tcpip_hash()
187 off += sizeof(*vlan) - sizeof(*eh); in m_ether_tcpip_hash()
/freebsd-src/sys/dev/cxgbe/
H A Dt4_l2t.c111 find_or_alloc_l2e(struct l2t_data *d, uint16_t vlan, uint8_t port, uint8_t *dmac) in find_or_alloc_l2e()
122 e->vlan == vlan && e->lport == port) in find_or_alloc_l2e()
161 req->vlan = htons(e->vlan); in mk_write_l2e()
199 * associated with a specific VLAN and destination MAC that never changes.
212 int *ndesc, uint16_t vlan, uint8_t port, uint8_t *eth_addr) in t4_l2t_alloc_tls()
230 if (e->vlan == vlan && e->lport == port && in t4_l2t_alloc_tls()
265 e->vlan in t4_l2t_alloc_tls()
110 find_or_alloc_l2e(struct l2t_data * d,uint16_t vlan,uint8_t port,uint8_t * dmac) find_or_alloc_l2e() argument
211 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) t4_l2t_alloc_tls() argument
286 t4_l2t_alloc_switching(struct adapter * sc,uint16_t vlan,uint8_t port,uint8_t * eth_addr) t4_l2t_alloc_switching() argument
[all...]
/freebsd-src/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-src/sys/contrib/ncsw/Peripherals/FM/Port/
H A Dfm_port_dsar.h53 @Description Deep Sleep Auto Response VLAN-IPv4 Binding Table (for ARP/ICMPv4)
59 …uint16_t vlanId; /*!< 12 bits VLAN ID. The 4 left-most bits should be cleared …
60 /*!< This field should be 0x0000 for an entry with no VLAN tag or a null VLAN ID. */
74 0x1C NMVLAN_CNT Not My VLAN counter
85 uint32_t nmVlanCnt; /**< Not My VLAN counter */
104 uint16_t numOfBindings; /**< Number of VLAN-IPv4 */
105 uint32_t p_Bindings; /**< VLAN-IPv4 Bindings table pointer. */
112 @Description Deep Sleep Auto Response VLAN-IPv4 Binding Table (for ARP/ICMPv4)
118 …uint16_t vlanId; /*!< 12 bits VLAN ID. The 4 left-most bits should be cleared …
119 /*!< This field should be 0x0000 for an entry with no VLAN tag or a null VLAN ID. */
[all …]
/freebsd-src/sbin/ifconfig/
H A Difvlan.c122 errx(1, "invalid vlan tag"); in vlan_parse_ethervid()
128 errx(1, "invalid vlan tag"); in vlan_parse_ethervid()
131 errx(1, "invalid vlan tag"); in vlan_parse_ethervid()
134 * allow "devX.Y vlandev devX vlan Y" syntax in vlan_parse_ethervid()
139 errx(1, "ambiguous vlan specification"); in vlan_parse_ethervid()
145 errx(1, "ambiguous vlan specification"); in vlan_parse_ethervid()
158 errx(1, "must specify a tag for vlan create"); in vlan_create()
160 errx(1, "must specify a parent device for vlan create"); in vlan_create()
172 errx(1, "both vlan and vlandev must be specified"); in vlan_cb()
197 errx(1, "invalid value for vlan"); in setvlantag()
[all …]
/freebsd-src/contrib/wpa/src/drivers/
H A Ddriver_roboswitch.c35 #define ROBO_VLAN_PAGE 0x34 /* VLAN page */
44 /* VLAN page registers */
45 #define ROBO_VLAN_ACCESS 0x08 /* VLAN table access register */
46 #define ROBO_VLAN_ACCESS_5350 0x06 /* VLAN table access register (5350) */
47 #define ROBO_VLAN_READ 0x0c /* VLAN read register */
361 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 * in wpa_driver_roboswitch_init()
[all...]
/freebsd-src/tests/sys/netpfil/pf/
H A Daltq.sh92 atf_set descr 'CBQ over VLAN test'
104 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 creat
[all...]
/freebsd-src/contrib/wpa/hostapd/
H A Dhostapd.vlan1 # VLAN ID to network interface mapping
6 # Optional wildcard entry matching all VLAN IDs. The first # in the interface
7 # name will be replaced with the VLAN ID. The network interfaces are created
9 * vlan#

12345678910>>...27