Home
last modified time | relevance | path

Searched refs:clnt (Results 1 – 25 of 42) sorted by relevance

12

/freebsd/sys/fs/p9fs/
H A Dp9_client.c69 p9_is_proto_dotl(struct p9_client *clnt) in p9_is_proto_dotl() argument
72 return (clnt->proto_version == p9_proto_2000L); in p9_is_proto_dotl()
76 p9_is_proto_dotu(struct p9_client *clnt) in p9_is_proto_dotu() argument
79 return (clnt->proto_version == p9_proto_2000u); in p9_is_proto_dotu()
84 p9_parse_opts(struct mount *mp, struct p9_client *clnt) in p9_parse_opts() argument
97 clnt->proto_version = p9_proto_2000L; in p9_parse_opts()
98 clnt->msize = 8192; in p9_parse_opts()
101 clnt->ops = p9_get_trans_by_name(trans); in p9_parse_opts()
133 p9_free_req(struct p9_client *clnt, struct p9_req_t *req) in p9_free_req() argument
138 p9_tag_destroy(clnt, req->tc->tag); in p9_free_req()
[all …]
H A Dp9_client.h96 struct p9_client *clnt; /* the instatntiating 9P client */ member
121 void p9_client_destroy(struct p9_client *clnt);
122 struct p9_fid *p9_client_attach(struct p9_client *clnt, struct p9_fid *fid,
131 struct p9_fid *p9_fid_create(struct p9_client *clnt);
133 uint16_t p9_tag_create(struct p9_client *clnt);
134 void p9_tag_destroy(struct p9_client *clnt, uint16_t tag);
136 int p9_client_version(struct p9_client *clnt);
144 int p9_dirent_read(struct p9_client *clnt, char *buf, int start, int len,
147 int p9_client_statread(struct p9_client *clnt, char *data, size_t len, struct p9_wstat *st);
148 int p9_is_proto_dotu(struct p9_client *clnt);
[all …]
H A Dp9fs_subr.c73 vses->clnt = p9_client_create(mp, error, virtmp->mount_tag); in p9fs_init_session()
75 if (vses->clnt == NULL) { in p9fs_init_session()
83 if (p9_is_proto_dotl(vses->clnt)) in p9fs_init_session()
85 else if (p9_is_proto_dotu(vses->clnt)) in p9fs_init_session()
106 fid = p9_client_attach(vses->clnt, NULL, vses->uname, P9_NONUNAME, in p9fs_init_session()
125 p9_client_destroy(vses->clnt); in p9fs_init_session()
150 p9_client_begin_disconnect(vses->clnt); in p9fs_prepare_to_close()
164 p9_client_disconnect(vses->clnt); in p9fs_complete_close()
180 p9_client_destroy(vses->clnt); in p9fs_close_session()
335 p9fs_get_fid(struct p9_client *clnt, struct p9fs_node *np, struct ucred *cred, in p9fs_get_fid() argument
[all …]
H A Dp9fs_vfsops.c181 vses->clnt->trans_status = P9FS_CONNECT; in p9fs_unmount()
505 struct p9_client *clnt; in p9fs_root() local
511 clnt = vmp->p9fs_session.clnt; in p9fs_root()
516 vfid = p9fs_get_fid(clnt, np, curthread->td_ucred, VFID, -1, &error); in p9fs_root()
523 if (vfid == NULL && clnt->trans_status == P9FS_BEGIN_DISCONNECT) in p9fs_root()
546 struct p9_client *clnt; in p9fs_statfs() local
553 clnt = vmp->p9fs_session.clnt; in p9fs_statfs()
556 vfid = p9fs_get_fid(clnt, np, curthread->td_ucred, VFID, -1, &error); in p9fs_statfs()
/freebsd/usr.sbin/rpc.lockd/
H A Dtest.c11 nlm_test_1(argp, clnt) in nlm_test_1() argument
13 CLIENT *clnt;
18 …if (clnt_call(clnt, NLM_TEST, xdr_nlm_testargs, argp, xdr_nlm_testres, &res, TIMEOUT) != RPC_SUCCE…
26 nlm_lock_1(argp, clnt) in nlm_lock_1() argument
28 CLIENT *clnt;
34 …if (st = clnt_call(clnt, NLM_LOCK, xdr_nlm_lockargs, argp, xdr_nlm_res, &res, TIMEOUT) != RPC_SUCC…
36 clnt_perror(clnt, "humbug");
44 nlm_cancel_1(argp, clnt) in nlm_cancel_1() argument
46 CLIENT *clnt;
51 …if (clnt_call(clnt, NLM_CANCEL, xdr_nlm_cancargs, argp, xdr_nlm_res, &res, TIMEOUT) != RPC_SUCCESS…
[all …]
/freebsd/sys/nlm/
H A Dnlm_prot_clnt.c17 nlm_sm_notify_0(struct nlm_sm_status *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext… in nlm_sm_notify_0() argument
19 return (CLNT_CALL_EXT(clnt, ext, NLM_SM_NOTIFY, in nlm_sm_notify_0()
26 nlm_test_1(struct nlm_testargs *argp, nlm_testres *clnt_res, CLIENT *clnt, struct rpc_callextra *ex… in nlm_test_1() argument
28 return (CLNT_CALL_EXT(clnt, ext, NLM_TEST, in nlm_test_1()
35 nlm_lock_1(struct nlm_lockargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, s… in nlm_lock_1() argument
37 return (CLNT_CALL_EXT(clnt, ext, NLM_LOCK, in nlm_lock_1()
44 nlm_cancel_1(struct nlm_cancargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext,… in nlm_cancel_1() argument
46 return (CLNT_CALL_EXT(clnt, ext, NLM_CANCEL, in nlm_cancel_1()
53 nlm_unlock_1(struct nlm_unlockargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ex… in nlm_unlock_1() argument
55 return (CLNT_CALL_EXT(clnt, ext, NLM_UNLOCK, in nlm_unlock_1()
[all …]
/freebsd/contrib/lib9p/pytest/
H A Dclient.py56 clnt = self.mkclient()
57 pair = [clnt, None]
60 clnt = pair[0]
61 if not clnt.is_connected():
62 clnt.connect()
75 clnt = pair[0]
76 if clnt.is_connected():
77 clnt.shutdown()
88 clnt = pair[0]
94 if clnt.proto > protocol.plain:
[all …]
/freebsd/libexec/ypxfr/
H A Dypxfr_misc.c150 CLIENT *clnt; in ypxfr_get_master() local
154 if ((clnt = clnt_create(source,YPPROG,YPVERS,"udp")) == NULL) { in ypxfr_get_master()
163 if ((resp = ypproc_master_2(&req, clnt)) == NULL) { in ypxfr_get_master()
164 yp_error("%s",clnt_sperror(clnt,"YPPROC_MASTER \ in ypxfr_get_master()
166 clnt_destroy(clnt); in ypxfr_get_master()
170 clnt_destroy(clnt); in ypxfr_get_master()
215 CLIENT *clnt; in ypxfr_get_order() local
219 if ((clnt = clnt_create(source,YPPROG,YPVERS,"udp")) == NULL) { in ypxfr_get_order()
227 if ((resp = ypproc_order_2(&req, clnt)) == NULL) { in ypxfr_get_order()
228 yp_error("%s", clnt_sperror(clnt, "YPPROC_ORDER \ in ypxfr_get_order()
[all …]
H A Dypxfrd_getmap.c105 CLIENT *clnt; in ypxfrd_get_map() local
121 if ((clnt = clnt_create(host, YPXFRD_FREEBSD_PROG, in ypxfrd_get_map()
127 clnt_destroy(clnt); in ypxfrd_get_map()
132 if (clnt_call(clnt,YPXFRD_GETMAP, in ypxfrd_get_map()
136 yp_error("%s", clnt_sperror(clnt,"call to rpc.ypxfrd failed")); in ypxfrd_get_map()
141 clnt_destroy(clnt); in ypxfrd_get_map()
H A Dypxfr_getmap.c64 CLIENT *clnt; in ypxfr_get_map() local
73 if ((clnt = clnt_create(host, YPPROG, YPVERS, "tcp")) == NULL) { in ypxfr_get_map()
85 (void)clnt_call(clnt, YPPROC_ALL, (xdrproc_t)xdr_ypreq_nokey, &req, in ypxfr_get_map()
88 clnt_destroy(clnt); in ypxfr_get_map()
H A Dypxfr_main.c69 CLIENT *clnt; in ypxfr_exit() local
86 if ((clnt = clntudp_create(&ypxfr_callback_addr, ypxfr_prognum, in ypxfr_exit()
95 if (yppushproc_xfrresp_1(&ypxfr_resp, clnt) == NULL) { in ypxfr_exit()
96 yp_error("%s", clnt_sperror(clnt, "callback failed")); in ypxfr_exit()
97 clnt_destroy(clnt); in ypxfr_exit()
100 clnt_destroy(clnt); in ypxfr_exit()
/freebsd/usr.sbin/rpc.statd/
H A Dtest.c11 sm_stat_1(argp, clnt) in sm_stat_1() argument
13 CLIENT *clnt;
18 if (clnt_call(clnt, SM_STAT, (xdrproc_t)xdr_sm_name, argp,
27 sm_mon_1(argp, clnt) in sm_mon_1() argument
29 CLIENT *clnt;
34 if (clnt_call(clnt, SM_MON, (xdrproc_t)xdr_mon, argp,
43 sm_unmon_1(argp, clnt) in sm_unmon_1() argument
45 CLIENT *clnt;
50 if (clnt_call(clnt, SM_UNMON, (xdrproc_t)xdr_mon_id, argp,
59 sm_unmon_all_1(argp, clnt) in sm_unmon_all_1() argument
[all …]
/freebsd/lib/libypclnt/
H A Dypclnt_passwd.c69 CLIENT *clnt = NULL; in ypclnt_havepasswdd() local
96 if ((clnt = clnt_tp_create(NULL, MASTER_YPPASSWDPROG, in ypclnt_havepasswdd()
107 if (clnt != NULL) { in ypclnt_havepasswdd()
108 clnt_destroy(clnt); in ypclnt_havepasswdd()
143 CLIENT *clnt = NULL; in yppasswd_local() local
179 if ((clnt = clnt_tp_create(NULL, MASTER_YPPASSWDPROG, in yppasswd_local()
187 clnt->cl_auth = authunix_create_default(); in yppasswd_local()
190 result = yppasswdproc_update_master_1(&yppwd, clnt); in yppasswd_local()
193 clnt_geterr(clnt, &rpcerr); in yppasswd_local()
197 clnt_sperror(clnt, ypclnt->server)); in yppasswd_local()
[all …]
/freebsd/usr.sbin/ypbind/
H A Dyp_ping.c144 ypproc_domain_nonack_2_send(domainname *argp, CLIENT *clnt) in ypproc_domain_nonack_2_send() argument
150 if (clnt_call(clnt, YPPROC_DOMAIN_NONACK, in ypproc_domain_nonack_2_send()
163 ypproc_domain_nonack_2_recv(domainname *argp, CLIENT *clnt) in ypproc_domain_nonack_2_recv() argument
169 if (clnt_call(clnt, YPPROC_DOMAIN_NONACK, in ypproc_domain_nonack_2_recv()
217 CLIENT *clnt; in __yp_ping() local
250 clnt = clntudp_create(any, YPPROG, YPVERS, tv, &sock); in __yp_ping()
251 if (clnt == NULL) { in __yp_ping()
259 clnt->cl_auth = authunix_create_default(); in __yp_ping()
262 clnt_control(clnt, CLSET_TIMEOUT, (char *)&tv); in __yp_ping()
264 clnt_control(clnt, CLSET_ASYNC, (char *)&async); in __yp_ping()
[all …]
/freebsd/lib/librpcsvc/
H A Dyp_update.c66 CLIENT *clnt; in yp_update() local
80 if ((clnt = clnt_create(master, YPU_PROG, YPU_VERS, "tcp")) == NULL) in yp_update()
94 clnt_destroy(clnt); in yp_update()
102 if ((clnt->cl_auth = (AUTH *)authdes_create(netname, WINDOW, NULL, in yp_update()
104 clnt_destroy(clnt); in yp_update()
129 if ((rval = clnt_call(clnt, YPU_CHANGE, in yp_update()
146 if ((rval = clnt_call(clnt, YPU_INSERT, in yp_update()
161 if ((rval = clnt_call(clnt, YPU_DELETE, in yp_update()
178 if ((rval = clnt_call(clnt, YPU_STORE, in yp_update()
194 auth_destroy(clnt->cl_auth); in yp_update()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/rpc/
H A Dt_rpc.c66 CLIENT *clnt; in onehost() local
80 if ((clnt = clnt_create_timed(host, RPCBPROG, RPCBVERS, transp, in onehost()
87 if ((clnt = clnt_create(host, RPCBPROG, RPCBVERS, transp)) == NULL) in onehost()
94 if (clnt_call(clnt, RPCBPROC_NULL, (xdrproc_t)xdr_void, NULL, in onehost()
98 if (clnt_call(clnt, RPCBPROC_NULL, xdr_void, NULL, xdr_void, NULL, tv) in onehost()
101 ERRX(, "clnt_call (%s)", clnt_sperror(clnt, "")); in onehost()
102 clnt_control(clnt, CLGET_SVC_ADDR, (char *) &addr); in onehost()
151 CLIENT *clnt; in rawtest() local
167 clnt = clnt_raw_create(PROGNUM, VERSNUM); in rawtest()
168 if (clnt == NULL) in rawtest()
[all …]
/freebsd/lib/libc/rpc/
H A Dclnt_generic.c93 CLIENT *clnt; in clnt_create_vers_timed() local
98 clnt = clnt_create_timed(hostname, prog, vers_high, nettype, tp); in clnt_create_vers_timed()
99 if (clnt == NULL) { in clnt_create_vers_timed()
104 rpc_stat = clnt_call(clnt, NULLPROC, (xdrproc_t)xdr_void, in clnt_create_vers_timed()
108 return (clnt); in clnt_create_vers_timed()
113 clnt_geterr(clnt, &rpcerr); in clnt_create_vers_timed()
125 CLNT_CONTROL(clnt, CLSET_VERS, (char *)&vers_high); in clnt_create_vers_timed()
126 rpc_stat = clnt_call(clnt, NULLPROC, (xdrproc_t)xdr_void, in clnt_create_vers_timed()
131 return (clnt); in clnt_create_vers_timed()
134 clnt_geterr(clnt, &rpcerr); in clnt_create_vers_timed()
[all …]
H A Dcrypt_client.c47 CLIENT *clnt; in _des_crypt_call() local
66 clnt = clnt_tp_create(NULL, CRYPT_PROG, CRYPT_VERS, nconf); in _des_crypt_call()
67 if (clnt == (CLIENT *) NULL) { in _des_crypt_call()
80 result_1 = des_crypt_1(&des_crypt_1_arg, clnt); in _des_crypt_call()
82 clnt_destroy(clnt); in _des_crypt_call()
94 clnt_freeres(clnt, (xdrproc_t)xdr_desresp, result_1); in _des_crypt_call()
95 clnt_destroy(clnt); in _des_crypt_call()
H A Dauth_time.c238 CLIENT *clnt; /* Client handle */ in __rpc_get_time_offset() local
337 clnt = clnttcp_create(&sin, RPCBPROG, RPCBVERS, &s, 0, 0); in __rpc_get_time_offset()
338 if (clnt == NULL) { in __rpc_get_time_offset()
348 status = clnt_call(clnt, RPCBPROC_GETTIME, (xdrproc_t)xdr_void, NULL, in __rpc_get_time_offset()
361 if (clnt != NULL) { in __rpc_get_time_offset()
362 clnt_destroy(clnt); in __rpc_get_time_offset()
363 clnt = NULL; in __rpc_get_time_offset()
467 if (clnt != NULL) in __rpc_get_time_offset()
468 clnt_destroy(clnt); in __rpc_get_time_offset()
H A Dkey_call.c417 CLIENT *clnt; in key_call() local
440 clnt = getkeyserv_handle(2); /* talk to version 2 */ in key_call()
442 clnt = getkeyserv_handle(1); /* talk to version 1 */ in key_call()
444 if (clnt == NULL) { in key_call()
451 if (clnt_call(clnt, proc, xdr_arg, arg, xdr_rslt, rslt, in key_call()
/freebsd/contrib/netbsd-tests/net/net/
H A Dt_unix.c144 int srvr = -1, clnt = -1, acpt = -1; in test() local
182 clnt = socket(AF_UNIX, SOCK_STREAM, 0); in test()
183 if (clnt == -1) in test()
186 if (connect(clnt, (const struct sockaddr *)sun, sl) == -1) in test()
190 if (close(clnt) == -1) in test()
192 clnt = -1; in test()
243 if (clnt != -1 && !closeit) in test()
244 (void)close(clnt); in test()
254 if (clnt != -1 && !closeit) in test()
255 (void)close(clnt); in test()
H A Dt_tcp.c76 int srvr = -1, clnt = -1, as = -1; in paccept_block() local
107 clnt = socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0); in paccept_block()
108 if (clnt == -1) in paccept_block()
112 ok = connect(clnt, (struct sockaddr *) &ba, addrlen); in paccept_block()
116 ok = connect(clnt, (struct sockaddr *) &ba, addrlen); in paccept_block()
166 close(clnt); in paccept_block()
/freebsd/sys/rpc/
H A Drpcsec_gss.h151 typedef AUTH *rpc_gss_secfind_ftype(CLIENT *clnt, struct ucred *cred,
154 typedef void rpc_gss_secpurge_ftype(CLIENT *clnt);
155 typedef AUTH *rpc_gss_seccreate_ftype(CLIENT *clnt, struct ucred *cred,
217 rpc_gss_secfind_call(CLIENT *clnt, struct ucred *cred, const char *principal, in rpc_gss_secfind_call() argument
223 ret = (*rpc_gss_entries.rpc_gss_secfind)(clnt, cred, principal, in rpc_gss_secfind_call()
229 rpc_gss_secpurge_call(CLIENT *clnt) in rpc_gss_secpurge_call() argument
233 (*rpc_gss_entries.rpc_gss_secpurge)(clnt); in rpc_gss_secpurge_call()
237 rpc_gss_seccreate_call(CLIENT *clnt, struct ucred *cred, in rpc_gss_seccreate_call() argument
245 ret = (*rpc_gss_entries.rpc_gss_seccreate)(clnt, cred, in rpc_gss_seccreate_call()
435 AUTH *rpc_gss_secfind(CLIENT *clnt, struct ucred *cred,
[all …]
/freebsd/usr.sbin/bootparamd/callbootd/
H A Dcallbootd.c72 CLIENT *clnt = NULL; /* Silence warnings */ in main() local
87 clnt = clnt_create(server,BOOTPARAMPROG, BOOTPARAMVERS, "udp"); in main()
88 if ( clnt == NULL ) in main()
101 whoami_res = bootparamproc_whoami_1(&whoami_arg, clnt); in main()
124 getfile_res = bootparamproc_getfile_1(&getfile_arg,clnt); in main()
/freebsd/usr.sbin/yppush/
H A Dyppush_main.c284 CLIENT *clnt; in yppush_send_xfr() local
319 if ((clnt = clnt_create(job->server, YPPROG, YPVERS, "udp")) == NULL) { in yppush_send_xfr()
340 if (clnt_control(clnt, CLSET_TIMEOUT, (char *)&timeout) == FALSE) in yppush_send_xfr()
344 if (ypproc_xfr_2(&req, clnt) == NULL) { in yppush_send_xfr()
345 clnt_geterr(clnt, &err); in yppush_send_xfr()
348 yp_error("%s: %s", job->server, clnt_sperror(clnt, in yppush_send_xfr()
351 clnt_destroy(clnt); in yppush_send_xfr()
356 clnt_destroy(clnt); in yppush_send_xfr()

12