/freebsd-11-stable/usr.sbin/rpcbind/ |
H A D | rpcb_svc.c | 65 rpcb_service_3(struct svc_req *rqstp, SVCXPRT *transp) argument 91 check_access(transp, rqstp->rq_proc, NULL, RPCBVERS); 92 (void) svc_sendreply(transp, (xdrproc_t)xdr_void, (char *)NULL); 124 rpcbproc_callit_com(rqstp, transp, rqstp->rq_proc, RPCBVERS); 158 svcerr_noproc(transp); 162 if (!svc_getargs(transp, (xdrproc_t) xdr_argument, 164 svcerr_decode(transp); 169 if (!check_access(transp, rqstp->rq_proc, &argument, RPCBVERS)) { 170 svcerr_weakauth(transp); 173 result = (*local)(&argument, rqstp, transp, RPCBVER [all...] |
H A D | rpcb_svc_4.c | 69 rpcb_service_4(struct svc_req *rqstp, SVCXPRT *transp) argument 93 check_access(transp, rqstp->rq_proc, NULL, RPCBVERS4); 94 (void) svc_sendreply(transp, (xdrproc_t) xdr_void, 149 rpcbproc_callit_com(rqstp, transp, rqstp->rq_proc, RPCBVERS4); 158 rpcbproc_callit_com(rqstp, transp, rqstp->rq_proc, RPCBVERS4); 212 svcerr_noproc(transp); 216 if (!svc_getargs(transp, (xdrproc_t) xdr_argument, 218 svcerr_decode(transp); 223 if (!check_access(transp, rqstp->rq_proc, &argument, RPCBVERS4)) { 224 svcerr_weakauth(transp); 263 rpcbproc_getaddr_4_local(void *arg, struct svc_req *rqstp, SVCXPRT *transp, rpcvers_t rpcbversnum __unused) argument 293 rpcbproc_getversaddr_4_local(void *arg, struct svc_req *rqstp, SVCXPRT *transp, rpcvers_t versnum __unused) argument 321 rpcbproc_getaddrlist_4_local(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, rpcvers_t versnum __unused) argument [all...] |
H A D | rpcb_svc_com.c | 125 rpcbproc_set_com(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, argument 138 ans = map_set(regp, getowner(transp, owner, sizeof owner)); 213 rpcbproc_unset_com(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, argument 226 ans = map_unset(regp, getowner(transp, owner, sizeof owner)); 308 SVCXPRT *transp, rpcvers_t rpcbversnum, rpcvers_t verstype) 318 fnd = find_service(regp->r_prog, regp->r_vers, transp->xp_netid); 324 if (!(uaddr = mergeaddr(transp, transp->xp_netid, 344 transp->xp_netid, uaddr); 351 SVCXPRT *transp __unuse 307 rpcbproc_getaddr_com(RPCB *regp, struct svc_req *rqstp __unused, SVCXPRT *transp, rpcvers_t rpcbversnum, rpcvers_t verstype) argument 365 rpcbproc_uaddr2taddr_com(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, rpcvers_t rpcbversnum __unused) argument 392 rpcbproc_taddr2uaddr_com(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, rpcvers_t rpcbversnum __unused) argument 600 rpcbproc_callit_com(struct svc_req *rqstp, SVCXPRT *transp, rpcproc_t reply_type, rpcvers_t versnum) argument 1381 getowner(SVCXPRT *transp, char *owner, size_t ownersize) argument [all...] |
/freebsd-11-stable/libexec/rpc.rquotad/ |
H A D | rquotad.c | 36 static void rquota_service_1(struct svc_req *request, SVCXPRT *transp); 37 static void rquota_service_2(struct svc_req *request, SVCXPRT *transp); 38 static void sendquota(struct svc_req *request, SVCXPRT *transp); 39 static void sendquota_extended(struct svc_req *request, SVCXPRT *transp); 57 SVCXPRT *transp; local 91 transp = svc_tli_create(0, NULL, NULL, 0, 0); 92 if (transp == NULL) { 97 ok = svc_reg(transp, RQUOTAPROG, RQUOTAVERS, 101 ok = svc_reg(transp, RQUOTAPROG, EXT_RQUOTAVERS, 129 rquota_service_2(struct svc_req *request, SVCXPRT *transp) argument 149 rquota_service_1(struct svc_req *request, SVCXPRT *transp) argument 170 sendquota(struct svc_req *request, SVCXPRT *transp) argument 222 sendquota_extended(struct svc_req *request, SVCXPRT *transp) argument [all...] |
/freebsd-11-stable/libexec/rpc.rwalld/ |
H A D | rwalld.c | 54 void wallprog_1(struct svc_req *rqstp, SVCXPRT *transp); 65 SVCXPRT *transp; local 104 transp = svc_tli_create(0, NULL, NULL, 0, 0); 105 if (transp == NULL) { 109 ok = svc_reg(transp, WALLPROG, WALLVERS, 163 wallprog_1(struct svc_req *rqstp, SVCXPRT *transp) argument 174 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); 184 svcerr_noproc(transp); 188 if (!svc_getargs(transp, (xdrproc_t)xdr_argument, &argument)) { 189 svcerr_decode(transp); [all...] |
/freebsd-11-stable/libexec/rpc.sprayd/ |
H A D | sprayd.c | 80 SVCXPRT *transp; local 109 transp = svc_tli_create(0, NULL, NULL, 0, 0); 110 if (transp == NULL) { 114 ok = svc_reg(transp, SPRAYPROG, SPRAYVERS, 133 spray_service(struct svc_req *rqstp, SVCXPRT *transp) argument 145 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); 160 svcerr_noproc(transp); 164 if (!svc_sendreply(transp, (xdrproc_t)xdr_spraycumul, &scum)) { 165 svcerr_systemerr(transp);
|
/freebsd-11-stable/libexec/rpc.rusersd/ |
H A D | rusersd.c | 57 SVCXPRT *transp = NULL; /* Keep compiler happy. */ local 84 transp = svc_tli_create(0, NULL, NULL, 0, 0); 85 if (transp == NULL) { 89 ok = svc_reg(transp, RUSERSPROG, RUSERSVERS_IDLE, 99 ok = svc_reg(transp, RUSERSPROG, RUSERSVERS_ORIG,
|
H A D | rusers_proc.c | 257 rusers_service(struct svc_req *rqstp, SVCXPRT *transp) argument 268 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); 288 svcerr_progvers(transp, RUSERSVERS_ORIG, RUSERSVERS_IDLE); 305 svcerr_progvers(transp, RUSERSVERS_ORIG, RUSERSVERS_IDLE); 312 svcerr_noproc(transp); 316 if (!svc_getargs(transp, (xdrproc_t)xdr_argument, &argument)) { 317 svcerr_decode(transp); 322 !svc_sendreply(transp, (xdrproc_t)xdr_result, result)) { 323 svcerr_systemerr(transp); 325 if (!svc_freeargs(transp, (xdrproc_ [all...] |
/freebsd-11-stable/libexec/rpc.rstatd/ |
H A D | rstatd.c | 58 SVCXPRT *transp; local 91 transp = svc_tli_create(0, NULL, NULL, 0, 0); 92 if (transp == NULL) { 96 ok = svc_reg(transp, RSTATPROG, RSTATVERS_TIME, 106 ok = svc_reg(transp, RSTATPROG, RSTATVERS_SWTCH, 116 ok = svc_reg(transp, RSTATPROG, RSTATVERS_ORIG,
|
H A D | rstat_proc.c | 404 rstat_service(struct svc_req *rqstp, SVCXPRT *transp) argument 415 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); 432 svcerr_progvers(transp, RSTATVERS_ORIG, RSTATVERS_TIME); 452 svcerr_progvers(transp, RSTATVERS_ORIG, RSTATVERS_TIME); 459 svcerr_noproc(transp); 463 if (!svc_getargs(transp, (xdrproc_t)xdr_argument, &argument)) { 464 svcerr_decode(transp); 469 !svc_sendreply(transp, (xdrproc_t)xdr_result, result)) { 470 svcerr_systemerr(transp); 472 if (!svc_freeargs(transp, (xdrproc_ [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/rpc/ |
H A D | t_rpc.c | 64 onehost(const char *host, const char *transp) argument 78 if ((clnt = clnt_create(host, RPCBPROG, RPCBVERS, transp)) == NULL) 104 server(struct svc_req *rqstp, SVCXPRT *transp) argument 112 if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL)) 118 if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL)) 120 svc_destroy(transp); 123 svcerr_noproc(transp); 127 if (!svc_getargs(transp, (xdrproc_t)xdr_int, (void *)&num)) { 128 svcerr_decode(transp); 133 if (!svc_sendreply(transp, (xdrproc_ 175 regtest(const char *hostname, const char *transp, const char *arg, int p) argument 231 allhosts(const char *transp) argument 247 const char *transp = "udp"; local [all...] |
/freebsd-11-stable/usr.sbin/rpc.ypupdated/ |
H A D | ypupdated_main.c | 191 register SVCXPRT *transp = NULL; local 241 transp = svcudp_create(sock); 242 if (transp == NULL) { 248 if (!svc_register(transp, YPU_PROG, YPU_VERS, ypu_prog_1, proto)) { 255 transp = svctcp_create(sock, 0, 0); 256 if (transp == NULL) { 262 if (!svc_register(transp, YPU_PROG, YPU_VERS, ypu_prog_1, proto)) { 268 if (transp == (SVCXPRT *)NULL) {
|
/freebsd-11-stable/usr.sbin/bootparamd/bootparamd/ |
H A D | main.c | 44 SVCXPRT *transp; local 99 transp = svcudp_create(RPC_ANYSOCK); 100 if (transp == NULL) 102 if (!svc_register(transp, BOOTPARAMPROG, BOOTPARAMVERS, bootparamprog_1, IPPROTO_UDP))
|
/freebsd-11-stable/contrib/amd/amd/ |
H A D | nfs_prot_svc.c | 75 nfs_program_2(struct svc_req *rqstp, SVCXPRT *transp) argument 109 extern int __rpc_get_local_uid(SVCXPRT *transp, uid_t *uid); 110 if (__rpc_get_local_uid(transp, &u) >= 0 && u != 0) { 183 * Cheap way to pass transp down to amfs_auto_lookuppn so it can 187 current_transp = transp; 269 svcerr_noproc(transp); 274 if (!svc_getargs(transp, 280 svcerr_decode(transp); 287 if (result != NULL && !svc_sendreply(transp, 290 svcerr_systemerr(transp); 301 nfs_program_3(struct svc_req *rqstp, register SVCXPRT *transp) argument [all...] |
H A D | amq_svc.c | 149 amq_program_1(struct svc_req *rqstp, SVCXPRT *transp) argument 170 svcerr_auth(transp, AUTH_FAILED); 260 svcerr_noproc(transp); 265 if (!svc_getargs(transp, 268 svcerr_decode(transp); 295 if (result != NULL && !svc_sendreply(transp, 298 svcerr_systemerr(transp); 301 if (!svc_freeargs(transp,
|
/freebsd-11-stable/tools/regression/rpcsec_gss/ |
H A D | rpctest.c | 169 server_program_1(struct svc_req *rqstp, register SVCXPRT *transp) argument 176 svcerr_weakauth(transp); 181 svcerr_systemerr(transp); 195 if (!svc_getargs(transp, (xdrproc_t) xdr_void, 0)) { 196 svcerr_decode(transp); 199 if (!svc_sendreply(transp, (xdrproc_t) xdr_void, 0)) { 200 svcerr_systemerr(transp); 205 if (!svc_getargs(transp, (xdrproc_t) xdr_int, 207 svcerr_decode(transp); 211 if (!svc_sendreply(transp, (xdrproc_ [all...] |
/freebsd-11-stable/contrib/amd/hlfsd/ |
H A D | nfs_prot_svc.c | 74 nfs_program_2(struct svc_req *rqstp, SVCXPRT *transp) argument 130 * Cheap way to pass transp down to afs_lookuppn so it can 134 nfs_program_2_transp = transp; 216 svcerr_noproc(transp); 221 if (!svc_getargs(transp, 227 svcerr_decode(transp); 234 if (result != NULL && !svc_sendreply(transp, 237 svcerr_systemerr(transp); 239 if (!svc_freeargs(transp,
|
/freebsd-11-stable/usr.sbin/rpc.ypxfrd/ |
H A D | ypxfrd_main.c | 198 register SVCXPRT *transp = NULL; local 258 transp = svcudp_create(sock); 259 if (transp == NULL) { 265 if (!svc_register(transp, YPXFRD_FREEBSD_PROG, YPXFRD_FREEBSD_VERS, ypxfrd_freebsd_prog_1, proto)) { 272 transp = svctcp_create(sock, 0, 0); 273 if (transp == NULL) { 279 if (!svc_register(transp, YPXFRD_FREEBSD_PROG, YPXFRD_FREEBSD_VERS, ypxfrd_freebsd_prog_1, proto)) { 285 if (transp == (SVCXPRT *)NULL) {
|
/freebsd-11-stable/usr.sbin/keyserv/ |
H A D | keyserv.c | 119 register SVCXPRT *transp; local 194 transp = svcunix_create(RPC_ANYSOCK, 0, 0, KEYSERVSOCK); 195 if (transp == NULL) 197 if (!svc_reg(transp, KEY_PROG, KEY_VERS, keyprogram, nconf)) 199 if (!svc_reg(transp, KEY_PROG, KEY_VERS2, keyprogram, nconf)) 201 if (!svc_reg(transp, CRYPT_PROG, CRYPT_VERS, crypt_prog_1, nconf)) 627 keyprogram(rqstp, transp) 629 SVCXPRT *transp; 652 svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); 727 svcerr_noproc(transp); [all...] |
/freebsd-11-stable/lib/libc/rpc/ |
H A D | svc_simple.c | 245 universal(struct svc_req *rqstp, SVCXPRT *transp) argument 258 if (svc_sendreply(transp, (xdrproc_t) xdr_void, NULL) == 271 (strcmp(pl->p_netid, transp->xp_netid) == 0)) { 281 if (!svc_getargs(transp, pl->p_inproc, xdrbuf)) { 282 svcerr_decode(transp); 293 if (!svc_sendreply(transp, pl->p_outproc, outdata)) { 301 (void)svc_freeargs(transp, pl->p_inproc, xdrbuf);
|
/freebsd-11-stable/sys/nlm/ |
H A D | nlm_prot_svc.c | 42 void nlm_prog_0(struct svc_req *rqstp, SVCXPRT *transp); 43 void nlm_prog_1(struct svc_req *rqstp, SVCXPRT *transp); 44 void nlm_prog_3(struct svc_req *rqstp, SVCXPRT *transp); 45 void nlm_prog_4(struct svc_req *rqstp, SVCXPRT *transp); 48 nlm_prog_0(struct svc_req *rqstp, SVCXPRT *transp) argument 96 nlm_prog_1(struct svc_req *rqstp, SVCXPRT *transp) argument 243 if (!nlm_prog_1_freeresult(transp, xdr_result, (caddr_t) &result)) 250 nlm_prog_3(struct svc_req *rqstp, SVCXPRT *transp) argument 289 nlm_prog_1(rqstp, transp); 336 if (!nlm_prog_3_freeresult(transp, xdr_resul 343 nlm_prog_4(struct svc_req *rqstp, SVCXPRT *transp) argument [all...] |
/freebsd-11-stable/usr.bin/rpcgen/ |
H A D | rpc_util.h | 207 void write_inetd_register(const char *transp); 208 void write_netid_register(const char *transp); 209 void write_nettype_register(const char *transp);
|
/freebsd-11-stable/usr.sbin/nfsuserd/ |
H A D | nfsuserd.c | 503 nfsuserdsrv(struct svc_req *rqstp, SVCXPRT *transp) argument 537 if (transp->xp_rtaddr.len < sizeof(*sin)) { 539 svcerr_weakauth(transp); 542 sin = (struct sockaddr_in *)transp->xp_rtaddr.buf; 547 svcerr_weakauth(transp); 557 svcerr_weakauth(transp); 564 if (transp->xp_rtaddr.len < sizeof(*sin6)) { 566 svcerr_weakauth(transp); 569 sin6 = (struct sockaddr_in6 *)transp->xp_rtaddr.buf; 574 svcerr_weakauth(transp); [all...] |
/freebsd-11-stable/usr.sbin/rpc.yppasswdd/ |
H A D | yppasswdd_main.c | 164 SVCXPRT *transp = NULL; local 301 transp = svcunix_create(RPC_ANYSOCK, 0, 0, sockname); 302 if (transp == NULL) { 306 if (!svc_reg(transp, MASTER_YPPASSWDPROG, MASTER_YPPASSWDVERS, 318 if (transp == (SVCXPRT *)NULL) {
|
/freebsd-11-stable/usr.sbin/ypserv/ |
H A D | yp_main.c | 258 SVCXPRT *transp; local 398 transp = svc_dg_create(slep->sle_sock, 0, 0); 400 transp = svc_vc_create(slep->sle_sock, RPC_MAXDATASIZE, 402 if (transp == NULL) { 407 if (!svc_reg(transp, YPPROG, YPOLDVERS, ypprog_1, NULL)) { 408 svc_destroy(transp); 414 if (!svc_reg(transp, YPPROG, YPVERS, ypprog_2, NULL)) { 415 svc_destroy(transp);
|