/freebsd/contrib/wpa/src/ap/ |
H A D | vlan_init.c | 52 ret = wpa_auth_ensure_group(hapd->wpa_auth, vlan->vlan_id); in vlan_if_add() 58 vlan->vlan_id, ret); in vlan_if_add() 59 if (wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id)) in vlan_if_add() 74 ret = wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id); in vlan_if_remove() 78 vlan->vlan_id, ret); in vlan_if_remove() 88 if (vlan->vlan_id != VLAN_ID_WILDCARD) { in vlan_dynamic_add() 117 if (vlan->vlan_id != VLAN_ID_WILDCARD) in vlan_dynamic_remove() 120 if (vlan->vlan_id != VLAN_ID_WILDCARD && in vlan_dynamic_remove() 153 vlan->vlan_id = VLAN_ID_WILDCARD; in vlan_init() 188 int vlan_id, in vlan_add_dynamic() argument [all …]
|
H A D | vlan_init.h | 18 int vlan_id, 20 int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id); 33 int vlan_id, struct vlan_description *vlan_desc) in vlan_add_dynamic() argument 38 static inline int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id) in vlan_remove_dynamic() argument
|
H A D | ieee802_11_auth.c | 212 struct vlan_description *vlan_id) in hostapd_check_acl() argument 215 hapd->conf->num_accept_mac, addr, vlan_id)) in hostapd_check_acl() 219 hapd->conf->num_deny_mac, addr, vlan_id)) in hostapd_check_acl() 258 res = hostapd_check_acl(hapd, addr, &out->vlan_id); in hostapd_allowed_address() 275 os_memset(&out->vlan_id, 0, sizeof(out->vlan_id)); in hostapd_allowed_address() 559 info->vlan_id.notempty = !!radius_msg_get_vlanid( in hostapd_acl_recv_radius() 560 msg, &info->vlan_id.untagged, in hostapd_acl_recv_radius() 561 MAX_NUM_TAGGED_VLAN, info->vlan_id.tagged); in hostapd_acl_recv_radius() 584 if (info->vlan_id.notempty && in hostapd_acl_recv_radius() 585 !hostapd_vlan_valid(hapd->conf->vlan, &info->vlan_id)) { in hostapd_acl_recv_radius() [all …]
|
H A D | sta_info.c | 369 if (sta->vlan_id) in ap_free_sta() 370 vlan_remove_dynamic(hapd, sta->vlan_id); in ap_free_sta() 1142 int vlan_id = MAX_VLAN_ID + 2; in ap_sta_get_free_vlan_id() local 1146 if (vlan->vlan_id == vlan_id) { in ap_sta_get_free_vlan_id() 1147 vlan_id++; in ap_sta_get_free_vlan_id() 1151 return vlan_id; in ap_sta_get_free_vlan_id() 1159 int old_vlan_id, vlan_id = 0, ret = 0; in ap_sta_set_vlan() local 1162 if (hapd->conf->ssid.per_sta_vif && !sta->vlan_id) { in ap_sta_set_vlan() 1165 !hapd->conf->ssid.per_sta_vif && sta->vlan_id) { in ap_sta_set_vlan() 1175 vlan_id = ap_sta_get_free_vlan_id(hapd); in ap_sta_set_vlan() [all …]
|
H A D | ap_config.c | 344 int vlan_id = 0; in hostapd_config_read_wpa_psk() local 379 vlan_id = atoi(value); in hostapd_config_read_wpa_psk() 408 psk->vlan_id = vlan_id; in hostapd_config_read_wpa_psk() 1057 const u8 *addr, struct vlan_description *vlan_id) in hostapd_maclist_found() argument 1068 if (vlan_id) in hostapd_maclist_found() 1069 *vlan_id = list[middle].vlan_id; in hostapd_maclist_found() 1116 v->vlan_id == VLAN_ID_WILDCARD) in hostapd_vlan_valid() 1124 const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id) in hostapd_get_vlan_id_ifname() argument 1128 if (v->vlan_id == vlan_id) in hostapd_get_vlan_id_ifname() 1138 const u8 *prev_psk, int *vlan_id) in hostapd_get_psk() argument [all …]
|
H A D | wpa_auth_glue.c | 347 int *vlan_id) in hostapd_wpa_auth_get_psk() argument 353 if (vlan_id) in hostapd_wpa_auth_get_psk() 354 *vlan_id = 0; in hostapd_wpa_auth_get_psk() 393 vlan_id); in hostapd_wpa_auth_get_psk() 402 if (vlan_id) in hostapd_wpa_auth_get_psk() 403 *vlan_id = 0; in hostapd_wpa_auth_get_psk() 457 static int hostapd_wpa_auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg, in hostapd_wpa_auth_set_key() argument 464 if (vlan_id > 0) { in hostapd_wpa_auth_set_key() 465 ifname = hostapd_get_vlan_id_ifname(hapd->conf->vlan, vlan_id); in hostapd_wpa_auth_set_key() 515 return hostapd_drv_set_key(ifname, hapd, alg, addr, idx, vlan_id, 1, in hostapd_wpa_auth_set_key() [all …]
|
H A D | ieee802_11_auth.h | 22 struct vlan_description vlan_id; member 29 struct vlan_description *vlan_id);
|
H A D | ap_config.h | 70 struct vlan_description vlan_id; member 139 int vlan_id; /* VLAN ID or -1 (VLAN_ID_WILDCARD) for wildcard entry */ member 172 int vlan_id; member 260 int vlan_id; member 1375 const u8 *addr, struct vlan_description *vlan_id); 1379 const u8 *prev_psk, int *vlan_id); 1384 int vlan_id); 1397 int vlan_id, const u8 *addr);
|
H A D | ctrl_iface_ap.c | 346 if (sta->vlan_id > 0) { in hostapd_ctrl_iface_sta_mib() 348 sta->vlan_id); in hostapd_ctrl_iface_sta_mib() 1514 struct vlan_description vlan_id; in hostapd_ctrl_iface_acl_del_mac() local 1522 if (hostapd_maclist_found(*acl, *num, addr, &vlan_id)) in hostapd_ctrl_iface_acl_del_mac() 1549 acl[i].vlan_id.untagged); in hostapd_ctrl_iface_acl_show_mac() 1563 struct vlan_description vlan_id; in hostapd_ctrl_iface_acl_add_mac() local 1574 if (!hostapd_maclist_found(*acl, *num, addr, &vlan_id)) { in hostapd_ctrl_iface_acl_add_mac() 1587 struct vlan_description vlan_id; in hostapd_disassoc_accept_mac() local 1595 sta->addr, &vlan_id) || in hostapd_disassoc_accept_mac() 1596 (vlan_id.notempty && in hostapd_disassoc_accept_mac() [all …]
|
H A D | wpa_auth.h | 345 int *vlan_id); 347 int (*set_key)(void *ctx, int vlan_id, enum wpa_alg alg, 363 int (*update_vlan)(void *ctx, const u8 *addr, int vlan_id); 514 int wpa_auth_sta_set_vlan(struct wpa_state_machine *sm, int vlan_id); 566 int wpa_auth_ensure_group(struct wpa_authenticator *wpa_auth, int vlan_id); 567 int wpa_auth_release_group(struct wpa_authenticator *wpa_auth, int vlan_id);
|
H A D | wpa_auth.c | 267 int *vlan_id) in wpa_auth_get_psk() argument 272 prev_psk, psk_len, vlan_id); in wpa_auth_get_psk() 286 int vlan_id, in wpa_auth_set_key() argument 293 return wpa_auth->cb->set_key(wpa_auth->cb_ctx, vlan_id, alg, addr, idx, in wpa_auth_set_key() 465 const u8 *addr, int vlan_id) in wpa_auth_update_vlan() argument 469 return wpa_auth->cb->update_vlan(wpa_auth->cb_ctx, addr, vlan_id); in wpa_auth_update_vlan() 502 MAC2STR(wpa_auth->addr), group->vlan_id); in wpa_rekey_all_groups() 679 int vlan_id, int delay_init) in wpa_group_init() argument 688 group->vlan_id = vlan_id; in wpa_group_init() 1299 int vlan_id = 0; local [all …]
|
/freebsd/sys/dev/irdma/ |
H A D | irdma_cm.c | 115 cm_info->vlan_id = cm_node->vlan_id; in irdma_get_addr_info() 490 if (cm_node->vlan_id < VLAN_N_VID) in irdma_form_uda_cm_frame() 522 if (cm_node->vlan_id < VLAN_N_VID) { in irdma_form_uda_cm_frame() 526 cm_node->vlan_id; in irdma_form_uda_cm_frame() 555 if (cm_node->vlan_id < VLAN_N_VID) { in irdma_form_uda_cm_frame() 559 cm_node->vlan_id; in irdma_form_uda_cm_frame() 1520 * @vlan_id: virtual LAN ID 1525 u16 vlan_id, enum irdma_cm_listener_state listener_state) in irdma_find_listener() argument 1544 vlan_id in irdma_find_listener() 1629 irdma_get_vlan_mac_ipv6(struct iw_cm_id * cm_id,u32 * addr,u16 * vlan_id,u8 * mac) irdma_get_vlan_mac_ipv6() argument 1669 u16 vlan_id = 0xFFFF; irdma_get_vlan_ipv4() local 1992 irdma_find_node(struct irdma_cm_core * cm_core,u16 rem_port,u32 * rem_addr,u16 loc_port,u32 * loc_addr,u16 vlan_id) irdma_find_node() argument [all...] |
H A D | irdma_cm.h | 289 u16 vlan_id; member 337 u16 vlan_id; member 366 u16 vlan_id; member
|
/freebsd/sys/dev/etherswitch/ar40xx/ |
H A D | ar40xx_hw.c | 163 sc->sc_vlan.vlan_id[AR40XX_LAN_VLAN] = AR40XX_LAN_VLAN in ar40xx_hw_vlan_init() 165 sc->sc_vlan.vlan_id[AR40XX_WAN_VLAN] = AR40XX_WAN_VLAN in ar40xx_hw_vlan_init() 229 if ((sc->sc_vlan.vlan_id[j] in ar40xx_hw_sw_hw_apply() 241 sc->sc_vlan.vlan_id[j] & ETHERSWITCH_VID_MASK, in ar40xx_hw_sw_hw_apply()
|
H A D | ar40xx_main.c | 145 sc->sc_vlan.vlan_id[i] = 0; in ar40xx_reset_switch() 691 vid = sc->sc_vlan.vlan_id[vg->es_vlangroup]; in ar40xx_getvgroup() 727 vid = sc->sc_vlan.vlan_id[vg->es_vlangroup]; in ar40xx_setvgroup() 747 sc->sc_vlan.vlan_id[vg->es_vlangroup] = vid; in ar40xx_setvgroup() 754 sc->sc_vlan.vlan_id[vg->es_vlangroup] = vid | ETHERSWITCH_VID_VALID; in ar40xx_setvgroup()
|
/freebsd/sys/dev/mlx5/mlx5_lib/ |
H A D | mlx5_gid.c | 123 const u8 *mac, bool vlan, u16 vlan_id) in mlx5_core_roce_gid_set() argument 141 MLX5_SET_RA(in_addr, vlan_id, vlan_id); in mlx5_core_roce_gid_set()
|
/freebsd/sys/dev/qlnx/qlnxr/ |
H A D | qlnxr_cm.c | 127 qp->rqe_wr_id[qp->rq.gsi_cons].vlan_id = data->vlan; in qlnxr_ll2_complete_rx_packet() 463 qlnxr_get_vlan_id_gsi(struct ib_ah_attr *ah_attr, u16 *vlan_id) in qlnxr_get_vlan_id_gsi() argument 470 *vlan_id = tmp_vlan_id; in qlnxr_get_vlan_id_gsi() 473 *vlan_id = 0; in qlnxr_get_vlan_id_gsi() 492 u16 vlan_id = 0; in qlnxr_gsi_build_header() local 505 has_vlan = qlnxr_get_vlan_id_gsi(ah_attr, &vlan_id); in qlnxr_gsi_build_header() 527 udh->vlan.tag = htons(vlan_id); in qlnxr_gsi_build_header() 832 if (qp->rqe_wr_id[qp->rq.cons].vlan_id) { in qlnxr_gsi_poll_cq() 834 wc[i].vlan_id = qp->rqe_wr_id[qp->rq.cons].vlan_id; in qlnxr_gsi_poll_cq()
|
H A D | qlnxr_os.c | 838 bool is_vlan, u16 vlan_id) in qlnxr_build_sgid_mac() argument 845 sgid->raw[11] = vlan_id >> 8; in qlnxr_build_sgid_mac() 846 sgid->raw[12] = vlan_id & 0xff; in qlnxr_build_sgid_mac() 951 u16 vlan_id; in qlnxr_add_sgids() local 958 vlan_id = (is_vlan) ? vlan_dev_vlan_id(ha->ifp) : 0; in qlnxr_add_sgids() 959 qlnxr_build_sgid_mac(&vgid, ha->primary_mac, is_vlan, vlan_id); in qlnxr_add_sgids() 996 u16 vlan_id = 0xffff; in qlnxr_addr_event() local 1000 vlan_id = (is_vlan) ? vlan_dev_vlan_id(dev->ha->ifp) : 0; in qlnxr_addr_event() 1006 qlnxr_build_sgid_mac(&vgid, dev->ha->primary_mac, is_vlan, vlan_id); in qlnxr_addr_event() 1013 qlnxr_build_sgid_mac(&vgid, dev->ha->primary_mac, is_vlan, vlan_id); in qlnxr_addr_event()
|
/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | qplib_sp.h | 89 u16 vlan_id; member 103 u16 vlan_id; member 350 struct bnxt_qplib_gid *gid, u16 vlan_id, bool update); 352 const union ib_gid *gid, const u8 *mac, u16 vlan_id,
|
H A D | qplib_sp.c | 304 u16 vlan_id, bool update) in bnxt_qplib_del_sgid() argument 324 vlan_id == sgid_tbl->tbl[index].vlan_id) in bnxt_qplib_del_sgid() 354 sgid_tbl->tbl[index].vlan_id = 0xFFFF; in bnxt_qplib_del_sgid() 366 const union ib_gid *gid, const u8 *smac, u16 vlan_id, in bnxt_qplib_add_sgid() argument 387 sgid_tbl->tbl[i].vlan_id == vlan_id) { in bnxt_qplib_add_sgid() 421 if ((vlan_id != 0xFFFF) || res->prio) { in bnxt_qplib_add_sgid() 422 if (vlan_id != 0xFFFF) in bnxt_qplib_add_sgid() 423 req.vlan = cpu_to_le16(vlan_id & in bnxt_qplib_add_sgid() 443 if (vlan_id != 0xFFFF) in bnxt_qplib_add_sgid() 447 sgid_tbl->tbl[free_idx].vlan_id = vlan_id; in bnxt_qplib_add_sgid()
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | fs_tcp.h | 37 struct inpcb *, uint32_t tirn, uint32_t flow_tag, uint16_t vlan_id);
|
H A D | mlx5_fs_tcp.c | 92 uint16_t vlan_id) in mlx5e_accel_fs_add_inpcb() argument 115 if (vlan_id != MLX5E_ACCEL_FS_ADD_INPCB_NO_VLAN) { in mlx5e_accel_fs_add_inpcb() 117 MLX5_SET(fte_match_param, spec->match_value, outer_headers.first_vid, vlan_id); in mlx5e_accel_fs_add_inpcb()
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | tcp_common.h | 91 __le16 vlan_id; member 170 __le16 vlan_id; member
|
/freebsd/sys/net/ |
H A D | if_vlan.c | 1234 uint16_t vlan_id; member 1241 { .type = IFLA_VLAN_ID, .off = _OUT(vlan_id), .cb = nlattr_get_uint16 }, 1264 .vlan_id = 0xFEFE, in vlan_clone_create_nl() 1276 if (attrs.vlan_id > 4095) { in vlan_clone_create_nl() 1277 nlmsg_report_err_msg(npt, "Invalid VID: %d", attrs.vlan_id); in vlan_clone_create_nl() 1286 .vlr_tag = attrs.vlan_id, in vlan_clone_create_nl() 1334 error = vlan_config(ifv, ifp_parent, attrs.vlan_id, attrs.vlan_proto); in vlan_clone_modify_nl() 1354 uint16_t vlan_id = 0; in vlan_clone_dump_nl() local 1361 vlan_id = ifv->ifv_vid; in vlan_clone_dump_nl() 1373 nlattr_add_u16(nw, IFLA_VLAN_ID, vlan_id); in vlan_clone_dump_nl() [all …]
|
/freebsd/sys/dev/ice/ |
H A D | ice_switch.c | 1229 u16 vlan_id = ICE_MAX_VLAN_ID + 1; in ice_fill_sw_rule() 1301 vlan_id = f_info->l_data.vlan.vlan_id; in ice_fill_sw_rule() 1319 vlan_id = f_info->l_data.mac_vlan.vlan_id; in ice_fill_sw_rule() 1322 vlan_id = f_info->l_data.mac_vlan.vlan_id; in ice_fill_sw_rule() 1344 if (!(vlan_id > ICE_MAX_VLAN_ID)) { 1346 *off = CPU_TO_BE16(vlan_id); 2541 if (new_fltr->l_data.vlan.vlan_id > ICE_MAX_VLAN_I in ice_add_vlan_internal() 1213 u16 vlan_id = ICE_MAX_VLAN_ID + 1; ice_fill_sw_rule() local 3660 u16 vlan_id; _ice_set_vlan_vsi_promisc() local [all...] |