/illumos-gate/usr/src/cmd/rpcbind/ |
H A D | rpcb_svc.c | 64 rpcb_service_3(struct svc_req *rqstp, SVCXPRT *transp) in rpcb_service_3() argument 89 RPCB_CHECK(transp, rqstp->rq_proc); in rpcb_service_3() 96 (void) svc_sendreply(transp, (xdrproc_t)xdr_void, (char *)NULL); in rpcb_service_3() 104 if (strcasecmp(transp->xp_netid, loopback_dg) && in rpcb_service_3() 105 strcasecmp(transp->xp_netid, loopback_vc) && in rpcb_service_3() 106 strcasecmp(transp->xp_netid, loopback_vc_ord)) { in rpcb_service_3() 109 uaddr = taddr2uaddr(rpcbind_get_conf(transp->xp_netid), in rpcb_service_3() 110 svc_getrpccaller(transp)); in rpcb_service_3() 114 svcerr_weakauth(transp); in rpcb_service_3() 127 if (strcasecmp(transp->xp_netid, loopback_dg) && in rpcb_service_3() [all …]
|
H A D | rpcb_svc_4.c | 57 rpcb_service_4(struct svc_req *rqstp, SVCXPRT *transp) in rpcb_service_4() argument 86 RPCB_CHECK(transp, rqstp->rq_proc); in rpcb_service_4() 93 (void) svc_sendreply(transp, (xdrproc_t)xdr_void, (char *)NULL); in rpcb_service_4() 101 if (strcasecmp(transp->xp_netid, loopback_dg) && in rpcb_service_4() 102 strcasecmp(transp->xp_netid, loopback_vc) && in rpcb_service_4() 103 strcasecmp(transp->xp_netid, loopback_vc_ord)) { in rpcb_service_4() 105 svcerr_weakauth(transp); in rpcb_service_4() 118 if (strcasecmp(transp->xp_netid, loopback_dg) && in rpcb_service_4() 119 strcasecmp(transp->xp_netid, loopback_vc) && in rpcb_service_4() 120 strcasecmp(transp->xp_netid, loopback_vc_ord)) { in rpcb_service_4() [all …]
|
H A D | rpcb_check.c | 148 rpcb_log(boolean_t verdict, SVCXPRT *transp, rpcproc_t proc, rpcprog_t prog, in rpcb_log() argument 161 if ((conf = rpcbind_get_conf(transp->xp_netid)) == 0) { in rpcb_log() 166 client = sgen_toa(svc_getgencaller(transp), toabuf, in rpcb_log() 168 } else if ((uaddr = taddr2uaddr(conf, &(transp->xp_rtaddr))) == NULL) { in rpcb_log() 193 rpcb_check(SVCXPRT *transp, rpcproc_t procnum, boolean_t ispmap) in rpcb_check() argument 198 if ((conf = rpcbind_get_conf(transp->xp_netid)) == 0) { in rpcb_check() 211 if (!localxprt(transp, ispmap)) { in rpcb_check() 217 sgen_toa(svc_getgencaller(transp), buf, in rpcb_check() 230 svcerr_auth(transp, AUTH_FAILED); in rpcb_check() 233 rpcb_log(res, transp, procnum, 0, ispmap); in rpcb_check()
|
H A D | rpcb_svc_com.c | 339 SVCXPRT *transp = rqstp->rq_xprt; in rpcbproc_getaddr_com() local 356 trans_conf = rpcbind_get_conf(transp->xp_netid); in rpcbproc_getaddr_com() 360 rmtaddr = (struct sockaddr_in6 *)transp->xp_rtaddr.buf; in rpcbproc_getaddr_com() 371 fnd = find_service(regp->r_prog, regp->r_vers, transp->xp_netid); in rpcbproc_getaddr_com() 377 if (!(*result = mergeaddr(transp, transp->xp_netid, in rpcbproc_getaddr_com() 407 transp->xp_netid, *result); in rpcbproc_getaddr_com() 702 rpcbproc_callit_com(struct svc_req *rqstp, SVCXPRT *transp, ulong_t reply_type, in rpcbproc_callit_com() argument 740 if (t_getinfo(transp->xp_fd, &tinfo) == -1) { in rpcbproc_callit_com() 742 svcerr_systemerr(transp); in rpcbproc_callit_com() 751 svcerr_systemerr(transp); in rpcbproc_callit_com() [all …]
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | ypserv_proc.c | 123 ypdomain(SVCXPRT *transp, bool always_respond) in ypdomain() argument 134 if (!svc_getargs(transp, (xdrproc_t)xdr_ypdomain_wrap_string, in ypdomain() 136 svcerr_decode(transp); in ypdomain() 145 nbuf = svc_getrpccaller(transp); in ypdomain() 161 if (!svc_sendreply(transp, xdr_bool, (char *)&isserved)) { in ypdomain() 183 svcerr_decode(transp); in ypdomain() 193 ypmatch(SVCXPRT *transp, struct svc_req *rqstp) in ypmatch() argument 204 if (!svc_getargs(transp, (xdrproc_t)xdr_ypreq_key, (char *)&req)) { in ypmatch() 205 svcerr_decode(transp); in ypmatch() 215 yp_map_access(transp, &resp.status, fdb)) { in ypmatch() [all …]
|
H A D | ypsym.h | 120 extern bool yp_map_access(SVCXPRT *transp, uint_t *error, DBM *fdb); 127 extern void ypdomain(SVCXPRT *transp, bool always_respond); 128 extern void ypmatch(SVCXPRT *transp, struct svc_req *rqstp); 129 extern void ypfirst(SVCXPRT *transp); 130 extern void ypnext(SVCXPRT *transp); 131 extern void ypxfr(SVCXPRT *transp, int prog); 132 extern void ypall(SVCXPRT *transp); 133 extern void ypmaster(SVCXPRT *transp); 134 extern void yporder(SVCXPRT *transp); 135 extern void ypmaplist(SVCXPRT *transp); [all …]
|
H A D | ypserv.c | 94 static void ypdispatch(struct svc_req *rqstp, SVCXPRT *transp); 95 static void ypolddispatch(struct svc_req *rqstp, SVCXPRT *transp); 469 ypdispatch(struct svc_req *rqstp, SVCXPRT *transp) in ypdispatch() argument 487 if (!svc_sendreply(transp, xdr_void, 0)) in ypdispatch() 492 ypdomain(transp, TRUE); in ypdispatch() 496 ypdomain(transp, FALSE); in ypdispatch() 500 ypmatch(transp, rqstp); in ypdispatch() 504 ypfirst(transp); in ypdispatch() 508 ypnext(transp); in ypdispatch() 512 ypxfr(transp, YPPROC_XFR); in ypdispatch() [all …]
|
H A D | yp_b_svc.c | 185 SVCXPRT *transp; local 209 if ((transp = svc_tli_create(0, nconf, NULL, 0, 0)) == NULL) { 216 __rpc_negotiate_uid(transp->xp_fd)) { 224 if (!svc_reg(transp, YPBINDPROG, YPBINDVERS, ypbindprog_3, 0)) { 228 if (!svc_reg(transp, YPBINDPROG, YPBINDVERS_2, 235 if (!svc_reg(transp, YPBINDPROG, YPBINDVERS_1, 469 ypbindprog_3(rqstp, transp) in ypbindprog_3() argument 471 register SVCXPRT *transp; 505 svcerr_noproc(transp); 510 if (!svc_getargs(transp, (xdrproc_t)xdr_argument, (char *)&argument)) { [all …]
|
H A D | ypxfrd_svc.c | 110 ypxfrd_1(struct svc_req *rqstp, register SVCXPRT *transp) in ypxfrd_1() argument 122 (void) svc_sendreply(transp, in ypxfrd_1() 135 svcerr_noproc(transp); in ypxfrd_1() 141 if (!svc_getargs(transp, _xdr_argument, (caddr_t)&argument)) { in ypxfrd_1() 142 svcerr_decode(transp); in ypxfrd_1() 149 !svc_sendreply(transp, _xdr_result, result)) { in ypxfrd_1() 150 svcerr_systemerr(transp); in ypxfrd_1() 152 if (!svc_freeargs(transp, _xdr_argument, (caddr_t)&argument)) { in ypxfrd_1() 178 SVCXPRT *transp; in main() local 193 if ((transp = svc_tli_create(0, nconf, NULL, 0, 0)) == NULL) { in main() [all …]
|
H A D | yp_b_subr.c | 827 ypbindproc_setdom_3(argp, rqstp, transp) in ypbindproc_setdom_3() argument 830 SVCXPRT *transp; 839 if (transp) { 840 svcerr_systemerr(transp); 846 if (transp != NULL) { 851 who = svc_getrpccaller(transp); 852 if ((nconf = getnetconfigent(transp->xp_netid)) 854 svcerr_systemerr(transp); 872 svcerr_noprog(transp); 885 svcerr_noprog(transp); [all …]
|
H A D | yppush.c | 243 static void listener_dispatch(struct svc_req *rqstp, SVCXPRT *transp); 247 static void get_xfr_response(SVCXPRT *transp); 857 listener_dispatch(struct svc_req *rqstp, SVCXPRT *transp) in listener_dispatch() argument 862 if (!svc_sendreply(transp, xdr_void, 0)) { in listener_dispatch() 868 get_xfr_response(transp); in listener_dispatch() 872 svcerr_noproc(transp); in listener_dispatch() 967 get_xfr_response(SVCXPRT *transp) in get_xfr_response() argument 972 if (!svc_getargs(transp, (xdrproc_t)xdr_yppushresp_xfr, in get_xfr_response() 974 svcerr_decode(transp); in get_xfr_response() 978 if (!svc_sendreply(transp, xdr_void, 0)) { in get_xfr_response()
|
/illumos-gate/usr/src/cmd/ypcmd/ypupdated/ |
H A D | rpc.ypupdated.c | 58 void ypupdate_prog(struct svc_req *rqstp, SVCXPRT *transp); 122 SVCXPRT *transp; in main() local 124 transp = svctcp_create(RPC_INETDSOCK, 0, 0); in main() 125 if (transp == NULL) { in main() 129 if (!svc_register(transp, YPU_PROG, YPU_VERS, ypupdate_prog, in main() 197 ypupdate_prog(struct svc_req *rqstp, SVCXPRT *transp) in ypupdate_prog() argument 211 svc_sendreply(transp, xdr_void, NULL); in ypupdate_prog() 226 svcerr_noproc(transp); in ypupdate_prog() 242 addr2netname(namebuf, transp); in ypupdate_prog() 251 svcerr_weakauth(transp); in ypupdate_prog() [all …]
|
/illumos-gate/usr/src/uts/common/klm/ |
H A D | nlm_dispatch.c | 73 SVCXPRT *transp, in nlm_dispatch() argument 116 svcerr_noproc(transp); in nlm_dispatch() 121 !nlm_caller_is_local(transp)) { in nlm_dispatch() 122 svcerr_noproc(transp); in nlm_dispatch() 142 if (!SVC_GETARGS(transp, de->de_xargs, args)) { in nlm_dispatch() 143 svcerr_decode(transp); in nlm_dispatch() 154 dupstat = SVC_DUP_EXT(transp, rqstp, res, de->de_ressz, &dr, in nlm_dispatch() 159 svcerr_systemerr(transp); in nlm_dispatch() 179 SVC_DUPDONE_EXT(transp, dr, res, NULL, in nlm_dispatch() 184 SVC_DUPDONE_EXT(transp, dr, res, de->de_resfree, in nlm_dispatch() [all …]
|
/illumos-gate/usr/src/cmd/rpcsvc/rpc.bootparamd/ |
H A D | bootparam_prot_svc.c | 89 SVCXPRT *transp; in main() local 100 if ((transp = svc_tli_create(0, nconf, NULL, 0, 0)) == NULL) { in main() 106 if (!svc_reg(transp, BOOTPARAMPROG, BOOTPARAMVERS, in main() 167 bootparamprog_1(struct svc_req *rqstp, register SVCXPRT *transp) in bootparamprog_1() argument 180 (void) svc_sendreply(transp, xdr_void, (char *)NULL); in bootparamprog_1() 197 svcerr_noproc(transp); in bootparamprog_1() 202 if (!svc_getargs(transp, xdr_argument, (caddr_t)&argument)) { in bootparamprog_1() 203 svcerr_decode(transp); in bootparamprog_1() 208 if (result != NULL && !svc_sendreply(transp, xdr_result, result)) { in bootparamprog_1() 209 svcerr_systemerr(transp); in bootparamprog_1() [all …]
|
/illumos-gate/usr/src/cmd/krb5/kadmin/server/ |
H A D | kadm_rpc_svc.c | 70 void kadm_1(rqstp, transp) in kadm_1() argument 72 register SVCXPRT *transp; 102 svcerr_weakauth(transp); 108 (void) svc_sendreply(transp, xdr_void, (char *)NULL); 243 svcerr_noproc(transp); 247 if (!svc_getargs(transp, xdr_argument, (char *) &argument)) { 248 svcerr_decode(transp); 252 if (result != NULL && !svc_sendreply(transp, xdr_result, (char *) result)) { 256 svcerr_systemerr(transp); 258 if (!svc_freeargs(transp, xdr_argument, (char *) &argument)) {
|
H A D | ipropd_svc.c | 417 register SVCXPRT *transp) in krb5_iprop_prog_1() argument 429 (void) svc_sendreply(transp, xdr_void, in krb5_iprop_prog_1() 449 svcerr_noproc(transp); in krb5_iprop_prog_1() 453 if (!svc_getargs(transp, _xdr_argument, (caddr_t)&argument)) { in krb5_iprop_prog_1() 457 svcerr_decode(transp); in krb5_iprop_prog_1() 463 !svc_sendreply(transp, _xdr_result, result)) { in krb5_iprop_prog_1() 467 svcerr_systemerr(transp); in krb5_iprop_prog_1() 469 if (!svc_freeargs(transp, _xdr_argument, (caddr_t)&argument)) { in krb5_iprop_prog_1()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/rquotad/ |
H A D | rpc.rquotad.c | 123 register SVCXPRT *transp; in main() local 164 if ((transp = svc_tli_create(0, nconf, NULL, 0, 0)) == NULL) { in main() 171 if (!svc_reg(transp, RQUOTAPROG, RQUOTAVERS, dispatch, 0)) { in main() 229 dispatch(rqstp, transp) in dispatch() argument 231 register SVCXPRT *transp; 239 if (!svc_sendreply(transp, xdr_void, 0)) 240 log_cant_reply(transp); 245 getquota(rqstp, transp); 249 svcerr_noproc(transp); 312 getquota(rqstp, transp) in getquota() argument [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | mountd.c | 793 caller_is_local(SVCXPRT *transp) in caller_is_local() argument 801 netid = transp->xp_netid; in caller_is_local() 802 rtaddr = svc_getrpccaller(transp); in caller_is_local() 842 mnt(struct svc_req *rqstp, SVCXPRT *transp) in mnt() argument 847 if (!svc_sendreply(transp, xdr_void, (char *)0)) in mnt() 848 log_cant_reply(transp); in mnt() 856 if (mountd_remote_dump || caller_is_local(transp)) in mnt() 857 mntlist_send(transp); in mnt() 859 svcerr_noproc(transp); in mnt() 879 svcerr_noproc(transp); in mnt() [all …]
|
H A D | exportlist.c | 69 SVCXPRT *transp; in export() local 80 transp = rqstp->rq_xprt; in export() 81 if (!svc_getargs(transp, xdr_void, NULL)) { in export() 82 svcerr_decode(transp); in export() 160 if (!svc_sendreply(transp, xdr_exports, (char *)&exportlist)) in export() 161 log_cant_reply(transp); in export()
|
/illumos-gate/usr/src/cmd/rpcsvc/ |
H A D | rpc.rusersd.c | 104 SVCXPRT *transp; in main() local 119 if ((transp = svc_tli_create(0, nconf, NULL, 0, 0)) == NULL) { in main() 125 if (!svc_reg(transp, RUSERSPROG, RUSERSVERS_3, rusers_service, in main() 130 if (!svc_reg(transp, RUSERSPROG, RUSERSVERS_IDLE, in main() 307 rusers_service(rqstp, transp) in rusers_service() argument 309 register SVCXPRT *transp; 318 if (svc_sendreply(transp, xdr_void, 0) == FALSE) { 324 if (!svc_sendreply(transp, xdr_u_long, (caddr_t)&cnt)) 335 if (!svc_sendreply(transp, xdr_utmpidlearr, 368 if (!svc_sendreply(transp, xdr_utmp_array, [all …]
|
H A D | rstat_main.c | 73 SVCXPRT *transp; in main() local 86 if ((transp = svc_tli_create(0, nconf, NULL, 0, 0)) == NULL) { in main() 92 if (!svc_reg(transp, RSTATPROG, RSTATVERS_VAR, rstatprog_4, in main() 98 if (!svc_reg(transp, RSTATPROG, RSTATVERS_TIME, rstatprog_3, in main() 104 if (!svc_reg(transp, RSTATPROG, RSTATVERS_SWTCH, rstatprog_2, in main()
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | svc_simple.c | 235 universal(struct svc_req *rqstp, SVCXPRT *transp) in universal() argument 249 if (svc_sendreply(transp, (xdrproc_t)xdr_void, NULL) == FALSE) { in universal() 262 (strcmp(pl->p_netid, transp->xp_netid) == 0)) { in universal() 272 if (!svc_getargs(transp, pl->p_inproc, xdrbuf)) { in universal() 273 svcerr_decode(transp); in universal() 284 if (!svc_sendreply(transp, pl->p_outproc, outdata)) { in universal() 292 (void) svc_freeargs(transp, pl->p_inproc, xdrbuf); in universal()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/statd/ |
H A D | sm_svc.c | 195 sm_prog_1(struct svc_req *rqstp, SVCXPRT *transp) in sm_prog_1() argument 224 svc_sendreply(transp, xdr_void, (caddr_t)NULL); in sm_prog_1() 235 svcerr_noproc(transp); in sm_prog_1() 242 svc_sendreply(transp, xdr_void, (caddr_t)NULL); in sm_prog_1() 282 svcerr_noproc(transp); in sm_prog_1() 288 if (!svc_getargs(transp, xdr_argument, (caddr_t)&argument)) { in sm_prog_1() 289 svcerr_decode(transp); in sm_prog_1() 295 if (!svc_sendreply(transp, xdr_result, (caddr_t)&result)) { in sm_prog_1() 296 svcerr_systemerr(transp); in sm_prog_1() 299 if (!svc_freeargs(transp, xdr_argument, (caddr_t)&argument)) { in sm_prog_1()
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | nfs_cast.c | 70 struct transp { struct 71 struct transp *tr_next; argument 85 static void free_transports(struct transp *); argument 87 static struct mapfs *sort_responses(struct transp *); 132 struct transp *tr_head; in nfs_cast() 133 struct transp *trans, *prev_trans; in nfs_cast() 179 trans = (struct transp *)malloc(sizeof (*trans)); in nfs_cast() 507 struct transp *trans; in sort_responses() 509 struct transp *t; 668 struct transp *trans; in free_transports() [all …]
|
/illumos-gate/usr/src/cmd/rpcgen/ |
H A D | rpc_svcout.c | 201 write_netid_register(char *transp) in write_netid_register() argument 211 f_print(fout, "%s\tnconf = getnetconfigent(\"%s\");\n", sp, transp); in write_netid_register() 214 print_err_message(tmpbuf, "cannot find %s netid.", transp); in write_netid_register() 220 print_err_message(tmpbuf, "cannot create %s service.", transp); in write_netid_register() 240 def->def_name, vp->vers_name, transp); in write_netid_register() 252 write_nettype_register(char *transp) in write_nettype_register() argument 269 f_print(fout, "\t \"%s\")) {\n", transp); in write_nettype_register() 272 def->def_name, vp->vers_name, transp); in write_nettype_register() 679 printerr(char *err, char *transp) in printerr() argument 681 f_print(fout, "\t\tsvcerr_%s(%s);\n", err, transp); in printerr() [all …]
|