/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | mesh_rsn.c | 176 rsn->auth = wpa_init(addr, &conf, &cb, rsn); in __mesh_rsn_auth_init() 184 if (random_get_bytes(rsn->mgtk, rsn->mgtk_len) < 0) in __mesh_rsn_auth_init() 190 if (random_get_bytes(rsn->igtk, rsn->igtk_len) < 0) in __mesh_rsn_auth_init() 196 rsn->igtk, rsn->igtk_len); in __mesh_rsn_auth_init() 201 seq, sizeof(seq), rsn->igtk, rsn->igtk_len, in __mesh_rsn_auth_init() 207 rsn->mgtk, rsn->mgtk_len); in __mesh_rsn_auth_init() 211 rsn->mgtk, rsn->mgtk_len, KEY_FLAG_GROUP_TX_DEFAULT); in __mesh_rsn_auth_init() 219 os_memset(rsn->mgtk, 0, sizeof(rsn->mgtk)); in mesh_rsn_deinit() 221 os_memset(rsn->igtk, 0, sizeof(rsn->igtk)); in mesh_rsn_deinit() 583 os_memcpy(pos, rsn->mgtk, rsn->mgtk_len); in mesh_rsn_protect_frame() [all …]
|
H A D | mesh_rsn.h | 34 void mesh_rsn_get_pmkid(struct mesh_rsn *rsn, struct sta_info *sta, u8 *pmkid); 37 int mesh_rsn_protect_frame(struct mesh_rsn *rsn, struct sta_info *sta,
|
H A D | sme.c | 396 const u8 *rsn; in sme_send_authentication() local 399 rsn = wpa_bss_get_ie(bss, WLAN_EID_RSN); in sme_send_authentication() 400 if (!rsn) { in sme_send_authentication() 404 } else if (wpa_parse_wpa_ie(rsn, 2 + rsn[1], &ied) == 0 && in sme_send_authentication() 409 } else if (wpa_parse_wpa_ie(rsn, 2 + rsn[1], &ied) == 0 && in sme_send_authentication() 582 const u8 *rsn = wpa_bss_get_ie(bss, WLAN_EID_RSN); in sme_send_authentication() local 584 if (rsn && wpa_parse_wpa_ie(rsn, 2 + rsn[1], &_ie) == 0 && in sme_send_authentication()
|
H A D | dpp_supplicant.c | 3125 const u8 *rsn; in wpas_dpp_check_connect() local 3131 rsn = wpa_bss_get_ie(bss, WLAN_EID_RSN); in wpas_dpp_check_connect() 3132 if (rsn && wpa_parse_wpa_ie(rsn, 2 + rsn[1], &ied) == 0 && in wpas_dpp_check_connect()
|
H A D | events.c | 1826 const u8 *ssid, *rsn; in wpa_supplicant_rsn_preauth_scan_results() local 1832 rsn = wpa_bss_get_ie(bss, WLAN_EID_RSN); in wpa_supplicant_rsn_preauth_scan_results() 1833 if (rsn == NULL) in wpa_supplicant_rsn_preauth_scan_results() 1836 rsn_preauth_scan_result(wpa_s->wpa, bss->bssid, ssid, rsn); in wpa_supplicant_rsn_preauth_scan_results()
|
/freebsd/sys/net80211/ |
H A D | ieee80211_hostap.c | 1285 memset(rsn, 0, sizeof(*rsn)); in ieee80211_parse_wpa() 1288 error = wpa_cipher(frm, &rsn->rsn_mcastkeylen, &rsn->rsn_mcastcipher); in ieee80211_parse_wpa() 1352 rsn->rsn_caps = le16dec(frm); in ieee80211_parse_wpa() 1462 memset(rsn, 0, sizeof(*rsn)); in ieee80211_parse_rsn() 1465 error = rsn_cipher(frm, &rsn->rsn_mcastkeylen, &rsn->rsn_mcastcipher); in ieee80211_parse_rsn() 1477 rsn->rsn_mcastcipher); in ieee80211_parse_rsn() 1543 rsn->rsn_caps = le16dec(frm); in ieee80211_parse_rsn() 1594 badwparsn = (rsn == NULL); in wpa_assocreq() 2083 rsn = frm; in hostap_recv_mgmt() 2267 if (rsn != NULL) in hostap_recv_mgmt() [all …]
|
H A D | ieee80211_scan.h | 247 uint8_t *rsn; member
|
H A D | ieee80211_input.c | 634 scan->rsn = frm; in ieee80211_parse_beacon()
|
/freebsd/contrib/wpa/src/rsn_supp/ |
H A D | preauth.h | 22 const u8 *ssid, const u8 *rsn); 56 const u8 *ssid, const u8 *rsn) in rsn_preauth_scan_result() argument
|
H A D | wpa.c | 1460 struct wpa_ie_data rsn; in ft_validate_rsnie() local 1470 rsn.num_pmkid != 1 || rsn.pmkid == NULL) { in ft_validate_rsnie() 3459 struct wpa_ie_data rsn; in wpa_sm_pmf_enabled() local 3486 struct wpa_ie_data rsn; in wpa_sm_ocv_enabled() local 3492 &rsn) >= 0 && in wpa_sm_ocv_enabled() 4169 struct wpa_ie_data rsn; in fils_process_auth() local 4244 &rsn) < 0) { in fils_process_auth() 4308 if (rsn.pmkid && rsn.num_pmkid > 0) { in fils_process_auth() 4310 rsn.pmkid, rsn.num_pmkid * PMKID_LEN); in fils_process_auth() 4898 &rsn) < 0 || in fils_process_assoc_resp() [all …]
|
H A D | preauth.c | 478 const u8 *ssid, const u8 *rsn) in rsn_preauth_scan_result() argument 490 if (wpa_parse_wpa_ie(rsn, 2 + rsn[1], &ie)) in rsn_preauth_scan_result()
|
H A D | wpa_ft.c | 1123 parse.rsn - 2, parse.rsn_len + 2, in wpa_ft_validate_reassoc_resp() 1160 parse.rsn - 2, parse.rsn_len + 2)) { in wpa_ft_validate_reassoc_resp() 1167 parse.rsn ? parse.rsn - 2 : NULL, in wpa_ft_validate_reassoc_resp() 1168 parse.rsn ? parse.rsn_len + 2 : 0); in wpa_ft_validate_reassoc_resp()
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_eq.c | 234 u32 rsn; in mlx5_eq_int() local 263 rsn = be32_to_cpu(eqe->data.qp_srq.qp_srq_n) & 0xffffff; in mlx5_eq_int() 265 eqe_type_str(eqe->type), eqe->type, rsn); in mlx5_eq_int() 266 mlx5_rsc_event(dev, rsn, eqe->type); in mlx5_eq_int() 271 rsn = be32_to_cpu(eqe->data.qp_srq.qp_srq_n) & 0xffffff; in mlx5_eq_int() 273 eqe_type_str(eqe->type), eqe->type, rsn); in mlx5_eq_int() 274 mlx5_srq_event(dev, rsn, eqe->type); in mlx5_eq_int()
|
H A D | mlx5_qp.c | 36 u32 rsn) in mlx5_get_rsc() argument 43 common = radix_tree_lookup(&table->tree, rsn); in mlx5_get_rsc() 51 rsn); in mlx5_get_rsc() 63 void mlx5_rsc_event(struct mlx5_core_dev *dev, u32 rsn, int event_type) in mlx5_rsc_event() argument 65 struct mlx5_core_rsc_common *common = mlx5_get_rsc(dev, rsn); in mlx5_rsc_event() 78 mlx5_core_warn(dev, "invalid resource type for 0x%x\n", rsn); in mlx5_rsc_event()
|
/freebsd/contrib/ofed/libmlx5/ |
H A D | cq.c | 346 uint32_t rsn, int cqe_ver) 350 uint32_t rsn, int cqe_ver) in get_req_context() argument 352 if (!*cur_rsc || (rsn != (*cur_rsc)->rsn)) in get_req_context() 353 *cur_rsc = cqe_ver ? mlx5_find_uidx(mctx, rsn) : in get_req_context() 354 (struct mlx5_resource *)mlx5_find_qp(mctx, rsn); in get_req_context() 371 if (!*cur_rsc || (uidx != (*cur_rsc)->rsn)) { in get_resp_ctx_v1() 406 if (!*cur_rsc || (qpn != (*cur_rsc)->rsn)) { in get_qp_ctx() 1319 return rsn == (be32toh(cqe64->sop_drop_qpn) & 0xffffff); in is_equal_rsn() 1345 if (is_equal_uidx(cqe64, rsn)) { in free_res_cqe() 1352 if (is_equal_rsn(cqe64, rsn)) { in free_res_cqe() [all …]
|
H A D | verbs.c | 707 srq->rsc.rsn = resp.srqn; in mlx5_create_srq() 760 mlx5_clear_uidx(ctx, msrq->rsc.rsn); in mlx5_destroy_srq() 1520 __mlx5_cq_clean(to_mcq(ibqp->recv_cq), qp->rsc.rsn, in mlx5_destroy_qp() 1534 mlx5_clear_uidx(ctx, qp->rsc.rsn); in mlx5_destroy_qp() 1624 mlx5_cq_clean(to_mcq(qp->recv_cq), mqp->rsc.rsn, in mlx5_modify_qp() 1629 to_mqp(qp)->rsc.rsn, NULL); in mlx5_modify_qp() 1921 msrq->rsc.rsn = ctx->cqe_version ? cmd.uidx : resp.srqn; in mlx5_create_xrc_srq() 2131 rwq->rsc.rsn = cmd.drv.user_index; in mlx5_create_wq() 2165 rwq->rsc.rsn, NULL); in mlx5_modify_wq() 2186 __mlx5_cq_clean(to_mcq(wq->cq), rwq->rsc.rsn, NULL); in mlx5_destroy_wq() [all …]
|
H A D | mlx5.h | 191 uint32_t rsn; member
|
/freebsd/sys/fs/devfs/ |
H A D | devfs.h | 59 #define mkrid(rsn, rn) ((rn) | ((rsn) << 16)) argument
|
/freebsd/contrib/pf/authpf/ |
H A D | authpf.c | 751 char *rsn = NULL, *fn = NULL; in change_filter() local 768 if (asprintf(&rsn, "%s/%s", anchorname, rulesetname) == -1) in change_filter() 785 pargv[5] = rsn; in change_filter() 832 free(rsn); in change_filter()
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_cq.c | 1029 static int is_equal_rsn(struct mlx5_cqe64 *cqe64, u32 rsn) in is_equal_rsn() argument 1031 return rsn == (ntohl(cqe64->sop_drop_qpn) & 0xffffff); in is_equal_rsn() 1034 void __mlx5_ib_cq_clean(struct mlx5_ib_cq *cq, u32 rsn, struct mlx5_ib_srq *srq) in __mlx5_ib_cq_clean() argument 1061 if (is_equal_rsn(cqe64, rsn)) { in __mlx5_ib_cq_clean()
|
/freebsd/contrib/wpa/src/common/ |
H A D | wpa_common.h | 500 const u8 *rsn; member
|
H A D | wpa_common.c | 1026 parse->rsn = pos; in wpa_ft_parse_ies() 1028 ret = wpa_parse_wpa_ie_rsn(parse->rsn - 2, in wpa_ft_parse_ies() 1130 if (parse->rsn) in wpa_ft_parse_ies()
|
/freebsd/contrib/wpa/src/ap/ |
H A D | ieee802_11.c | 1783 struct wpa_ie_data rsn; in handle_auth_fils() local 1879 &rsn) < 0) { in handle_auth_fils() 1915 if (rsn.pmkid && rsn.num_pmkid > 0) { in handle_auth_fils() 1920 rsn.pmkid, rsn.num_pmkid * PMKID_LEN); in handle_auth_fils() 1922 pmkid = rsn.pmkid; in handle_auth_fils() 1923 num = rsn.num_pmkid; in handle_auth_fils()
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_wlan/ |
H A D | wlan_tree.def | 189 10 rsn
|
/freebsd/sys/dev/mlx5/ |
H A D | driver.h | 1081 void mlx5_rsc_event(struct mlx5_core_dev *dev, u32 rsn, int event_type);
|