/illumos-gate/usr/src/cmd/keyserv/ |
H A D | key_generic.c | 82 struct netconfig *nconf; local 94 while (nconf = __rpc_getconf(handle)) { 95 if (strcmp(nconf->nc_protofmly, NC_LOOPBACK)) 98 if (strcmp(l->xprt->xp_netid, nconf->nc_netid) == 0) { 100 (void) rpcb_unset(prognum, versnum, nconf); 102 dispatch, nconf) == FALSE) 105 prognum, versnum, nconf->nc_netid); 114 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) < 0) { 117 nconf->nc_netid, t_errlist[t_errno]); 130 nconf [all...] |
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | getservbyname_r.c | 62 struct netconfig *nconf; local 67 if ((nconf = __rpc_getconfip("udp")) == NULL && 68 (nconf = __rpc_getconfip("tcp")) == NULL) { 80 * We pass in nconf and let the implementation of the long-named func 83 neterr = _get_hostserv_inetnetdir_byname(nconf, &nssin, &nssout); 85 (void) freenetconfigent(nconf); 96 struct netconfig *nconf; local 101 if ((nconf = __rpc_getconfip("udp")) == NULL && 102 (nconf = __rpc_getconfip("tcp")) == NULL) { 114 * We pass in nconf an [all...] |
/illumos-gate/usr/src/lib/libnsl/yp/ |
H A D | yp_rsvd.c | 43 struct netconfig *nconf; local 59 if ((nconf = getnetconfigent((void *) nt)) == NULL) 62 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) == -1) { 63 freenetconfigent(nconf); 68 (void) netdir_options(nconf, ND_SET_RESERVEDPORT, fd, NULL); 72 freenetconfigent(nconf); 78 if (!rpcb_getaddr(prog, vers, nconf, svcaddr, hostname)) { 81 freenetconfigent(nconf); 85 if ((clnt = clnt_tli_create(fd, nconf, svcaddr, 93 freenetconfigent(nconf); [all...] |
/illumos-gate/usr/src/cmd/gss/gssd/ |
H A D | gssd_generic.c | 62 struct netconfig *nconf; local 74 while (nconf = __rpc_getconf(net)) { 75 if ((strcmp(nconf->nc_protofmly, NC_LOOPBACK)) || 76 (nconf->nc_semantics != NC_TPI_COTS_ORD)) 79 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) < 0) { 82 nconf->nc_netid, t_errlist[t_errno]); 96 nconf->nc_netid); 111 if (!netdir_getbyname(nconf, &ns, &nas)) { 122 servname, nconf->nc_netid); 127 xprt = svc_tli_create(fd, nconf, bind_add [all...] |
H A D | gssd_handle.c | 65 struct netconfig *nconf; local 88 while (nconf = getnetconfig(localhandle)) { 89 if (strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) { 90 if (nconf->nc_semantics == NC_TPI_COTS_ORD) { 92 GSSPROG, GSSVERS, nconf); 98 tpconf = nconf;
|
/illumos-gate/usr/src/cmd/krb5/kwarn/ |
H A D | kwarnd_generic.c | 40 struct netconfig *nconf; local 52 while (nconf = __rpc_getconf(net)) { 53 if ((strcmp(nconf->nc_protofmly, NC_LOOPBACK)) || 54 (nconf->nc_semantics != NC_TPI_COTS_ORD)) 57 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) < 0) { 60 nconf->nc_netid, t_errlist[t_errno]); 74 nconf->nc_netid); 89 if (!netdir_getbyname(nconf, &ns, &nas)) { 100 servname, nconf->nc_netid); 105 xprt = svc_tli_create(fd, nconf, bind_add [all...] |
H A D | kwarnd_handle.c | 59 struct netconfig *nconf; local 87 while (nconf = getnetconfig(localhandle)) { 88 if (strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) { 89 if (nconf->nc_semantics == NC_TPI_COTS_ORD) { 91 KWARNPROG, KWARNVERS, nconf); 97 tpconf = nconf;
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | rpc_generic.c | 206 struct netconfig *nconf; local 211 while (nconf = getnetconfig(confighandle)) { 212 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) { 213 if (strcmp(nconf->nc_proto, NC_TCP) == 0) { 214 netid_tcp = strdup(nconf->nc_netid); 228 if (strcmp(nconf->nc_proto, NC_UDP) == 0) { 229 netid_udp = strdup(nconf->nc_netid); 311 struct netconfig *nconf; local 318 nconf = getnetpath(handle->nhandle); 320 nconf 423 struct netconfig *nconf, *newnconf = NULL; local [all...] |
H A D | svc_generic.c | 116 struct netconfig *nconf; local 136 while (nconf = __rpc_getconf(handle)) { 139 if (strcmp(l->xprt->xp_netid, nconf->nc_netid) == 0) { 141 (void) rpcb_unset(prognum, versnum, nconf); 143 dispatch, nconf) == FALSE) 147 prognum, versnum, nconf->nc_netid); 156 xprt = svc_tp_create(dispatch, prognum, versnum, nconf); 178 * It tries to create a server for "nconf" and registers the service 183 const rpcvers_t versnum, const struct netconfig *nconf) 188 if (nconf 182 svc_tp_create(void (*dispatch)(), const rpcprog_t prognum, const rpcvers_t versnum, const struct netconfig *nconf) argument 213 svc_tli_create(const int fd, const struct netconfig *nconf, const struct t_bind *bindaddr, const uint_t sendsz, const uint_t recvsz) argument 229 svc_tli_create_common(const int ofd, const struct netconfig *nconf, const struct t_bind *bindaddr, const uint_t sendsz, const uint_t recvsz, boolean_t mlp_flag) argument [all...] |
H A D | rtime_tli.c | 77 struct netconfig *nconf = NULL; local 81 nconf = __rpc_getconfip(timeout == NULL ? "tcp" : "udp"); 82 if (nconf == NULL) 85 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) == -1) { 98 if (netdir_getbyname(nconf, &rpcbind_hs, &nlist)) 101 if (nconf->nc_semantics == NC_TPI_CLTS) { 155 if (nconf) { 156 (void) freenetconfigent(nconf);
|
H A D | pmap_clnt.c | 68 struct netconfig *nconf; local 73 nconf = __rpc_getconfip(protocol == IPPROTO_UDP ? "udp" : "tcp"); 74 if (!nconf) 77 na = uaddr2taddr(nconf, buf); 79 freenetconfigent(nconf); 82 rslt = rpcb_set(program, version, nconf, na); 85 freenetconfigent(nconf); 96 struct netconfig *nconf; local 100 nconf = __rpc_getconfip("udp"); 101 if (nconf) { [all...] |
H A D | rpcb_clnt.c | 287 getclnthandle(char *host, struct netconfig *nconf, char **targaddr) argument 289 return (_getclnthandle_timed(host, nconf, targaddr, NULL)); 299 _getclnthandle_timed(char *host, struct netconfig *nconf, char **targaddr, argument 317 ad_cache = check_cache(host, nconf->nc_netid); 320 client = _clnt_tli_create_timed(RPC_ANYFD, nconf, addr, 374 if ((neterr = netdir_getbyname(nconf, &rpcbind_hs, &nas)) != 0) { 385 client = _clnt_tli_create_timed(RPC_ANYFD, nconf, addr, RPCBPROG, 392 tmpaddr = targaddr ? taddr2uaddr(nconf, addr) : NULL; 393 add_cache(host, nconf->nc_netid, addr, tmpaddr); 415 struct netconfig *nconf, *tmpncon local 450 rpcb_set(const rpcprog_t program, const rpcvers_t version, const struct netconfig *nconf, const struct netbuf *address) argument 503 rpcb_unset(const rpcprog_t program, const rpcvers_t version, const struct netconfig *nconf) argument 536 got_entry(rpcb_entry_list_ptr relp, struct netconfig *nconf) argument 634 __rpcb_findaddr_timed(rpcprog_t program, rpcvers_t version, struct netconfig *nconf, char *host, CLIENT **clpp, struct timeval *tp) argument 1073 rpcb_getaddr(const rpcprog_t program, const rpcvers_t version, const struct netconfig *nconf, struct netbuf *address, const char *host) argument 1102 rpcb_getmaps(const struct netconfig *nconf, const char *host) argument 1155 rpcb_rmtcall(const struct netconfig *nconf, const char *host, const rpcprog_t prog, const rpcvers_t vers, const rpcproc_t proc, const xdrproc_t xdrargs, const caddr_t argsp, const xdrproc_t xdrres, const caddr_t resp, const struct timeval tout, struct netbuf *addr_ptr) argument 1225 struct netconfig *nconf; local 1278 rpcb_taddr2uaddr(struct netconfig *nconf, struct netbuf *taddr) argument 1308 rpcb_uaddr2taddr(struct netconfig *nconf, char *uaddr) argument [all...] |
H A D | clnt_generic.c | 179 struct netconfig *nconf; local 228 if ((nconf = __rpc_getconf(handle)) == NULL) { 233 clnt = clnt_tp_create_timed(hostname, prog, vers, nconf, tp); 301 struct netconfig *nconf; local 381 if ((nconf = __rpc_getconf(handle)) == NULL) { 388 if (strcmp(nconf->nc_protofmly, NC_INET) != 0 && 389 strcmp(nconf->nc_protofmly, NC_INET6) != 0) 393 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) < 0) { 402 __rpc_set_mac_options(fd, nconf, prog); 414 if (netdir_getbyname(nconf, 495 clnt_tp_create(const char *hostname, const rpcprog_t prog, const rpcvers_t vers, const struct netconfig *nconf) argument 508 clnt_tp_create_timed(const char *hostname, const rpcprog_t prog, const rpcvers_t vers, const struct netconfig *nconf, const struct timeval *tp) argument 582 clnt_tli_create(const int fd, const struct netconfig *nconf, struct netbuf *svcaddr, const rpcprog_t prog, const rpcvers_t vers, const uint_t sendsz, const uint_t recvsz) argument 600 _clnt_tli_create_timed(int fd, const struct netconfig *nconf, struct netbuf *svcaddr, rpcprog_t prog, rpcvers_t vers, uint_t sendsz, uint_t recvsz, const struct timeval *tp) argument [all...] |
/illumos-gate/usr/src/lib/librdc/common/ |
H A D | netaddrs.c | 218 convert_nconf_to_knconf(struct netconfig *nconf, struct knetconfig *knconf) argument 222 if (stat(nconf->nc_device, &sb) < 0) { 224 nconf->nc_device); 228 printf("lib knconf %x %s %s %x\n", nconf->nc_semantics, 229 nconf->nc_protofmly, nconf->nc_proto, sb.st_rdev); 232 knconf->knc_semantics = nconf->nc_semantics; 233 knconf->knc_protofmly = nconf->nc_protofmly; 234 knconf->knc_proto = nconf->nc_proto; 329 * with version "vers" by using the nconf configuratio 339 get_the_addr(char *hostname, ulong_t prog, ulong_t vers, struct netconfig *nconf, ushort_t port, struct t_info *tinfo, int portmap) argument 530 struct netconfig *nconf = NULL; local [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfs_resolve.c | 74 get_knconf(struct netconfig *nconf) argument 80 if (stat(nconf->nc_device, &stbuf) < 0) { 81 syslog(LOG_ERR, "get_knconf: stat %s: %m", nconf->nc_device); 87 k->knc_semantics = nconf->nc_semantics; 89 len = strlen(nconf->nc_protofmly); 96 bcopy(nconf->nc_protofmly, k->knc_protofmly, len); 98 len = strlen(nconf->nc_proto); 105 bcopy(nconf->nc_proto, k->knc_proto, len); 209 struct netconfig *nconf = NULL; local 218 while (nconf 275 setup_nb_parms(struct netconfig *nconf, struct t_bind *tbind, struct t_info *tinfo, char *hostname, int fd, bool_t direct_to_server, ushort_t port, rpcprog_t prog, rpcvers_t vers, bool_t file_handle) argument 341 get_server_addr(char *hostname, rpcprog_t prog, rpcvers_t vers, struct netconfig *nconf, ushort_t port, struct t_info *tinfo, caddr_t *fhp, bool_t direct_to_server, char *fspath, enum clnt_stat *cstat) argument [all...] |
H A D | nfs_tbind.c | 138 nfslib_transport_open(struct netconfig *nconf) argument 143 if ((nconf == (struct netconfig *)NULL) || 144 (nconf->nc_device == (char *)NULL)) { 152 fd = t_open(nconf->nc_device, O_RDWR, (struct t_info *)NULL); 157 fd = t_open(nconf->nc_device, O_RDWR, 162 nconf->nc_device, t_errno); 211 if (strcmp(nconf->nc_netid, "udp6") == 0) 213 else if (strcmp(nconf->nc_netid, "udp") == 0) 282 nfslib_bindit(struct netconfig *nconf, struct netbuf **addr, argument 295 if ((fd = nfslib_transport_open(nconf)) 528 nfslib_log_tli_error(char *tli_name, int fd, struct netconfig *nconf) argument 647 struct netconfig *nconf; local 764 add_to_poll_list(int fd, struct netconfig *nconf) argument 877 struct netconfig *nconf = &conn_polled[conn_index].nc; local 1214 conn_get(int fd, struct netconfig *nconf, struct conn_ind **connp) argument 1266 discon_get(int fd, struct netconfig *nconf, struct conn_ind **connp) argument 1309 struct netconfig *nconf = &conn_polled[conn_index].nc; local 1487 struct netconfig *nconf = &(connent->nc); local 1641 struct netconfig *nconf; local 1671 struct netconfig *nconf; member in struct:retnconf 1707 set_addrmask(int fd, struct netconfig *nconf, struct netbuf *mask) argument [all...] |
/illumos-gate/usr/src/cmd/rpcbind/ |
H A D | check_bound.c | 67 struct netconfig *nconf; member in struct:fdlist 95 na = uaddr2taddr(fdl->nconf, uaddr); 118 fdl->fd = t_open(fdl->nconf->nc_device, O_RDWR, NULL); 146 add_bndlist(struct netconfig *nconf, struct t_bind *taddr, struct t_bind *baddr) argument 154 newnconf = getnetconfigent(nconf->nc_netid); 164 fdl->nconf = newnconf; 174 if ((fdl->fd = t_open(nconf->nc_device, O_RDWR, &tinfo)) < 0) { 182 nconf->nc_netid, t_errlist[t_errno]); 208 nconf->nc_netid, t_errlist[t_errno]); 238 nconf [all...] |
H A D | rpcbind.c | 213 struct netconfig *nconf; local 320 while ((nconf = getnetconfig(nc_handle)) != NULL) { 321 if (nconf->nc_flag & NC_VISIBLE) 322 init_transport(nconf); 375 struct netconfig *nconf, *np; local 445 nconf = getnetconfigent(np->nc_netid); 447 if (!check_hostserv(nconf, HOST_SELF, "")) 449 if (!check_hostserv(nconf, HOST_SELF_CONNECT, "")) 451 if (!check_hostserv(nconf, HOST_SELF, "rpcbind")) 453 if (!check_hostserv(nconf, HOST_SELF_CONNEC 495 init_transport(struct netconfig *nconf) argument 733 rbllist_add(ulong_t prog, ulong_t vers, struct netconfig *nconf, struct netbuf *addr) argument 976 check_hostserv(struct netconfig *nconf, const char *host, const char *serv) argument [all...] |
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | yp_b_svc.c | 96 struct netconfig *nconf; local 186 struct netconfig *nconf = NULL; local 204 } else if ((nconf = getnetconfigent(netid)) == NULL) { 211 if ((transp = svc_tli_create(0, nconf, NULL, 0, 0)) == NULL) { 216 if (strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) { 221 nconf->nc_netid); 224 if (nconf) 225 freenetconfigent(nconf); 339 while (nconf = __rpc_getconf(nc_handle)) { 347 YPBINDPROG, YPBINDVERS, nconf)) [all...] |
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | nfs_netcfg.c | 48 struct netconfig *nconf; local 62 while (nconf = getnetconfig(nc)) { 80 return_list[(*num_elements)] = strdup(nconf->nc_netid);
|
/illumos-gate/usr/src/cmd/avs/rdc/ |
H A D | sndrd.c | 218 rdc_transport_open(struct netconfig *nconf) argument 223 if ((nconf == (struct netconfig *)NULL) || 224 (nconf->nc_device == (char *)NULL)) { 232 fd = t_open(nconf->nc_device, O_RDWR, (struct t_info *)NULL); 237 fd = t_open(nconf->nc_device, O_RDWR, NULL); 267 if (nconf->nc_semantics == NC_TPI_CLTS) { 335 rdcd_log_tli_error(char *tli_name, int fd, struct netconfig *nconf) argument 346 tli_name, fd, nconf->nc_proto); 350 tli_name, fd, nconf->nc_proto, t_errno); 433 struct netconfig *nconf; local 813 add_to_poll_list(int fd, struct netconfig *nconf) argument 965 conn_get(int fd, struct netconfig *nconf, struct conn_ind **connp) argument 1018 discon_get(int fd, struct netconfig *nconf, struct conn_ind **connp) argument 1061 struct netconfig *nconf = &conn_polled[conn_index].nc; local 1193 struct netconfig *nconf = &(connent->nc); local 1322 struct netconfig *nconf = &conn_polled[conn_index].nc; local 1624 rdcsvc(int fd, struct netbuf addrmask, struct netconfig *nconf) argument 1680 rdcd_bindit(struct netconfig *nconf, struct netbuf **addr, struct nd_hostserv *hs, int backlog) argument 1801 struct netconfig *nconf; local 1849 set_addrmask(int fd, struct netconfig *nconf, struct netbuf *mask) argument [all...] |
/illumos-gate/usr/src/lib/librpcsvc/common/ |
H A D | bindresvport.c | 79 struct netconfig *nconf; local 82 nconf = getnetconfigent(cl->cl_netid); 83 if (nconf == NULL) 85 if ((nconf->nc_semantics != NC_TPI_CLTS) || 86 (strcmp(nconf->nc_protofmly, NC_INET) && 87 strcmp(nconf->nc_protofmly, NC_INET6)) || 88 strcmp(nconf->nc_proto, NC_UDP)) { 89 freenetconfigent(nconf); 92 if (strcmp(nconf->nc_protofmly, NC_INET6) == 0) 94 freenetconfigent(nconf); [all...] |
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | gethostbyname_r.c | 107 struct netconfig *nconf; local 120 if ((nconf = __rpc_getconfip("udp")) == NULL && 121 (nconf = __rpc_getconfip("tcp")) == NULL) { 135 * We pass in nconf and let the implementation of the long-named func 138 neterr = _get_hostserv_inetnetdir_byname(nconf, &nssin, &nssout); 140 (void) freenetconfigent(nconf); 150 struct netconfig *nconf; local 163 if ((nconf = __rpc_getconfip("udp")) == NULL && 164 (nconf = __rpc_getconfip("tcp")) == NULL) { 180 * We pass in nconf an [all...] |
/illumos-gate/usr/src/cmd/rpcsvc/ |
H A D | rstat_main.c | 74 struct netconfig *nconf = NULL; local 83 } else if ((nconf = getnetconfigent(netid)) == NULL) { 88 if ((transp = svc_tli_create(0, nconf, NULL, 0, 0)) == NULL) { 92 if (nconf) 93 freenetconfigent(nconf);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfs4cbd/ |
H A D | nfs4cbd.c | 226 get_uaddr(int fd, struct netconfig *nconf, struct netbuf *nb) argument 235 ua = taddr2uaddr(nconf, nb); 240 nconf->nc_netid); 249 if (netdir_getbyname(nconf, &hs, &nas)) { 256 ua2 = taddr2uaddr(nconf, nas->n_addrs); 261 nconf->nc_netid); 270 if (netdir_options(nconf, ND_MERGEADDR, 0, (char *)&ma)) { 285 nfs4svc(int fd, struct netbuf *addrmask, struct netconfig *nconf, argument 292 ua = get_uaddr(fd, nconf, addr); 297 "available on this transport\n", nconf [all...] |