/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/ap/ |
H A D | vlan_init.c | 373 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 D | vlan_init.h | 23 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 D | sta_info.c | 542 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 D | ap_config.c | 31 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 D | ap_config.h | 60 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 D | hostapd.c | 181 ifname = hostapd_get_vlan_id_ifname(hapd->conf->vlan,
|
H A D | wpa_auth_glue.c | 228 ifname = hostapd_get_vlan_id_ifname(hapd->conf->vlan, vlan_id);
|
/netbsd-6-1-5-RELEASE/sbin/ifconfig/ |
H A D | Makefile.inc | 22 SRCS+= vlan.c
|
H A D | vlan.c | 1 /* $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 D | if_admsw.c | 544 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 D | link_test.c | 80 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 D | npf_instr.c | 62 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 D | driver_roboswitch.c | 357 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 D | ixgbe_vf.c | 58 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 D | ixgbe_82598.c | 66 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 D | ixgbe_api.h | 110 s32 ixgbe_set_vfta(struct ixgbe_hw *hw, u32 vlan,
|
H A D | ixgbe_common.h | 109 s32 ixgbe_set_vfta_generic(struct ixgbe_hw *hw, u32 vlan,
|
H A D | ixgbe_common.c | 62 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 D | ixgbe_api.c | 898 * @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 D | cxgb_l2t.h | 63 uint16_t vlan; /* VLAN TCI (id: bits 0-11, prio: 13-15 */ member in struct:l2t_entry
|
H A D | cxgb_ioctl.h | 137 uint16_t vlan:12; member in struct:ch_filter_tuple 210 uint32_t vlan:12, member in struct:ch_trace
|
H A D | cxgb_l2t.c | 77 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 D | cxgb_lro.c | 256 if (cpl->vlan_valid && cpl->vlan != ncpl->vlan) {
|
H A D | cxgb_offload.c | 190 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 D | config_file.c | 41 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...] |