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

12

/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/ap/
H A Dvlan_init.c373 Add a vlan interface with VLAN ID 'vid' and tagged interface
403 /* Determine if a suitable vlan device already exists. */
405 os_snprintf(if_request.device1, sizeof(if_request.device1), "vlan%d",
427 /* A suitable vlan device does not already exist, add one. */
481 struct hostapd_vlan *vlan = hapd->conf->vlan; local
486 while (vlan) {
487 if (os_strcmp(ifname, vlan->ifname) == 0) {
490 vlan->vlan_id);
493 vlan
527 struct hostapd_vlan *first, *prev, *vlan = hapd->conf->vlan; local
753 vlan_dynamic_add(struct hostapd_data *hapd, struct hostapd_vlan *vlan) argument
779 vlan_dynamic_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan) argument
826 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vlan_id) argument
880 struct hostapd_vlan *vlan; local
[all...]
H A Dvlan_init.h23 struct hostapd_vlan *vlan,
40 struct hostapd_vlan *vlan,
39 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vlan_id) argument
H A Dsta_info.c542 struct hostapd_vlan *vlan = NULL; local
546 * Do not proceed furthur if the vlan id remains same. We do not want
547 * duplicate dynamic vlan entries.
553 * During 1x reauth, if the vlan id changes, then remove the old id and
560 if (sta->ssid->vlan[0])
561 iface = sta->ssid->vlan;
566 vlan = hapd->conf->vlan;
567 while (vlan) {
568 if (vlan
[all...]
H A Dap_config.c31 struct hostapd_vlan *vlan, *prev; local
33 vlan = bss->vlan;
35 while (vlan) {
36 prev = vlan;
37 vlan = vlan->next;
41 bss->vlan = NULL;
523 const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id) argument
525 struct hostapd_vlan *v = vlan;
[all...]
H A Dap_config.h60 char vlan[IFNAMSIZ + 1]; member in struct:hostapd_ssid
275 struct hostapd_vlan *vlan, *vlan_tail; member in struct:hostapd_bss_config
390 const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan,
H A Dhostapd.c181 ifname = hostapd_get_vlan_id_ifname(hapd->conf->vlan,
H A Dwpa_auth_glue.c228 ifname = hostapd_get_vlan_id_ifname(hapd->conf->vlan, vlan_id);
/netbsd-6-1-5-RELEASE/sbin/ifconfig/
H A DMakefile.inc22 SRCS+= vlan.c
H A Dvlan.c1 /* $NetBSD: vlan.c,v 1.12 2008/07/15 21:27:58 dyoung Exp $ */
34 __RCSID("$NetBSD: vlan.c,v 1.12 2008/07/15 21:27:58 dyoung Exp $");
73 {.k_word = "vlan", .k_nextparser = &vlantag.pi_parser}
80 struct pkw vlan = PKW_INITIALIZER(&vlan, "vlan", NULL, NULL, variable in typeref:struct:pkw
91 return strncmp(ifname, "vlan", 4) != 0 ||
103 errx(EXIT_FAILURE, "valid only with vlan(4) interfaces");
178 fprintf(stderr, "\t[ vlan n vlanif i ]\n");
184 cmdloop_branch_init(&branch, &vlan
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/mips/adm5120/dev/
H A Dif_admsw.c544 static int vlan = 0; local
552 vlan++;
553 if (vlan == SW_DEVS)
554 vlan = 0;
555 i = vlan;
568 if (i == vlan)
571 vlan = i;
652 desc->status = (len << ADM5120_DMA_LENSHIFT) | (1 << vlan);
694 int vlan; local
716 for (vlan
841 int i, vlan; local
914 int i, len, port, vlan; local
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/wpa_supplicant/tests/
H A Dlink_test.c80 const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id) argument
/netbsd-6-1-5-RELEASE/sys/net/npf/
H A Dnpf_instr.c62 bool vlan = false; local
78 if (val16 == ETHERTYPE_VLAN && !vlan) {
80 vlan = true;
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/drivers/
H A Ddriver_roboswitch.c357 u16 vlan = 0, _read[2]; local
367 /* find the '.' seperating <interface> and <vlan> */
370 wpa_printf(MSG_INFO, "%s: No <interface>.<vlan> pair in "
378 wpa_printf(MSG_INFO, "%s: Invalid vlan specification "
383 vlan *= 10;
384 vlan += *sep - '0';
385 if (vlan > ROBO_VLAN_MAX) {
423 vlan |= 1 << 13;
427 &vlan, 1);
432 "VLAN %d", __func__, vlan
[all...]
/netbsd-6-1-5-RELEASE/sys/dev/pci/ixgbe/
H A Dixgbe_vf.c58 s32 ixgbe_set_vfta_vf(struct ixgbe_hw *hw, u32 vlan, u32 vind, bool vlan_on);
382 * ixgbe_set_vfta_vf - Set/Unset vlan filter table address
384 * @vlan: 12 bit VLAN ID
388 s32 ixgbe_set_vfta_vf(struct ixgbe_hw *hw, u32 vlan, u32 vind, bool vlan_on) argument
395 msgbuf[1] = vlan;
H A Dixgbe_82598.c66 s32 ixgbe_set_vfta_82598(struct ixgbe_hw *hw, u32 vlan,
1027 * @vlan: VLAN id to write to VLAN filter
1033 s32 ixgbe_set_vfta_82598(struct ixgbe_hw *hw, u32 vlan, u32 vind, argument
1043 if (vlan > 4095)
1047 regindex = (vlan >> 5) & 0x7F; /* upper seven bits */
1050 vftabyte = ((vlan >> 3) & 0x03); /* bits (4:3) indicating byte array */
1051 bitindex = (vlan & 0x7) << 2; /* lower 3 bits indicate nibble */
1060 bitindex = vlan & 0x1F; /* lower five bits */
H A Dixgbe_api.h110 s32 ixgbe_set_vfta(struct ixgbe_hw *hw, u32 vlan,
H A Dixgbe_common.h109 s32 ixgbe_set_vfta_generic(struct ixgbe_hw *hw, u32 vlan,
H A Dixgbe_common.c62 s32 ixgbe_find_vlvf_slot(struct ixgbe_hw *hw, u32 vlan);
3029 * @vlan: VLAN id to write to VLAN filter
3034 s32 ixgbe_find_vlvf_slot(struct ixgbe_hw *hw, u32 vlan) argument
3041 if (vlan == 0)
3045 * Search for the vlan id in the VLVF entries. Save off the first empty
3052 else if ((bits & 0x0FFF) == vlan)
3057 * If regindex is less than IXGBE_VLVF_ENTRIES, then we found the vlan
3059 * vlan id.
3076 * @vlan: VLAN id to write to VLAN filter
3082 s32 ixgbe_set_vfta_generic(struct ixgbe_hw *hw, u32 vlan, u3 argument
[all...]
H A Dixgbe_api.c898 * @vlan: VLAN id to write to VLAN filter
904 s32 ixgbe_set_vfta(struct ixgbe_hw *hw, u32 vlan, u32 vind, bool vlan_on) argument
906 return ixgbe_call_func(hw, hw->mac.ops.set_vfta, (hw, vlan, vind,
/netbsd-6-1-5-RELEASE/sys/dev/pci/cxgb/
H A Dcxgb_l2t.h63 uint16_t vlan; /* VLAN TCI (id: bits 0-11, prio: 13-15 */ member in struct:l2t_entry
H A Dcxgb_ioctl.h137 uint16_t vlan:12; member in struct:ch_filter_tuple
210 uint32_t vlan:12, member in struct:ch_trace
H A Dcxgb_l2t.c77 return e->vlan >> 13;
123 V_L2T_W_VLAN(e->vlan & EVL_VLID_MASK) |
377 * XXX need to add accessor function for vlan tag
380 e->vlan = VLAN_DEV_INFO(neigh->dev)->vlan_id;
383 e->vlan = VLAN_NONE;
643 e->vlan & EVL_VLID_MASK, vlan_prio(e),
H A Dcxgb_lro.c256 if (cpl->vlan_valid && cpl->vlan != ncpl->vlan) {
H A Dcxgb_offload.c190 get_iff_from_mac(adapter_t *adapter, const uint8_t *mac, unsigned int vlan) argument
201 if (vlan && vlan != EVL_VLID_MASK) {
203 dev = grp ? grp->vlan_devices[vlan] : NULL;
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/hostapd/
H A Dconfig_file.c41 struct hostapd_vlan *vlan; local
92 vlan = os_malloc(sizeof(*vlan));
93 if (vlan == NULL) {
100 os_memset(vlan, 0, sizeof(*vlan));
101 vlan->vlan_id = vlan_id;
102 os_strlcpy(vlan->ifname, pos, sizeof(vlan->ifname));
104 bss->vlan_tail->next = vlan;
[all...]

Completed in 294 milliseconds

12