Searched refs:transp (Results 1 - 25 of 54) sorted by relevance

123

/freebsd-11.0-release/contrib/netbsd-tests/fs/nfs/nfsservice/rpcbind/
H A Drpcb_svc.c65 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, 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
206 rpcbproc_getaddr_3_local(void *arg, struct svc_req *rqstp, SVCXPRT *transp, rpcvers_t versnum) argument
228 rpcbproc_dump_3_local(void *arg, struct svc_req *rqstp, SVCXPRT *transp, rpcvers_t versnum) argument
[all...]
H A Drpcb_svc_4.c69 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, NULL);
148 rpcbproc_callit_com(rqstp, transp, rqstp->rq_proc, RPCBVERS4);
157 rpcbproc_callit_com(rqstp, transp, rqstp->rq_proc, RPCBVERS4);
211 svcerr_noproc(transp);
215 if (!svc_getargs(transp, (xdrproc_t) xdr_argument,
217 svcerr_decode(transp);
222 if (!check_access(transp, rqstp->rq_proc, &argument, RPCBVERS4)) {
223 svcerr_weakauth(transp);
262 rpcbproc_getaddr_4_local(void *arg, struct svc_req *rqstp, SVCXPRT *transp, rpcvers_t rpcbversnum) argument
292 rpcbproc_getversaddr_4_local(void *arg, struct svc_req *rqstp, SVCXPRT *transp, rpcvers_t versnum) argument
320 rpcbproc_getaddrlist_4_local(void *arg, struct svc_req *rqstp, SVCXPRT *transp, rpcvers_t versnum) argument
[all...]
H A Drpcb_svc_com.c127 rpcbproc_set_com(void *arg, struct svc_req *rqstp, SVCXPRT *transp, argument
140 ans = map_set(regp, getowner(transp, owner, sizeof owner));
216 rpcbproc_unset_com(void *arg, struct svc_req *rqstp, SVCXPRT *transp, argument
229 ans = map_unset(regp, getowner(transp, owner, sizeof owner));
310 rpcbproc_getaddr_com(RPCB *regp, struct svc_req *rqstp, SVCXPRT *transp, argument
319 fnd = find_service(regp->r_prog, regp->r_vers, transp->xp_netid);
325 if (!(uaddr = mergeaddr(transp, transp->xp_netid,
345 transp->xp_netid, uaddr);
351 rpcbproc_gettime_com(void *arg, struct svc_req *rqstp, SVCXPRT *transp, argument
366 rpcbproc_uaddr2taddr_com(void *arg, struct svc_req *rqstp, SVCXPRT *transp, rpcvers_t rpcbversnum) argument
392 rpcbproc_taddr2uaddr_com(void *arg, struct svc_req *rqstp, SVCXPRT *transp, rpcvers_t rpcbversnum) argument
590 rpcbproc_callit_com(struct svc_req *rqstp, SVCXPRT *transp, rpcproc_t reply_type, rpcvers_t versnum) argument
1352 getowner(SVCXPRT *transp, char *owner, size_t ownersize) argument
[all...]
/freebsd-11.0-release/usr.sbin/rpcbind/
H A Drpcb_svc.c65 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 Drpcb_svc_4.c69 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 Drpcb_svc_com.c124 rpcbproc_set_com(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, argument
137 ans = map_set(regp, getowner(transp, owner, sizeof owner));
212 rpcbproc_unset_com(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, argument
225 ans = map_unset(regp, getowner(transp, owner, sizeof owner));
307 SVCXPRT *transp, rpcvers_t rpcbversnum, rpcvers_t verstype)
317 fnd = find_service(regp->r_prog, regp->r_vers, transp->xp_netid);
323 if (!(uaddr = mergeaddr(transp, transp->xp_netid,
343 transp->xp_netid, uaddr);
350 SVCXPRT *transp __unuse
306 rpcbproc_getaddr_com(RPCB *regp, struct svc_req *rqstp __unused, SVCXPRT *transp, rpcvers_t rpcbversnum, rpcvers_t verstype) argument
364 rpcbproc_uaddr2taddr_com(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, rpcvers_t rpcbversnum __unused) argument
391 rpcbproc_taddr2uaddr_com(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, rpcvers_t rpcbversnum __unused) argument
598 rpcbproc_callit_com(struct svc_req *rqstp, SVCXPRT *transp, rpcproc_t reply_type, rpcvers_t versnum) argument
1379 getowner(SVCXPRT *transp, char *owner, size_t ownersize) argument
[all...]
/freebsd-11.0-release/libexec/rpc.rwalld/
H A Drwalld.c54 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.0-release/libexec/rpc.sprayd/
H A Dsprayd.c78 SVCXPRT *transp; local
107 transp = svc_tli_create(0, NULL, NULL, 0, 0);
108 if (transp == NULL) {
112 ok = svc_reg(transp, SPRAYPROG, SPRAYVERS,
131 spray_service(struct svc_req *rqstp, SVCXPRT *transp) argument
143 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL);
158 svcerr_noproc(transp);
162 if (!svc_sendreply(transp, (xdrproc_t)xdr_spraycumul, &scum)) {
163 svcerr_systemerr(transp);
/freebsd-11.0-release/libexec/rpc.rusersd/
H A Drusersd.c57 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 Drusers_proc.c257 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.0-release/libexec/rpc.rstatd/
H A Drstatd.c58 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,
/freebsd-11.0-release/libexec/rpc.rquotad/
H A Drquotad.c35 static void rquota_service(struct svc_req *request, SVCXPRT *transp);
36 static void sendquota(struct svc_req *request, SVCXPRT *transp);
56 SVCXPRT *transp; local
77 transp = svc_tli_create(0, NULL, NULL, 0, 0);
78 if (transp == NULL) {
82 ok = svc_reg(transp, RQUOTAPROG, RQUOTAVERS,
102 rquota_service(struct svc_req *request, SVCXPRT *transp) argument
107 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, (char *)NULL);
111 sendquota(request, transp);
114 svcerr_noproc(transp);
123 sendquota(struct svc_req *request, SVCXPRT *transp) argument
[all...]
/freebsd-11.0-release/contrib/amd/amd/
H A Damq_svc.c114 amq_program_1(struct svc_req *rqstp, SVCXPRT *transp) argument
132 svcerr_auth(transp, AUTH_FAILED);
203 svcerr_noproc(transp);
208 if (!svc_getargs(transp,
211 svcerr_decode(transp);
217 if (result != NULL && !svc_sendreply(transp,
220 svcerr_systemerr(transp);
223 if (!svc_freeargs(transp,
H A Dnfs_prot_svc.c78 nfs_program_2(struct svc_req *rqstp, SVCXPRT *transp) argument
112 extern int __rpc_get_local_uid(SVCXPRT *transp, uid_t *uid);
113 if (__rpc_get_local_uid(transp, &u) >= 0 && u != 0) {
186 * Cheap way to pass transp down to amfs_auto_lookuppn so it can
190 current_transp = transp;
272 svcerr_noproc(transp);
277 if (!svc_getargs(transp,
283 svcerr_decode(transp);
290 if (result != NULL && !svc_sendreply(transp,
293 svcerr_systemerr(transp);
[all...]
/freebsd-11.0-release/usr.sbin/rpc.ypupdated/
H A Dypupdated_main.c189 register SVCXPRT *transp = NULL; local
239 transp = svcudp_create(sock);
240 if (transp == NULL) {
246 if (!svc_register(transp, YPU_PROG, YPU_VERS, ypu_prog_1, proto)) {
253 transp = svctcp_create(sock, 0, 0);
254 if (transp == NULL) {
260 if (!svc_register(transp, YPU_PROG, YPU_VERS, ypu_prog_1, proto)) {
266 if (transp == (SVCXPRT *)NULL) {
/freebsd-11.0-release/usr.sbin/bootparamd/bootparamd/
H A Dmain.c44 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.0-release/contrib/netbsd-tests/lib/libc/rpc/
H A Dt_rpc.c57 onehost(const char *host, const char *transp) argument
71 if ((clnt = clnt_create(host, RPCBPROG, RPCBVERS, transp)) == NULL)
97 NULL, (resultproc_t)reply, transp);
106 const char *transp = "udp"; local
112 transp = "tcp";
115 transp = "udp";
127 onehost(argv[optind], transp);
/freebsd-11.0-release/tools/regression/rpcsec_gss/
H A Drpctest.c169 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.0-release/contrib/amd/hlfsd/
H A Dnfs_prot_svc.c78 nfs_program_2(struct svc_req *rqstp, SVCXPRT *transp) argument
134 * Cheap way to pass transp down to afs_lookuppn so it can
138 nfs_program_2_transp = transp;
220 svcerr_noproc(transp);
225 if (!svc_getargs(transp,
231 svcerr_decode(transp);
238 if (result != NULL && !svc_sendreply(transp,
241 svcerr_systemerr(transp);
243 if (!svc_freeargs(transp,
/freebsd-11.0-release/usr.sbin/rpc.ypxfrd/
H A Dypxfrd_main.c196 register SVCXPRT *transp = NULL; local
256 transp = svcudp_create(sock);
257 if (transp == NULL) {
263 if (!svc_register(transp, YPXFRD_FREEBSD_PROG, YPXFRD_FREEBSD_VERS, ypxfrd_freebsd_prog_1, proto)) {
270 transp = svctcp_create(sock, 0, 0);
271 if (transp == NULL) {
277 if (!svc_register(transp, YPXFRD_FREEBSD_PROG, YPXFRD_FREEBSD_VERS, ypxfrd_freebsd_prog_1, proto)) {
283 if (transp == (SVCXPRT *)NULL) {
/freebsd-11.0-release/usr.sbin/keyserv/
H A Dkeyserv.c119 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.0-release/usr.sbin/nfsuserd/
H A Dnfsuserd.c453 nfsuserdsrv(struct svc_req *rqstp, SVCXPRT *transp) argument
472 sport = ntohs(transp->xp_raddr.sin_port);
473 saddr = ntohl(transp->xp_raddr.sin_addr.s_addr);
477 svcerr_weakauth(transp);
482 if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL))
486 if (!svc_getargs(transp, (xdrproc_t)xdr_getid,
488 svcerr_decode(transp);
526 if (!svc_sendreply(transp, (xdrproc_t)xdr_retval,
531 if (!svc_getargs(transp, (xdrproc_t)xdr_getid,
533 svcerr_decode(transp);
[all...]
/freebsd-11.0-release/lib/libc/rpc/
H A Dsvc_simple.c245 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.0-release/sys/nlm/
H A Dnlm_prot_svc.c42 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.0-release/usr.bin/rpcgen/
H A Drpc_util.h207 void write_inetd_register(const char *transp);
208 void write_netid_register(const char *transp);
209 void write_nettype_register(const char *transp);

Completed in 135 milliseconds

123