/freebsd/sys/nlm/ |
H A D | nlm_prot_svc.c | 40 void nlm_prog_0(struct svc_req *rqstp, SVCXPRT *transp); 41 void nlm_prog_1(struct svc_req *rqstp, SVCXPRT *transp); 42 void nlm_prog_3(struct svc_req *rqstp, SVCXPRT *transp); 43 void nlm_prog_4(struct svc_req *rqstp, SVCXPRT *transp); 46 nlm_prog_0(struct svc_req *rqstp, SVCXPRT *transp) in nlm_prog_0() argument 56 switch (rqstp->rq_proc) { in nlm_prog_0() 58 (void) svc_sendreply(rqstp, in nlm_prog_0() 60 svc_freereq(rqstp); in nlm_prog_0() 70 svcerr_noproc(rqstp); in nlm_prog_0() 71 svc_freereq(rqstp); in nlm_prog_0() [all …]
|
H A D | nlm_prot_server.c | 121 nlm_sm_notify_0_svc(struct nlm_sm_status *argp, void *result, struct svc_req *rqstp) in nlm_sm_notify_0_svc() argument 129 nlm_test_1_svc(struct nlm_testargs *argp, nlm_testres *result, struct svc_req *rqstp) in nlm_test_1_svc() argument 139 retval = nlm4_test_4_svc(&args4, &res4, rqstp); in nlm_test_1_svc() 153 nlm_lock_1_svc(struct nlm_lockargs *argp, nlm_res *result, struct svc_req *rqstp) in nlm_lock_1_svc() argument 166 retval = nlm4_lock_4_svc(&args4, &res4, rqstp); in nlm_lock_1_svc() 174 nlm_cancel_1_svc(struct nlm_cancargs *argp, nlm_res *result, struct svc_req *rqstp) in nlm_cancel_1_svc() argument 185 retval = nlm4_cancel_4_svc(&args4, &res4, rqstp); in nlm_cancel_1_svc() 193 nlm_unlock_1_svc(struct nlm_unlockargs *argp, nlm_res *result, struct svc_req *rqstp) in nlm_unlock_1_svc() argument 202 retval = nlm4_unlock_4_svc(&args4, &res4, rqstp); in nlm_unlock_1_svc() 210 nlm_granted_1_svc(struct nlm_testargs *argp, nlm_res *result, struct svc_req *rqstp) in nlm_granted_1_svc() argument [all …]
|
H A D | nlm.h | 159 struct svc_req *rqstp, CLIENT **rpcp); 169 struct svc_req *rqstp, bool_t monitor, CLIENT **rpcp); 179 struct svc_req *rqstp, CLIENT **rpcp); 189 struct svc_req *rqstp, CLIENT **rpcp); 199 struct svc_req *rqstp, CLIENT **rpcp); 205 extern void nlm_do_granted_res(nlm4_res *argp, struct svc_req *rqstp);
|
H A D | nlm_prot_impl.c | 1421 extern void nlm_prog_0(struct svc_req *rqstp, SVCXPRT *transp); 1422 extern void nlm_prog_1(struct svc_req *rqstp, SVCXPRT *transp); 1423 extern void nlm_prog_3(struct svc_req *rqstp, SVCXPRT *transp); 1424 extern void nlm_prog_4(struct svc_req *rqstp, SVCXPRT *transp); 1751 nlm_get_vfs_state(struct nlm_host *host, struct svc_req *rqstp, in nlm_get_vfs_state() argument 1786 if (!svc_getcred(rqstp, &cred, NULL)) { in nlm_get_vfs_state() 1850 nlm_do_test(nlm4_testargs *argp, nlm4_testres *result, struct svc_req *rqstp, in nlm_do_test() argument 1864 svc_getrpccaller(rqstp), rqstp->rq_vers); in nlm_do_test() 1885 error = nlm_get_vfs_state(host, rqstp, &fh, &vs, accmode); in nlm_do_test() 1948 nlm_do_lock(nlm4_lockargs *argp, nlm4_res *result, struct svc_req *rqstp, in nlm_do_lock() argument [all …]
|
/freebsd/usr.sbin/rpc.lockd/ |
H A D | lock_proc.c | 66 #define getrpcaddr(rqstp) (struct sockaddr *)(svc_getrpccaller((rqstp)->rq_xprt)->buf) argument 426 nlm_test_1_svc(nlm_testargs *arg, struct svc_req *rqstp) in nlm_test_1_svc() argument 434 log_from_addr("nlm_test", rqstp); in nlm_test_1_svc() 458 nlm_test_msg_1_svc(nlm_testargs *arg, struct svc_req *rqstp) in nlm_test_msg_1_svc() argument 472 log_from_addr("nlm_test_msg", rqstp); in nlm_test_msg_1_svc() 491 addr = svc_getrpccaller(rqstp->rq_xprt)->buf; in nlm_test_msg_1_svc() 513 nlm_lock_1_svc(nlm_lockargs *arg, struct svc_req *rqstp) in nlm_lock_1_svc() argument 525 log_from_addr("nlm_lock", rqstp); in nlm_lock_1_svc() 530 res.stat.stat = getlock(&arg4, rqstp, LOCK_MON); in nlm_lock_1_svc() 535 nlm_lock_msg_1_svc(nlm_lockargs *arg, struct svc_req *rqstp) in nlm_lock_msg_1_svc() argument [all …]
|
/freebsd/usr.sbin/ypserv/ |
H A D | yp_server.c | 74 ypproc_null_2_svc(void *argp, struct svc_req *rqstp) in ypproc_null_2_svc() argument 80 if (yp_access(NULL, NULL, (struct svc_req *)rqstp)) in ypproc_null_2_svc() 82 if (yp_access(NULL, (struct svc_req *)rqstp)) in ypproc_null_2_svc() 92 ypproc_domain_2_svc(domainname *argp, struct svc_req *rqstp) argument 97 if (yp_access(NULL, NULL, (struct svc_req *)rqstp)) { 99 if (yp_access(NULL, (struct svc_req *)rqstp)) { 114 ypproc_domain_nonack_2_svc(domainname *argp, struct svc_req *rqstp) argument 119 if (yp_access(NULL, NULL, (struct svc_req *)rqstp)) 121 if (yp_access(NULL, (struct svc_req *)rqstp)) 134 ypproc_match_2_svc(ypreq_key *argp, struct svc_req *rqstp) argument [all …]
|
H A D | yp_access.c | 210 yp_access(const char *map, const char *domain, const struct svc_req *rqstp) argument 213 yp_access(const char *map, const struct svc_req *rqstp) 226 if (rqstp->rq_prog != YPPASSWDPROG && rqstp->rq_prog != YPPROG) { 228 (unsigned long)rqstp->rq_prog, 229 (unsigned long)rqstp->rq_proc); 232 yp_procedure = rqstp->rq_prog == YPPASSWDPROG ? 234 yp_procs[rqstp->rq_proc + (12 * (rqstp->rq_vers - 1))]; 237 rqhost = svc_getcaller(rqstp->rq_xprt); 261 (rqstp->rq_prog == YPPROG && 262 rqstp->rq_proc == YPPROC_XFR) || [all …]
|
H A D | yp_dnslookup.c | 408 yp_async_lookup_name(struct svc_req *rqstp, char *name, int af) in yp_async_lookup_name() argument 417 if (getsockopt(rqstp->rq_xprt->xp_fd, SOL_SOCKET, in yp_async_lookup_name() 425 yp_find_dnsqent(svcudp_get_xid(rqstp->rq_xprt),BY_RPC_XID) != NULL) in yp_async_lookup_name() 433 q->xprt = rqstp->rq_xprt; in yp_async_lookup_name() 434 q->ypvers = rqstp->rq_vers; in yp_async_lookup_name() 463 yp_async_lookup_addr(struct svc_req *rqstp, char *addr, int af) in yp_async_lookup_addr() argument 475 if (getsockopt(rqstp->rq_xprt->xp_fd, SOL_SOCKET, in yp_async_lookup_addr() 483 yp_find_dnsqent(svcudp_get_xid(rqstp->rq_xprt),BY_RPC_XID) != NULL) in yp_async_lookup_addr() 518 q->xprt = rqstp->rq_xprt; in yp_async_lookup_addr() 519 q->ypvers = rqstp->rq_vers; in yp_async_lookup_addr()
|
/freebsd/sys/rpc/ |
H A D | svc.c | 660 svc_sendreply_common(struct svc_req *rqstp, struct rpc_msg *rply, in svc_sendreply_common() argument 663 SVCXPRT *xprt = rqstp->rq_xprt; in svc_sendreply_common() 666 if (rqstp->rq_args) { in svc_sendreply_common() 667 m_freem(rqstp->rq_args); in svc_sendreply_common() 668 rqstp->rq_args = NULL; in svc_sendreply_common() 673 rply, svc_getrpccaller(rqstp), body); in svc_sendreply_common() 675 if (!SVCAUTH_WRAP(&rqstp->rq_auth, &body)) in svc_sendreply_common() 678 ok = SVC_REPLY(xprt, rply, rqstp->rq_addr, body, &rqstp->rq_reply_seq); in svc_sendreply_common() 679 if (rqstp->rq_addr) { in svc_sendreply_common() 680 free(rqstp->rq_addr, M_SONAME); in svc_sendreply_common() [all …]
|
/freebsd/usr.sbin/rpcbind/ |
H A D | rpcb_svc.c | 65 rpcb_service_3(struct svc_req *rqstp, SVCXPRT *transp) in rpcb_service_3() argument 79 rpcbs_procinfo(RPCBVERS_3_STAT, rqstp->rq_proc); in rpcb_service_3() 81 switch (rqstp->rq_proc) { in rpcb_service_3() 91 check_access(transp, rqstp->rq_proc, NULL, RPCBVERS); in rpcb_service_3() 124 rpcbproc_callit_com(rqstp, transp, rqstp->rq_proc, RPCBVERS); in rpcb_service_3() 169 if (!check_access(transp, rqstp->rq_proc, &argument, RPCBVERS)) { in rpcb_service_3() 173 result = (*local)(&argument, rqstp, transp, RPCBVERS); in rpcb_service_3() 206 rpcbproc_getaddr_3_local(void *arg, struct svc_req *rqstp __unused, in rpcbproc_getaddr_3_local() 222 return (rpcbproc_getaddr_com(regp, rqstp, transp, RPCBVERS, in rpcbproc_getaddr_3_local() 228 rpcbproc_dump_3_local(void *arg __unused, struct svc_req *rqstp __unused, in rpcbproc_dump_3_local()
|
H A D | pmap_svc.c | 64 pmap_service(struct svc_req *rqstp, SVCXPRT *xprt) in pmap_service() argument 66 rpcbs_procinfo(RPCBVERS_2_STAT, rqstp->rq_proc); in pmap_service() 67 switch (rqstp->rq_proc) { in pmap_service() 76 check_access(xprt, rqstp->rq_proc, NULL, PMAPVERS); in pmap_service() 89 pmapproc_change(rqstp, xprt, rqstp->rq_proc); in pmap_service() 96 pmapproc_change(rqstp, xprt, rqstp->rq_proc); in pmap_service() 104 pmapproc_getport(rqstp, xprt); in pmap_service() 115 pmapproc_dump(rqstp, xprt); in pmap_service() 126 rpcbproc_callit_com(rqstp, xprt, PMAPPROC_CALLIT, PMAPVERS); in pmap_service() 162 pmapproc_change(struct svc_req *rqstp __unused, SVCXPRT *xprt, unsigned long op) in pmapproc_change() [all …]
|
H A D | rpcb_svc_4.c | 66 rpcb_service_4(struct svc_req *rqstp, SVCXPRT *transp) in rpcb_service_4() argument 79 rpcbs_procinfo(RPCBVERS_4_STAT, rqstp->rq_proc); in rpcb_service_4() 81 switch (rqstp->rq_proc) { in rpcb_service_4() 90 check_access(transp, rqstp->rq_proc, NULL, RPCBVERS4); in rpcb_service_4() 146 rpcbproc_callit_com(rqstp, transp, rqstp->rq_proc, RPCBVERS4); in rpcb_service_4() 155 rpcbproc_callit_com(rqstp, transp, rqstp->rq_proc, RPCBVERS4); in rpcb_service_4() 220 if (!check_access(transp, rqstp->rq_proc, &argument, RPCBVERS4)) { in rpcb_service_4() 224 result = (*local)(&argument, rqstp, transp, RPCBVERS4); in rpcb_service_4() 259 rpcbproc_getaddr_4_local(void *arg, struct svc_req *rqstp, SVCXPRT *transp, in rpcbproc_getaddr_4_local() argument 275 return (rpcbproc_getaddr_com(regp, rqstp, transp, RPCBVERS4, in rpcbproc_getaddr_4_local() [all …]
|
H A D | rpcb_svc_com.c | 124 rpcbproc_set_com(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, in rpcbproc_set_com() 209 rpcbproc_unset_com(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, in rpcbproc_unset_com() 303 rpcbproc_getaddr_com(RPCB *regp, struct svc_req *rqstp __unused, in rpcbproc_getaddr_com() 346 rpcbproc_gettime_com(void *arg __unused, struct svc_req *rqstp __unused, in rpcbproc_gettime_com() 361 rpcbproc_uaddr2taddr_com(void *arg, struct svc_req *rqstp __unused, in rpcbproc_uaddr2taddr_com() 385 rpcbproc_taddr2uaddr_com(void *arg, struct svc_req *rqstp __unused, in rpcbproc_taddr2uaddr_com() 593 rpcbproc_callit_com(struct svc_req *rqstp, SVCXPRT *transp, in rpcbproc_callit_com() argument 828 if (rqstp->rq_cred.oa_flavor == AUTH_NULL) { in rpcbproc_callit_com() 830 } else if (rqstp->rq_cred.oa_flavor == AUTH_SYS) { in rpcbproc_callit_com() 833 au = (struct authunix_parms *)rqstp->rq_clntcred; in rpcbproc_callit_com()
|
/freebsd/libexec/rpc.rusersd/ |
H A D | rusers_proc.c | 185 rusers_num(void *argp __unused, struct svc_req *rqstp __unused) in rusers_num() 224 rusersproc_names_2_svc(void *argp __unused, struct svc_req *rqstp __unused) in rusersproc_names_2_svc() 231 rusersproc_allnames_2_svc(void *argp __unused, struct svc_req *rqstp __unused) in rusersproc_allnames_2_svc() 238 rusersproc_names_1_svc(void *argp __unused, struct svc_req *rqstp __unused) in rusersproc_names_1_svc() 245 rusersproc_allnames_1_svc(void *argp __unused, struct svc_req *rqstp __unused) in rusersproc_allnames_1_svc() 254 rusers_service(struct svc_req *rqstp, SVCXPRT *transp) in rusers_service() argument 263 switch (rqstp->rq_proc) { in rusers_service() 277 switch (rqstp->rq_vers) { in rusers_service() 294 switch (rqstp->rq_vers) { in rusers_service() 317 result = (*local)(&argument, rqstp); in rusers_service()
|
/freebsd/libexec/rpc.rstatd/ |
H A D | rstat_proc.c | 104 rstatproc_stats_3_svc(void *argp, struct svc_req *rqstp) in rstatproc_stats_3_svc() argument 113 rstatproc_stats_2_svc(void *argp, struct svc_req *rqstp) in rstatproc_stats_2_svc() argument 122 rstatproc_stats_1_svc(void *argp, struct svc_req *rqstp) in rstatproc_stats_1_svc() argument 131 rstatproc_havedisk_3_svc(void *argp, struct svc_req *rqstp) in rstatproc_havedisk_3_svc() argument 143 rstatproc_havedisk_2_svc(void *argp, struct svc_req *rqstp) in rstatproc_havedisk_2_svc() argument 145 return(rstatproc_havedisk_3_svc(argp, rqstp)); in rstatproc_havedisk_2_svc() 149 rstatproc_havedisk_1_svc(void *argp, struct svc_req *rqstp) in rstatproc_havedisk_1_svc() argument 151 return(rstatproc_havedisk_3_svc(argp, rqstp)); in rstatproc_havedisk_1_svc() 395 rstat_service(struct svc_req *rqstp, SVCXPRT *transp) in rstat_service() argument 402 typedef void *(svc_cb)(void *arg, struct svc_req *rqstp); in rstat_service() [all …]
|
/freebsd/libexec/rpc.rwalld/ |
H A D | rwalld.c | 54 void wallprog_1(struct svc_req *rqstp, SVCXPRT *transp); 144 wallproc_wall_1_svc(wrapstring *s, struct svc_req *rqstp __unused) in wallproc_wall_1_svc() 163 wallprog_1(struct svc_req *rqstp, SVCXPRT *transp) in wallprog_1() argument 170 typedef void *(svc_cb)(void *arg, struct svc_req *rqstp); in wallprog_1() 173 switch (rqstp->rq_proc) { in wallprog_1() 193 result = (*local)(&argument, rqstp); in wallprog_1()
|
/freebsd/sys/kgssapi/ |
H A D | gsstest.c | 877 static void server_program_1(struct svc_req *rqstp, register SVCXPRT *transp); 923 server_program_1(struct svc_req *rqstp, register SVCXPRT *transp) in server_program_1() argument 929 if (rqstp->rq_cred.oa_flavor != RPCSEC_GSS) { in server_program_1() 930 svcerr_weakauth(rqstp); in server_program_1() 934 if (!rpc_gss_getcred(rqstp, &rcred, &ucred, NULL)) { in server_program_1() 935 svcerr_systemerr(rqstp); in server_program_1() 947 switch (rqstp->rq_proc) { in server_program_1() 949 if (!svc_getargs(rqstp, (xdrproc_t) xdr_void, 0)) { in server_program_1() 950 svcerr_decode(rqstp); in server_program_1() 953 if (!svc_sendreply(rqstp, (xdrproc_t) xdr_void, 0)) { in server_program_1() [all …]
|
/freebsd/lib/libc/rpc/ |
H A D | svc_simple.c | 243 universal(struct svc_req *rqstp, SVCXPRT *transp) in universal() argument 255 if (rqstp->rq_proc == NULLPROC) { in universal() 262 prog = rqstp->rq_prog; in universal() 263 vers = rqstp->rq_vers; in universal() 264 proc = rqstp->rq_proc; in universal()
|
/freebsd/usr.sbin/keyserv/ |
H A D | keyserv.c | 78 static void keyprogram(struct svc_req *rqstp, SVCXPRT *transp); 562 keyprogram(struct svc_req *rqstp, SVCXPRT *transp) in keyprogram() argument 584 switch (rqstp->rq_proc) { in keyprogram() 665 if (root_auth(transp, rqstp) == 0) { in keyprogram() 673 if (rqstp->rq_cred.oa_flavor != AUTH_SYS) { in keyprogram() 681 uid = ((struct authsys_parms *)rqstp->rq_clntcred)->aup_uid; in keyprogram() 704 root_auth(SVCXPRT *trans, struct svc_req *rqstp) in root_auth() argument 726 if (rqstp->rq_cred.oa_flavor == AUTH_SYS) { in root_auth() 728 rqstp->rq_clntcred)->aup_uid) in root_auth() 735 ((uid_t) ((struct authunix_parms *)rqstp->rq_clntcred)->aup_uid)); in root_auth()
|
/freebsd/usr.sbin/rpc.ypxfrd/ |
H A D | ypxfrd_server.c | 86 ypxfrd_getmap_1_svc(ypxfr_mapname *argp, struct svc_req *rqstp) argument 98 if (yp_access(argp->xfrmap, (struct svc_req *)rqstp)) { 140 svc_sendreply(rqstp->rq_xprt, (xdrproc_t)xdr_my_xfr, &result);
|
/freebsd/usr.sbin/gssd/ |
H A D | gssd.c | 105 extern void gssd_1(struct svc_req *rqstp, SVCXPRT *transp); 389 gssd_null_1_svc(void *argp, void *result, struct svc_req *rqstp) in gssd_null_1_svc() argument 397 …sec_context_1_svc(init_sec_context_args *argp, init_sec_context_res *result, struct svc_req *rqstp) in gssd_init_sec_context_1_svc() argument 520 …context_1_svc(accept_sec_context_args *argp, accept_sec_context_res *result, struct svc_req *rqstp) in gssd_accept_sec_context_1_svc() argument 571 …context_1_svc(delete_sec_context_args *argp, delete_sec_context_res *result, struct svc_req *rqstp) in gssd_delete_sec_context_1_svc() argument 590 …context_1_svc(export_sec_context_args *argp, export_sec_context_res *result, struct svc_req *rqstp) in gssd_export_sec_context_1_svc() argument 613 gssd_import_name_1_svc(import_name_args *argp, import_name_res *result, struct svc_req *rqstp) in gssd_import_name_1_svc() argument 676 …lize_name_1_svc(canonicalize_name_args *argp, canonicalize_name_res *result, struct svc_req *rqstp) in gssd_canonicalize_name_1_svc() argument 701 gssd_export_name_1_svc(export_name_args *argp, export_name_res *result, struct svc_req *rqstp) in gssd_export_name_1_svc() argument 721 gssd_release_name_1_svc(release_name_args *argp, release_name_res *result, struct svc_req *rqstp) in gssd_release_name_1_svc() argument [all …]
|
/freebsd/usr.sbin/rpc.yppasswdd/ |
H A D | yppasswdd_server.c | 467 yppasswdproc_update_1_svc(yppasswd *argp, struct svc_req *rqstp) in yppasswdproc_update_1_svc() argument 497 rqhost = svc_getcaller(rqstp->rq_xprt); in yppasswdproc_update_1_svc() 512 if (yp_access(resvport ? "master.passwd.byname" : NULL, rqstp)) { in yppasswdproc_update_1_svc() 514 svcerr_auth(rqstp->rq_xprt, AUTH_BADCRED); in yppasswdproc_update_1_svc() 574 svcerr_decode(rqstp->rq_xprt); in yppasswdproc_update_1_svc() 736 struct svc_req *rqstp) in yppasswdproc_update_master_1_svc() argument 754 transp = rqstp->rq_xprt; in yppasswdproc_update_master_1_svc() 767 if (rqstp->rq_cred.oa_flavor != AUTH_SYS) { in yppasswdproc_update_master_1_svc() 782 svcerr_auth(rqstp->rq_xprt, AUTH_BADCRED); in yppasswdproc_update_master_1_svc()
|
/freebsd/tools/regression/rpcsec_gss/ |
H A D | rpctest.c | 167 server_program_1(struct svc_req *rqstp, register SVCXPRT *transp) in server_program_1() argument 173 if (rqstp->rq_cred.oa_flavor != RPCSEC_GSS) { in server_program_1() 178 if (!rpc_gss_getcred(rqstp, &rcred, &ucred, NULL)) { in server_program_1() 191 switch (rqstp->rq_proc) { in server_program_1()
|
/freebsd/libexec/rpc.sprayd/ |
H A D | sprayd.c | 125 spray_service(struct svc_req *rqstp, SVCXPRT *transp) in spray_service() argument 130 switch (rqstp->rq_proc) { in spray_service()
|
/freebsd/usr.sbin/rpc.tlsclntd/ |
H A D | rpc.tlsclntd.c | 104 extern void rpctlscd_1(struct svc_req *rqstp, SVCXPRT *transp); 304 __unused struct svc_req *rqstp) in rpctlscd_null_1_svc() argument 313 struct rpctlscd_connect_res *result, __unused struct svc_req *rqstp) in rpctlscd_connect_1_svc() argument 367 struct rpctlscd_handlerecord_res *result, __unused struct svc_req *rqstp) in rpctlscd_handlerecord_1_svc() argument 410 struct rpctlscd_disconnect_res *result, __unused struct svc_req *rqstp) in rpctlscd_disconnect_1_svc() argument
|