| /freebsd/sys/fs/p9fs/ |
| H A D | p9_client.c | 69 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 D | p9_client.h | 96 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 D | p9fs_subr.c | 73 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 …]
|
| /freebsd/usr.sbin/rpc.lockd/ |
| H A D | test.c | 11 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/crypto/krb5/src/lib/kadm5/clnt/ |
| H A D | client_rpc.c | 17 create_principal_2(cprinc_arg *argp, generic_ret *res, CLIENT *clnt) in create_principal_2() argument 19 return clnt_call(clnt, CREATE_PRINCIPAL, in create_principal_2() 25 create_principal3_2(cprinc3_arg *argp, generic_ret *res, CLIENT *clnt) in create_principal3_2() argument 27 return clnt_call(clnt, CREATE_PRINCIPAL3, in create_principal3_2() 33 delete_principal_2(dprinc_arg *argp, generic_ret *res, CLIENT *clnt) in delete_principal_2() argument 35 return clnt_call(clnt, DELETE_PRINCIPAL, in delete_principal_2() 41 modify_principal_2(mprinc_arg *argp, generic_ret *res, CLIENT *clnt) in modify_principal_2() argument 43 return clnt_call(clnt, MODIFY_PRINCIPAL, in modify_principal_2() 49 rename_principal_2(rprinc_arg *argp, generic_ret *res, CLIENT *clnt) in rename_principal_2() argument 51 return clnt_call(clnt, RENAME_PRINCIPAL, in rename_principal_2() [all …]
|
| H A D | client_principal.c | 19 #define eret() do { clnt_perror(handle->clnt, "null ret"); return KADM5_RPC_ERROR; } while (0) 57 if (create_principal_2(&arg, &r, handle->clnt)) in kadm5_create_principal() 99 if (create_principal3_2(&arg, &r, handle->clnt)) in kadm5_create_principal_3() 117 if (delete_principal_2(&arg, &r, handle->clnt)) in kadm5_delete_principal() 151 if (modify_principal_2(&arg, &r, handle->clnt)) in kadm5_modify_principal() 173 if (get_principal_2(&arg, &r, handle->clnt)) in kadm5_get_principal() 196 if (get_princs_2(&arg, &r, handle->clnt)) in kadm5_get_principals() 224 if (rename_principal_2(&arg, &r, handle->clnt)) in kadm5_rename_principal() 245 if (chpass_principal_2(&arg, &r, handle->clnt)) in kadm5_chpass_principal() 271 if (chpass_principal3_2(&arg, &r, handle->clnt)) in kadm5_chpass_principal_3() [all …]
|
| H A D | client_init.c | 158 if (handle->clnt != NULL && handle->clnt->cl_auth != NULL) in free_handle() 159 AUTH_DESTROY(handle->clnt->cl_auth); in free_handle() 160 if (handle->clnt != NULL) in free_handle() 161 clnt_destroy(handle->clnt); in free_handle() 210 handle->clnt = 0; in init_any() 282 handle->clnt = clnttcp_create(NULL, rpc_prog, rpc_vers, &fd, 0, 0); in init_any() 283 if (handle->clnt == NULL) { in init_any() 294 (void)clnt_control(handle->clnt, CLSET_TIMEOUT, &timeout); in init_any() 297 handle->lhandle->clnt = handle->clnt; in init_any() 320 if (init_2(&handle->api_version, &r, handle->clnt)) { in init_any() [all …]
|
| H A D | clnt_policy.c | 32 if (create_policy_2(&arg, &r, handle->clnt)) in kadm5_create_policy() 52 if (delete_policy_2(&arg, &r, handle->clnt)) in kadm5_delete_policy() 74 if (modify_policy_2(&arg, &r, handle->clnt)) in kadm5_modify_policy() 97 if (get_policy_2(&arg, &r, handle->clnt)) in kadm5_get_policy() 119 if (get_pols_2(&arg, &r, handle->clnt)) in kadm5_get_policies()
|
| /freebsd/sys/nlm/ |
| H A D | nlm_prot_clnt.c | 17 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/crypto/krb5/src/lib/rpc/unit-test/ |
| H A D | client.c | 27 CLIENT *clnt; member 56 CLIENT *clnt; in main() local 138 clnt = clnttcp_create(&sin, RPC_TEST_PROG, RPC_TEST_VERS_1, &sock, 0, in main() 143 clnt = clntudp_create(&sin, RPC_TEST_PROG, RPC_TEST_VERS_1, tv, in main() 146 if (clnt == NULL) { in main() 151 clnt->cl_auth = auth_gssapi_create_default(clnt, target); in main() 152 if (clnt->cl_auth == NULL) { in main() 164 echo_resp = rpc_test_echo_1(&echo_arg, clnt); in main() 167 clnt_sperror(clnt, "")); in main() 185 AUTH_PRIVATE(clnt->cl_auth)->seq_num++; in main() [all …]
|
| /freebsd/contrib/lib9p/pytest/ |
| H A D | client.py | 56 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 D | ypxfr_misc.c | 150 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 D | ypxfrd_getmap.c | 105 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 D | ypxfr_getmap.c | 64 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()
|
| /freebsd/usr.sbin/rpc.statd/ |
| H A D | test.c | 11 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 D | ypclnt_passwd.c | 69 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 D | yp_ping.c | 144 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/contrib/netbsd-tests/lib/libc/rpc/ |
| H A D | t_rpc.c | 67 CLIENT *clnt; in onehost() local 81 if ((clnt = clnt_create_timed(host, RPCBPROG, RPCBVERS, transp, in onehost() 88 if ((clnt = clnt_create(host, RPCBPROG, RPCBVERS, transp)) == NULL) in onehost() 95 if (clnt_call(clnt, RPCBPROC_NULL, (xdrproc_t)xdr_void, NULL, in onehost() 99 if (clnt_call(clnt, RPCBPROC_NULL, xdr_void, NULL, xdr_void, NULL, tv) in onehost() 102 ERRX(, "clnt_call (%s)", clnt_sperror(clnt, "")); in onehost() 103 clnt_control(clnt, CLGET_SVC_ADDR, (char *) &addr); in onehost() 152 CLIENT *clnt; in rawtest() local 168 clnt = clnt_raw_create(PROGNUM, VERSNUM); in rawtest() 169 if (clnt == NULL) in rawtest() [all …]
|
| /freebsd/lib/libc/rpc/ |
| H A D | clnt_generic.c | 93 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 D | crypt_client.c | 47 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()
|
| /freebsd/crypto/krb5/src/kprop/ |
| H A D | kpropd_rpc.c | 19 iprop_null_1(void *argp, CLIENT *clnt) in iprop_null_1() argument 24 if (clnt_call (clnt, IPROP_NULL, in iprop_null_1() 34 iprop_get_updates_1(kdb_last_t *argp, CLIENT *clnt) in iprop_get_updates_1() argument 39 if (clnt_call (clnt, IPROP_GET_UPDATES, in iprop_get_updates_1() 49 iprop_full_resync_1(void *argp, CLIENT *clnt) in iprop_full_resync_1() argument 54 if (clnt_call (clnt, IPROP_FULL_RESYNC, in iprop_full_resync_1()
|
| /freebsd/contrib/netbsd-tests/net/net/ |
| H A D | t_unix.c | 144 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 D | t_tcp.c | 76 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 D | rpcsec_gss.h | 151 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/crypto/krb5/src/lib/rpc/ |
| H A D | auth_gssapi.c | 63 CLIENT *clnt; member 83 AUTH *auth_gssapi_create_default(CLIENT *clnt, char *service_name) in auth_gssapi_create_default() argument 103 auth = auth_gssapi_create(clnt, in auth_gssapi_create_default() 128 CLIENT *clnt, in auth_gssapi_create() argument 165 save_auth = clnt->cl_auth; in auth_gssapi_create() 194 AUTH_PRIVATE(auth)->clnt = clnt; in auth_gssapi_create() 198 clnt->cl_auth = auth; in auth_gssapi_create() 226 if (clnt_control(clnt, CLGET_LOCAL_ADDR, &laddr) == FALSE) { in auth_gssapi_create() 230 if (clnt_control(clnt, CLGET_SERVER_ADDR, &raddr) == FALSE) { in auth_gssapi_create() 288 callstat = clnt_call(clnt, init_func, in auth_gssapi_create() [all …]
|