Home
last modified time | relevance | path

Searched refs:rqstp (Results 1 – 25 of 36) sorted by relevance

12

/freebsd/sys/nlm/
H A Dnlm_prot_svc.c60 svc_freereq(rqstp); in nlm_prog_0()
70 svcerr_noproc(rqstp); in nlm_prog_0()
71 svc_freereq(rqstp); in nlm_prog_0()
77 svc_freereq(rqstp); in nlm_prog_0()
88 svc_freereq(rqstp); in nlm_prog_0()
128 svc_freereq(rqstp); in nlm_prog_1()
223 svc_freereq(rqstp); in nlm_prog_1()
229 svc_freereq(rqstp); in nlm_prog_1()
240 svc_freereq(rqstp); in nlm_prog_1()
333 svc_freereq(rqstp); in nlm_prog_3()
[all …]
H A Dnlm_prot_server.c139 retval = nlm4_test_4_svc(&args4, &res4, rqstp); in nlm_test_1_svc()
240 if (nlm_do_test(&args4, &res4, rqstp, &rpc)) in nlm_test_msg_1_svc()
514 nlm_do_test(argp, result, rqstp, NULL); in nlm4_test_4_svc()
522 nlm_do_lock(argp, result, rqstp, TRUE, NULL); in nlm4_lock_4_svc()
530 nlm_do_cancel(argp, result, rqstp, NULL); in nlm4_cancel_4_svc()
538 nlm_do_unlock(argp, result, rqstp, NULL); in nlm4_unlock_4_svc()
546 nlm_do_granted(argp, result, rqstp, NULL); in nlm4_granted_4_svc()
557 if (nlm_do_test(argp, &res4, rqstp, &rpc)) in nlm4_test_msg_4_svc()
593 if (nlm_do_cancel(argp, &res4, rqstp, &rpc)) in nlm4_cancel_msg_4_svc()
611 if (nlm_do_unlock(argp, &res4, rqstp, &rpc)) in nlm4_unlock_msg_4_svc()
[all …]
H A Dnlm.h159 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 Dnlm_prot_impl.c1421 extern void nlm_prog_0(struct svc_req *rqstp, SVCXPRT *transp);
1422 extern void nlm_prog_1(struct svc_req *rqstp, SVCXPRT *transp);
1786 if (!svc_getcred(rqstp, &cred, NULL)) { in nlm_get_vfs_state()
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()
1962 svc_getrpccaller(rqstp), rqstp->rq_vers); in nlm_do_lock()
1992 error = nlm_get_vfs_state(host, rqstp, &fh, &vs, accmode); in nlm_do_lock()
2151 svc_getrpccaller(rqstp), rqstp->rq_vers); in nlm_do_cancel()
2240 svc_getrpccaller(rqstp), rqstp->rq_vers); in nlm_do_unlock()
2298 host = nlm_find_host_by_addr(svc_getrpccaller(rqstp), rqstp->rq_vers); in nlm_do_granted()
[all …]
/freebsd/usr.sbin/rpc.lockd/
H A Dlock_proc.c66 #define getrpcaddr(rqstp) (struct sockaddr *)(svc_getrpccaller((rqstp)->rq_xprt)->buf) argument
434 log_from_addr("nlm_test", rqstp); in nlm_test_1_svc()
525 log_from_addr("nlm_lock", rqstp); in nlm_lock_1_svc()
572 log_from_addr("nlm_cancel", rqstp); in nlm_cancel_1_svc()
623 log_from_addr("nlm_unlock", rqstp); in nlm_unlock_1_svc()
673 log_from_addr("nlm_granted", rqstp); in nlm_granted_1_svc()
796 log_from_addr("nlm_share", rqstp); in nlm_share_3_svc()
816 log_from_addr("nlm_unshare", rqstp); in nlm_unshare_3_svc()
882 log_from_addr("nlm4_test", rqstp); in nlm4_test_4_svc()
977 log_from_addr("nlm4_lock", rqstp); in nlm4_lock_4_svc()
[all …]
/freebsd/usr.sbin/ypserv/
H A Dyp_server.c82 if (yp_access(NULL, (struct svc_req *)rqstp)) in ypproc_null_2_svc()
99 if (yp_access(NULL, (struct svc_req *)rqstp)) {
121 if (yp_access(NULL, (struct svc_req *)rqstp))
327 rqhost = svc_getcaller(rqstp->rq_xprt);
356 mres = ypproc_master_2_svc(&mreq, rqstp);
432 if (yp_access(NULL, (struct svc_req *)rqstp))
793 return(ypproc_null_2_svc(argp, rqstp));
799 return(ypproc_domain_2_svc(argp, rqstp));
857 rqstp);
926 rqstp);
[all …]
H A Dyp_access.c213 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) ||
263 (rqstp->rq_prog == YPXFRD_FREEBSD_PROG &&
[all …]
H A Dyp_dnslookup.c408 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 Dsvc.c666 if (rqstp->rq_args) { 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()
1073 svc_freereq(rqstp); in svc_executereq()
1278 rqstp = NULL; in svc_run_internal()
1280 if (rqstp) { in svc_run_internal()
1293 rqstp = NULL; in svc_run_internal()
1447 m = rqstp->rq_args; in svc_getargs()
1491 if (rqstp->rq_addr) in svc_freereq()
1494 if (rqstp->rq_args) in svc_freereq()
[all …]
/freebsd/usr.sbin/rpcbind/
H A Drpcb_svc.c65 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 Dpmap_svc.c64 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()
256 pmapproc_getport(struct svc_req *rqstp __unused, SVCXPRT *xprt) in pmapproc_getport()
[all …]
H A Drpcb_svc_4.c66 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()
275 return (rpcbproc_getaddr_com(regp, rqstp, transp, RPCBVERS4, in rpcbproc_getaddr_4_local()
306 return (rpcbproc_getaddr_com(regp, rqstp, transp, RPCBVERS4, in rpcbproc_getversaddr_4_local()
[all …]
H A Drpcb_svc_com.c124 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 Drusers_proc.c185 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 Drstat_proc.c104 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
145 return(rstatproc_havedisk_3_svc(argp, rqstp)); in rstatproc_havedisk_2_svc()
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
405 switch (rqstp->rq_proc) { in rstat_service()
413 switch (rqstp->rq_vers) { in rstat_service()
433 switch (rqstp->rq_vers) { in rstat_service()
[all …]
/freebsd/libexec/rpc.rwalld/
H A Drwalld.c54 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 Dgsstest.c929 if (rqstp->rq_cred.oa_flavor != RPCSEC_GSS) { in server_program_1()
930 svcerr_weakauth(rqstp); in server_program_1()
935 svcerr_systemerr(rqstp); in server_program_1()
947 switch (rqstp->rq_proc) { in server_program_1()
950 svcerr_decode(rqstp); in server_program_1()
954 svcerr_systemerr(rqstp); in server_program_1()
959 if (!svc_getargs(rqstp, (xdrproc_t) xdr_int, in server_program_1()
961 svcerr_decode(rqstp); in server_program_1()
967 svcerr_systemerr(rqstp); in server_program_1()
972 svcerr_noproc(rqstp); in server_program_1()
[all …]
/freebsd/lib/libc/rpc/
H A Dsvc_simple.c243 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 Dkeyserv.c78 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 Dypxfrd_server.c86 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 Dgssd.c105 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
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
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
740 gssd_pname_to_uid_1_svc(pname_to_uid_args *argp, pname_to_uid_res *result, struct svc_req *rqstp) in gssd_pname_to_uid_1_svc() argument
813 gssd_acquire_cred_1_svc(acquire_cred_args *argp, acquire_cred_res *result, struct svc_req *rqstp) in gssd_acquire_cred_1_svc() argument
932 …t_cred_option_1_svc(set_cred_option_args *argp, set_cred_option_res *result, struct svc_req *rqstp) in gssd_set_cred_option_1_svc() argument
952 gssd_release_cred_1_svc(release_cred_args *argp, release_cred_res *result, struct svc_req *rqstp) in gssd_release_cred_1_svc() argument
971 …_display_status_1_svc(display_status_args *argp, display_status_res *result, struct svc_req *rqstp) in gssd_display_status_1_svc() argument
[all …]
/freebsd/usr.sbin/rpc.yppasswdd/
H A Dyppasswdd_server.c467 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 Drpctest.c167 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 Dsprayd.c125 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 Drpc.tlsclntd.c104 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

12