Home
last modified time | relevance | path

Searched refs:transp (Results 1 – 25 of 39) sorted by relevance

12

/freebsd/libexec/rpc.rquotad/
H A Drquotad.c33 static void rquota_service_1(struct svc_req *request, SVCXPRT *transp);
34 static void rquota_service_2(struct svc_req *request, SVCXPRT *transp);
35 static void sendquota(struct svc_req *request, SVCXPRT *transp);
36 static void sendquota_extended(struct svc_req *request, SVCXPRT *transp);
54 SVCXPRT *transp; in main() local
88 transp = svc_tli_create(0, NULL, NULL, 0, 0); in main()
89 if (transp == NULL) { in main()
94 ok = svc_reg(transp, RQUOTAPROG, RQUOTAVERS, in main()
98 ok = svc_reg(transp, RQUOTAPROG, EXT_RQUOTAVERS, in main()
126 rquota_service_2(struct svc_req *request, SVCXPRT *transp) in rquota_service_2() argument
[all …]
/freebsd/usr.sbin/rpcbind/
H A Drpcb_svc.c65 rpcb_service_3(struct svc_req *rqstp, SVCXPRT *transp) in rpcb_service_3() argument
91 check_access(transp, rqstp->rq_proc, NULL, RPCBVERS); in rpcb_service_3()
92 (void) svc_sendreply(transp, (xdrproc_t)xdr_void, (char *)NULL); in rpcb_service_3()
124 rpcbproc_callit_com(rqstp, transp, rqstp->rq_proc, RPCBVERS); in rpcb_service_3()
158 svcerr_noproc(transp); in rpcb_service_3()
162 if (!svc_getargs(transp, (xdrproc_t) xdr_argument, in rpcb_service_3()
164 svcerr_decode(transp); in rpcb_service_3()
169 if (!check_access(transp, rqstp->rq_proc, &argument, RPCBVERS)) { in rpcb_service_3()
170 svcerr_weakauth(transp); in rpcb_service_3()
173 result = (*local)(&argument, rqstp, transp, RPCBVERS); in rpcb_service_3()
[all …]
H A Drpcb_svc_4.c66 rpcb_service_4(struct svc_req *rqstp, SVCXPRT *transp) in rpcb_service_4() argument
90 check_access(transp, rqstp->rq_proc, NULL, RPCBVERS4); in rpcb_service_4()
91 (void) svc_sendreply(transp, (xdrproc_t) xdr_void, 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()
209 svcerr_noproc(transp); in rpcb_service_4()
213 if (!svc_getargs(transp, (xdrproc_t) xdr_argument, in rpcb_service_4()
215 svcerr_decode(transp); in rpcb_service_4()
220 if (!check_access(transp, rqstp->rq_proc, &argument, RPCBVERS4)) { in rpcb_service_4()
221 svcerr_weakauth(transp); in rpcb_service_4()
[all …]
H A Drpcb_svc_com.c124 rpcbproc_set_com(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, in rpcbproc_set_com() argument
137 ans = map_set(regp, getowner(transp, owner, sizeof owner)); in rpcbproc_set_com()
209 rpcbproc_unset_com(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, in rpcbproc_unset_com() argument
222 ans = map_unset(regp, getowner(transp, owner, sizeof owner)); in rpcbproc_unset_com()
304 SVCXPRT *transp, rpcvers_t rpcbversnum, rpcvers_t verstype) in rpcbproc_getaddr_com() argument
314 fnd = find_service(regp->r_prog, regp->r_vers, transp->xp_netid); in rpcbproc_getaddr_com()
320 if (!(uaddr = mergeaddr(transp, transp->xp_netid, in rpcbproc_getaddr_com()
340 transp->xp_netid, uaddr); in rpcbproc_getaddr_com()
347 SVCXPRT *transp __unused, rpcvers_t rpcbversnum __unused) in rpcbproc_gettime_com()
362 SVCXPRT *transp, rpcvers_t rpcbversnum __unused) in rpcbproc_uaddr2taddr_com() argument
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/rpc/
H A Dt_rpc.c64 onehost(const char *host, const char *transp) in onehost() argument
80 if ((clnt = clnt_create_timed(host, RPCBPROG, RPCBVERS, transp, in onehost()
87 if ((clnt = clnt_create(host, RPCBPROG, RPCBVERS, transp)) == NULL) in onehost()
114 server(struct svc_req *rqstp, SVCXPRT *transp) in server() argument
122 if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL)) in server()
128 if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL)) in server()
130 svc_destroy(transp); in server()
133 svcerr_noproc(transp); in server()
137 if (!svc_getargs(transp, (xdrproc_t)xdr_int, (void *)&num)) { in server()
138 svcerr_decode(transp); in server()
[all …]
/freebsd/libexec/rpc.rwalld/
H A Drwalld.c54 void wallprog_1(struct svc_req *rqstp, SVCXPRT *transp);
65 SVCXPRT *transp; in main() local
104 transp = svc_tli_create(0, NULL, NULL, 0, 0); in main()
105 if (transp == NULL) { in main()
109 ok = svc_reg(transp, WALLPROG, WALLVERS, in main()
163 wallprog_1(struct svc_req *rqstp, SVCXPRT *transp) in wallprog_1() argument
175 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); in wallprog_1()
185 svcerr_noproc(transp); in wallprog_1()
189 if (!svc_getargs(transp, xdr_argument, &argument)) { in wallprog_1()
190 svcerr_decode(transp); in wallprog_1()
[all …]
/freebsd/libexec/rpc.sprayd/
H A Dsprayd.c72 SVCXPRT *transp; in main() local
101 transp = svc_tli_create(0, NULL, NULL, 0, 0); in main()
102 if (transp == NULL) { in main()
106 ok = svc_reg(transp, SPRAYPROG, SPRAYVERS, in main()
125 spray_service(struct svc_req *rqstp, SVCXPRT *transp) in spray_service() argument
137 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); in spray_service()
152 svcerr_noproc(transp); in spray_service()
156 if (!svc_sendreply(transp, (xdrproc_t)xdr_spraycumul, &scum)) { in spray_service()
157 svcerr_systemerr(transp); in spray_service()
/freebsd/usr.sbin/nfsuserd/
H A Dnfsuserd.c511 nfsuserdsrv(struct svc_req *rqstp, SVCXPRT *transp) in nfsuserdsrv() argument
545 if (transp->xp_rtaddr.len < sizeof(*sin)) { in nfsuserdsrv()
547 svcerr_weakauth(transp); in nfsuserdsrv()
550 sin = (struct sockaddr_in *)transp->xp_rtaddr.buf; in nfsuserdsrv()
555 svcerr_weakauth(transp); in nfsuserdsrv()
565 svcerr_weakauth(transp); in nfsuserdsrv()
572 if (transp->xp_rtaddr.len < sizeof(*sin6)) { in nfsuserdsrv()
574 svcerr_weakauth(transp); in nfsuserdsrv()
577 sin6 = (struct sockaddr_in6 *)transp->xp_rtaddr.buf; in nfsuserdsrv()
582 svcerr_weakauth(transp); in nfsuserdsrv()
[all …]
/freebsd/libexec/rpc.rusersd/
H A Drusers_proc.c254 rusers_service(struct svc_req *rqstp, SVCXPRT *transp) in rusers_service() argument
265 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); in rusers_service()
285 svcerr_progvers(transp, RUSERSVERS_ORIG, RUSERSVERS_IDLE); in rusers_service()
302 svcerr_progvers(transp, RUSERSVERS_ORIG, RUSERSVERS_IDLE); in rusers_service()
309 svcerr_noproc(transp); in rusers_service()
313 if (!svc_getargs(transp, (xdrproc_t)xdr_argument, &argument)) { in rusers_service()
314 svcerr_decode(transp); in rusers_service()
319 !svc_sendreply(transp, (xdrproc_t)xdr_result, result)) { in rusers_service()
320 svcerr_systemerr(transp); in rusers_service()
322 if (!svc_freeargs(transp, (xdrproc_t)xdr_argument, &argument)) { in rusers_service()
H A Drusersd.c54 SVCXPRT *transp = NULL; /* Keep compiler happy. */ in main() local
81 transp = svc_tli_create(0, NULL, NULL, 0, 0); in main()
82 if (transp == NULL) { in main()
86 ok = svc_reg(transp, RUSERSPROG, RUSERSVERS_IDLE, in main()
96 ok = svc_reg(transp, RUSERSPROG, RUSERSVERS_ORIG, in main()
/freebsd/usr.sbin/rpc.ypupdated/
H A Dypupdated_main.c191 register SVCXPRT *transp = NULL; in main() local
241 transp = svcudp_create(sock); in main()
242 if (transp == NULL) { in main()
248 if (!svc_register(transp, YPU_PROG, YPU_VERS, ypu_prog_1, proto)) { in main()
255 transp = svctcp_create(sock, 0, 0); in main()
256 if (transp == NULL) { in main()
262 if (!svc_register(transp, YPU_PROG, YPU_VERS, ypu_prog_1, proto)) { in main()
268 if (transp == (SVCXPRT *)NULL) { in main()
/freebsd/tools/regression/rpcsec_gss/
H A Drpctest.c167 server_program_1(struct svc_req *rqstp, register SVCXPRT *transp) in server_program_1() argument
174 svcerr_weakauth(transp); in server_program_1()
179 svcerr_systemerr(transp); in server_program_1()
193 if (!svc_getargs(transp, (xdrproc_t) xdr_void, 0)) { in server_program_1()
194 svcerr_decode(transp); in server_program_1()
197 if (!svc_sendreply(transp, (xdrproc_t) xdr_void, 0)) { in server_program_1()
198 svcerr_systemerr(transp); in server_program_1()
203 if (!svc_getargs(transp, (xdrproc_t) xdr_int, in server_program_1()
205 svcerr_decode(transp); in server_program_1()
209 if (!svc_sendreply(transp, (xdrproc_t) xdr_int, in server_program_1()
[all …]
/freebsd/libexec/rpc.rstatd/
H A Drstatd.c55 SVCXPRT *transp; in main() local
88 transp = svc_tli_create(0, NULL, NULL, 0, 0); in main()
89 if (transp == NULL) { in main()
93 ok = svc_reg(transp, RSTATPROG, RSTATVERS_TIME, in main()
103 ok = svc_reg(transp, RSTATPROG, RSTATVERS_SWTCH, in main()
113 ok = svc_reg(transp, RSTATPROG, RSTATVERS_ORIG, in main()
H A Drstat_proc.c395 rstat_service(struct svc_req *rqstp, SVCXPRT *transp) in rstat_service() argument
407 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); in rstat_service()
424 svcerr_progvers(transp, RSTATVERS_ORIG, RSTATVERS_TIME); in rstat_service()
444 svcerr_progvers(transp, RSTATVERS_ORIG, RSTATVERS_TIME); in rstat_service()
451 svcerr_noproc(transp); in rstat_service()
455 if (!svc_getargs(transp, xdr_argument, &argument)) { in rstat_service()
456 svcerr_decode(transp); in rstat_service()
461 !svc_sendreply(transp, xdr_result, result)) { in rstat_service()
462 svcerr_systemerr(transp); in rstat_service()
464 if (!svc_freeargs(transp, xdr_argument, &argument)) in rstat_service()
/freebsd/usr.sbin/rpc.ypxfrd/
H A Dypxfrd_main.c197 register SVCXPRT *transp = NULL; in main() local
257 transp = svcudp_create(sock); in main()
258 if (transp == NULL) { in main()
264 …if (!svc_register(transp, YPXFRD_FREEBSD_PROG, YPXFRD_FREEBSD_VERS, ypxfrd_freebsd_prog_1, proto))… in main()
271 transp = svctcp_create(sock, 0, 0); in main()
272 if (transp == NULL) { in main()
278 …if (!svc_register(transp, YPXFRD_FREEBSD_PROG, YPXFRD_FREEBSD_VERS, ypxfrd_freebsd_prog_1, proto))… in main()
284 if (transp == (SVCXPRT *)NULL) { in main()
/freebsd/lib/libc/rpc/
H A Dsvc_simple.c243 universal(struct svc_req *rqstp, SVCXPRT *transp) in universal() argument
256 if (svc_sendreply(transp, (xdrproc_t) xdr_void, NULL) == in universal()
269 (strcmp(pl->p_netid, transp->xp_netid) == 0)) { in universal()
279 if (!svc_getargs(transp, pl->p_inproc, xdrbuf)) { in universal()
280 svcerr_decode(transp); in universal()
291 if (!svc_sendreply(transp, pl->p_outproc, outdata)) { in universal()
299 (void)svc_freeargs(transp, pl->p_inproc, xdrbuf); in universal()
/freebsd/usr.sbin/ypbind/
H A Dypbind.c155 ypbindproc_null_2_yp(SVCXPRT *transp, void *argp, CLIENT *clnt) in ypbindproc_null_2_yp() argument
164 ypbindproc_domain_2_yp(SVCXPRT *transp, domainname *argp, CLIENT *clnt) in ypbindproc_domain_2_yp() argument
239 ypbindproc_setdom_2_yp(SVCXPRT *transp, ypbind_setdom *argp, CLIENT *clnt) in ypbindproc_setdom_2_yp() argument
249 fromsin = svc_getcaller(transp); in ypbindproc_setdom_2_yp()
254 svcerr_noprog(transp); in ypbindproc_setdom_2_yp()
262 svcerr_noprog(transp); in ypbindproc_setdom_2_yp()
267 svcerr_noprog(transp); in ypbindproc_setdom_2_yp()
272 svcerr_noprog(transp); in ypbindproc_setdom_2_yp()
290 ypbindprog_2(struct svc_req *rqstp, register SVCXPRT *transp) in ypbindprog_2() argument
299 typedef void *(svc_cb)(SVCXPRT *transp, void *arg, in ypbindprog_2()
[all …]
/freebsd/sys/nlm/
H A Dnlm_prot_svc.c40 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
94 nlm_prog_1(struct svc_req *rqstp, SVCXPRT *transp) in nlm_prog_1() argument
241 if (!nlm_prog_1_freeresult(transp, xdr_result, (caddr_t) &result)) in nlm_prog_1()
248 nlm_prog_3(struct svc_req *rqstp, SVCXPRT *transp) in nlm_prog_3() argument
287 nlm_prog_1(rqstp, transp); in nlm_prog_3()
334 if (!nlm_prog_3_freeresult(transp, xdr_result, (caddr_t) &result)) in nlm_prog_3()
[all …]
/freebsd/usr.sbin/bootparamd/bootparamd/
H A Dmain.c45 SVCXPRT *transp; in main() local
100 transp = svcudp_create(RPC_ANYSOCK); in main()
101 if (transp == NULL) in main()
103 if (!svc_register(transp, BOOTPARAMPROG, BOOTPARAMVERS, bootparamprog_1, IPPROTO_UDP)) in main()
/freebsd/usr.bin/rpcgen/
H A Drpc_svcout.c174 write_netid_register(const char *transp) in write_netid_register() argument
184 f_print(fout, "%s\tnconf = getnetconfigent(\"%s\");\n", sp, transp); in write_netid_register()
186 (void) sprintf(_errbuf, "cannot find %s netid.", transp); in write_netid_register()
201 (void) sprintf(_errbuf, "cannot create %s service.", transp); in write_netid_register()
222 def->def_name, vp->vers_name, transp); in write_netid_register()
235 write_nettype_register(const char *transp) in write_nettype_register() argument
250 def->def_name, vp->vers_name, transp); in write_nettype_register()
253 def->def_name, vp->vers_name, transp); in write_nettype_register()
551 printerr(const char *err, const char *transp) in printerr() argument
553 f_print(fout, "\t\tsvcerr_%s(%s);\n", err, transp); in printerr()
[all …]
H A Drpc_util.h202 void write_inetd_register(const char *transp);
203 void write_netid_register(const char *transp);
204 void write_nettype_register(const char *transp);
/freebsd/usr.sbin/ypserv/
H A Dyp_main.c257 SVCXPRT *transp; in create_service() local
397 transp = svc_dg_create(slep->sle_sock, 0, 0); in create_service()
399 transp = svc_vc_create(slep->sle_sock, RPC_MAXDATASIZE, in create_service()
401 if (transp == NULL) { in create_service()
406 if (!svc_reg(transp, YPPROG, YPOLDVERS, ypprog_1, NULL)) { in create_service()
407 svc_destroy(transp); in create_service()
413 if (!svc_reg(transp, YPPROG, YPVERS, ypprog_2, NULL)) { in create_service()
414 svc_destroy(transp); in create_service()
/freebsd/usr.sbin/rpc.yppasswdd/
H A Dyppasswdd_main.c163 SVCXPRT *transp = NULL; in main() local
300 transp = svcunix_create(RPC_ANYSOCK, 0, 0, sockname); in main()
301 if (transp == NULL) { in main()
305 if (!svc_reg(transp, MASTER_YPPASSWDPROG, MASTER_YPPASSWDVERS, in main()
317 if (transp == (SVCXPRT *)NULL) { in main()
/freebsd/sys/dev/drm2/
H A Ddrm_fb_helper.c591 if (info->var.transp.length > 0) {
592 u32 mask = (1 << info->var.transp.length) - 1;
593 mask <<= info->var.transp.offset;
639 u16 *red, *green, *blue, *transp;
651 transp = cmap->transp;
661 if (transp)
662 htransp = *transp++;
701 depth = (var->transp.length > 0) ? 32 : 24;
716 var->transp.length = 0;
717 var->transp.offset = 0;
[all …]
/freebsd/usr.sbin/rpc.lockd/
H A Dlockd.c728 SVCXPRT *transp = NULL; in complete_service() local
761 transp = svc_tli_create(fd, nconf, NULL, in complete_service()
764 if (transp != (SVCXPRT *) NULL) { in complete_service()
765 if (!svc_reg(transp, NLM_PROG, NLM_SM, nlm_prog_0, in complete_service()
771 if (!svc_reg(transp, NLM_PROG, NLM_VERS, nlm_prog_1, in complete_service()
777 if (!svc_reg(transp, NLM_PROG, NLM_VERSX, nlm_prog_3, in complete_service()
783 if (!svc_reg(transp, NLM_PROG, NLM_VERS4, nlm_prog_4, in complete_service()

12