Home
last modified time | relevance | path

Searched refs:sgid (Results 1 – 25 of 79) sorted by relevance

1234

/freebsd/sys/dev/qlnx/qlnxr/
H A Dqlnxr_os.c836 qlnxr_build_sgid_mac(union ib_gid *sgid, unsigned char *mac_addr, in qlnxr_build_sgid_mac() argument
839 sgid->global.subnet_prefix = OSAL_CPU_TO_BE64(0xfe80000000000000LL); in qlnxr_build_sgid_mac()
840 sgid->raw[8] = mac_addr[0] ^ 2; in qlnxr_build_sgid_mac()
841 sgid->raw[9] = mac_addr[1]; in qlnxr_build_sgid_mac()
842 sgid->raw[10] = mac_addr[2]; in qlnxr_build_sgid_mac()
844 sgid->raw[11] = vlan_id >> 8; in qlnxr_build_sgid_mac()
845 sgid->raw[12] = vlan_id & 0xff; in qlnxr_build_sgid_mac()
847 sgid->raw[11] = 0xff; in qlnxr_build_sgid_mac()
848 sgid->raw[12] = 0xfe; in qlnxr_build_sgid_mac()
850 sgid->raw[13] = mac_addr[3]; in qlnxr_build_sgid_mac()
[all …]
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_uverbs_marshall.c142 memcpy(dst->sgid, src->sgid.raw, sizeof(src->sgid)); in __ib_copy_path_rec_to_user()
183 if ((ib_is_opa_gid((union ib_gid *)src->sgid)) || in ib_copy_path_rec_from_user()
186 slid = htonl(opa_get_lid_from_gid((union ib_gid *)src->sgid)); in ib_copy_path_rec_from_user()
194 memcpy(dst->sgid.raw, src->sgid, sizeof dst->sgid); in ib_copy_path_rec_from_user()
H A Dib_addr.c887 union rdma_sockaddr sgid, dgid; in roce_resolve_route_from_path() local
894 rdma_gid2ip(&sgid._sockaddr, &rec->sgid); in roce_resolve_route_from_path()
897 if (sgid._sockaddr.sa_family != dgid._sockaddr.sa_family) in roce_resolve_route_from_path()
906 ret = addr_resolve(&sgid._sockaddr, &dgid._sockaddr, in roce_resolve_route_from_path()
970 int rdma_addr_find_l2_eth_by_grh(const union ib_gid *sgid, in rdma_addr_find_l2_eth_by_grh() argument
980 rdma_gid2ip(&sgid_addr._sockaddr, sgid); in rdma_addr_find_l2_eth_by_grh()
H A Dib_verbs.c699 u16 vlan_id, const union ib_gid *sgid, in get_sgid_attr_from_eth() argument
705 return rdma_find_gid_by_filter(device, sgid, port_num, find_gid_index, in get_sgid_attr_from_eth()
711 union ib_gid *sgid, union ib_gid *dgid) in ib_get_gids_from_rdma_hdr() argument
717 if (!sgid || !dgid) in ib_get_gids_from_rdma_hdr()
728 (struct in6_addr *)sgid); in ib_get_gids_from_rdma_hdr()
735 *sgid = hdr->ibgrh.sgid; in ib_get_gids_from_rdma_hdr()
796 union ib_gid sgid; in ib_init_ah_attr_from_wc() local
808 &sgid, &dgid); in ib_init_ah_attr_from_wc()
830 &sgid, in ib_init_ah_attr_from_wc()
859 &sgid, in ib_init_ah_attr_from_wc()
H A Dib_cma.c721 union ib_gid gid, sgid, *dgid; in cma_resolve_ib_dev() local
748 sgid = gid; in cma_resolve_ib_dev()
757 sgid = gid; in cma_resolve_ib_dev()
771 memcpy(&addr->sib_addr, &sgid, sizeof(sgid)); in cma_resolve_ib_dev()
1158 memcpy(&ib->sib_addr, &path->sgid, 16); in cma_save_ib_info()
1375 memcpy(&req->local_gid, &req_param->primary_path->sgid, in cma_save_req_info()
2122 rdma_addr_set_sgid(&rt->addr.dev_addr, &rt->path_rec[0].sgid); in cma_ib_new_conn_id()
2308 void rdma_read_gids(struct rdma_cm_id *cm_id, union ib_gid *sgid, in rdma_read_gids() argument
2314 if (sgid) in rdma_read_gids()
2315 memset(sgid, 0, sizeof(*sgid)); in rdma_read_gids()
[all …]
/freebsd/contrib/ofed/libibverbs/
H A Dmarshall.c96 memcpy(dst->sgid.raw, src->sgid, sizeof dst->sgid); in ibv_copy_path_rec_from_kern()
121 memcpy(dst->sgid, src->sgid.raw, sizeof src->sgid); in ibv_copy_path_rec_to_kern()
H A Dverbs.c738 union ibv_gid sgid; in ibv_find_gid_index() local
742 ret = ibv_query_gid(context, port_num, i, &sgid); in ibv_find_gid_index()
748 } while (!ret && (memcmp(&sgid, gid, sizeof(*gid)) || in ibv_find_gid_index()
826 union ibv_gid sgid; in set_ah_attr_by_ipv4() local
835 map_ipv4_addr_to_ipv6(ip4h->ip_dst.s_addr, (struct in6_addr *)&sgid); in set_ah_attr_by_ipv4()
836 ret = ibv_find_gid_index(context, port_num, &sgid, in set_ah_attr_by_ipv4()
865 ah_attr->grh.dgid = grh->sgid; in set_ah_attr_by_ipv6()
991 union ibv_gid sgid; in ibv_resolve_eth_l2_from_gid() local
1000 attr->grh.sgid_index, &sgid); in ibv_resolve_eth_l2_from_gid()
1013 src_family = ipv6_addr_v4mapped((struct in6_addr *)sgid.raw) ? in ibv_resolve_eth_l2_from_gid()
[all …]
H A Dsa.h44 union ibv_gid sgid; member
106 union ibv_gid sgid; member
/freebsd/contrib/openbsm/bin/auditdistd/
H A Dsandbox.c77 gid_t sgid; in sandbox() local
201 PJDLOG_VERIFY(getresgid(&rgid, &egid, &sgid) == 0); in sandbox()
202 PJDLOG_VERIFY(sgid == pw->pw_gid); in sandbox()
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-setres_id.c29 setresgid(gid_t rgid, gid_t egid, gid_t sgid) in setresgid() argument
33 if (rgid != sgid) { in setresgid()
/freebsd/contrib/mtree/
H A Dcreate.c335 gid_t sgid; in statd() local
373 sgid = p->fts_statp->st_gid; in statd()
374 if (sgid < MTREE_MAXGID && ++g[sgid] > maxgid) { in statd()
375 savegid = sgid; in statd()
376 maxgid = g[sgid]; in statd()
/freebsd/sbin/hastd/
H A Dsubr.c158 gid_t rgid, egid, sgid; in drop_privs() local
282 PJDLOG_VERIFY(getresgid(&rgid, &egid, &sgid) == 0); in drop_privs()
285 PJDLOG_VERIFY(sgid == pw->pw_gid); in drop_privs()
/freebsd/tools/regression/security/access/
H A Dtestaccess.c123 gid_t egid, rgid, sgid; in reportprivilege() local
132 error = getresgid(&rgid, &egid, &sgid); in reportprivilege()
141 printf("rgid: %d, egid: %d, sgid: %d\n", rgid, egid, sgid); in reportprivilege()
/freebsd/sys/security/mac/
H A Dmac_cred.c374 gid_t sgid) in mac_cred_check_setresgid() argument
378 MAC_POLICY_CHECK_NOSLEEP(cred_check_setresgid, cred, rgid, egid, sgid); in mac_cred_check_setresgid()
380 sgid); in mac_cred_check_setresgid()
/freebsd/sys/security/audit/
H A Daudit.h99 void audit_arg_sgid(gid_t sgid);
292 #define AUDIT_ARG_SGID(sgid) do { \ argument
294 audit_arg_sgid((sgid)); \
450 #define AUDIT_ARG_SGID(sgid) argument
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_sa_path_record.c904 p_pr->sgid = *p_sgid; in pr_rcv_build_pr()
908 p_pr->sgid.unicast.prefix = osm_physp_get_subnet_prefix(p_src_physp); in pr_rcv_build_pr()
909 p_pr->sgid.unicast.interface_id = p_src_alias_guid->alias_guid; in pr_rcv_build_pr()
1304 if (!ib_gid_is_link_local(&p_pr->sgid)) { in osm_pr_get_end_points()
1305 if (ib_gid_get_subnet_prefix(&p_pr->sgid) != in osm_pr_get_end_points()
1315 cl_ntoh64(p_pr->sgid.unicast.prefix)); in osm_pr_get_end_points()
1322 p_pr->sgid.unicast.interface_id); in osm_pr_get_end_points()
1331 cl_ntoh64(p_pr->sgid.unicast.interface_id)); in osm_pr_get_end_points()
1336 *pp_sgid = &p_pr->sgid; in osm_pr_get_end_points()
1553 p_pr->sgid.unicast.interface_id)) { in pr_match_mgrp_attributes()
[all …]
/freebsd/sys/kern/
H A Dkern_prot.c1613 * setresgid(rgid, egid, sgid) is like setregid except control over the saved in sys_setresgid()
1620 gid_t sgid; in sys_setresgid()
1629 gid_t egid, rgid, sgid; in sys_setresgid()
1634 sgid = uap->sgid; in sys_setresgid()
1637 AUDIT_ARG_SGID(sgid); in sys_setresgid()
1644 error = mac_cred_check_setresgid(oldcred, rgid, egid, sgid); in sys_setresgid()
1655 (sgid != (gid_t)-1 && sgid != oldcred->cr_rgid && in sys_setresgid()
1656 sgid ! in sys_setresgid()
1595 gid_t sgid; global() member
1604 gid_t egid, rgid, sgid; sys_setresgid() local
1690 gid_t *sgid; global() member
[all...]
/freebsd/sys/ofed/include/rdma/
H A Dib_sa.h193 union ib_gid sgid; member
257 ib->sgid.global.interface_id in path_conv_opa_to_ib()
277 if ((ib_is_opa_gid(&ib->sgid)) || in path_conv_ib_to_opa()
279 slid = htonl(opa_get_lid_from_gid(&ib->sgid)); in path_conv_ib_to_opa()
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dib_verbs.h185 union ib_gid sgid; member
273 union ib_gid sgid; member
379 union ib_gid *sgid, struct ib_gid_attr **sgid_attr,
383 union ib_gid *sgid);
/freebsd/sys/ofed/include/uapi/rdma/
H A Dib_user_sa.h62 __u8 sgid[16]; member
/freebsd/sys/compat/linux/
H A Dlinux_uid16.c266 bsd.sgid = CAST_NOCHG(args->sgid); in linux_setresgid16()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_util.c436 gid_t rgid, egid, sgid; in __archive_issetugid()
441 if (getresgid(&rgid, &egid, &sgid) != 0) in __archive_issetugid()
443 if (rgid != egid || rgid != sgid) in __archive_issetugid()
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/
H A Dlinux_syscall_hooks.h82 #define __sanitizer_syscall_pre_getresgid(rgid, egid, sgid) \ argument
84 (long)(sgid))
85 #define __sanitizer_syscall_post_getresgid(res, rgid, egid, sgid) \ argument
87 (long)(sgid))
126 #define __sanitizer_syscall_pre_setresgid(rgid, egid, sgid) \ argument
128 (long)(sgid))
129 #define __sanitizer_syscall_post_setresgid(res, rgid, egid, sgid) \ argument
131 (long)(sgid))
882 #define __sanitizer_syscall_pre_setresgid16(rgid, egid, sgid) \ argument
883 __sanitizer_syscall_pre_impl_setresgid16((long)rgid, (long)egid, (long)sgid)
[all …]
/freebsd/contrib/ofed/infiniband-diags/src/
H A Dibqueryerrors.c329 static int path_record_query(ib_gid_t sgid,uint64_t dguid) in path_record_query() argument
342 CHECK_AND_SET_GID(sgid, pr.sgid, PR, SGID); in path_record_query()
344 mad_encode_field(sgid.raw, IB_GID_GUID_F, &dguid); in path_record_query()
345 CHECK_AND_SET_GID(sgid, pr.dgid, PR, DGID); in path_record_query()
/freebsd/contrib/ofed/librdmacm/
H A Dacm.c193 memcpy(&src->sib_addr, &path->sgid, 16); in ucma_ib_set_addr()
415 memcpy(&data->info.path.sgid, in ucma_ib_resolve()

1234