/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | rpc_generic.c | 204 struct netconfig *nconf; in __rpc_getconfip() local 309 struct netconfig *nconf; in __rpc_getconf() local 316 nconf = getnetpath(handle->nhandle); in __rpc_getconf() 319 if (nconf == NULL) in __rpc_getconf() 327 if (!(nconf->nc_flag & NC_VISIBLE)) in __rpc_getconf() 335 if (!(nconf->nc_flag & NC_VISIBLE)) in __rpc_getconf() 344 if (!(nconf->nc_flag & NC_VISIBLE)) in __rpc_getconf() 368 if (!(nconf->nc_flag & NC_VISIBLE)) in __rpc_getconf() 376 return (nconf); in __rpc_getconf() 458 while (nconf = getnetconfig(hndl)) { in __rpcfd_to_nconf() [all …]
|
H A D | svc_generic.c | 120 struct netconfig *nconf; in svc_create() local 140 while (nconf = __rpc_getconf(handle)) { in svc_create() 147 dispatch, nconf) == FALSE) in svc_create() 220 nconf, bindp)); in svc_tp_create_addr() 231 if (nconf == NULL) { in svc_tp_create_bind() 285 if (nconf == NULL) { in svc_tli_create_common() 326 if (nconf) { in svc_tli_create_common() 470 nconf->nc_netid); in svc_tli_create_common() 476 if (nconf) { in svc_tli_create_common() 561 if (!nconf || !xprt) in svc_tli_create_common() [all …]
|
H A D | pmap_clnt.c | 68 struct netconfig *nconf; in pmap_set() local 74 if (!nconf) in pmap_set() 77 na = uaddr2taddr(nconf, buf); in pmap_set() 79 freenetconfigent(nconf); in pmap_set() 85 freenetconfigent(nconf); in pmap_set() 96 struct netconfig *nconf; in pmap_unset() local 100 nconf = __rpc_getconfip("udp"); in pmap_unset() 101 if (nconf) { in pmap_unset() 103 freenetconfigent(nconf); in pmap_unset() 106 if (nconf) { in pmap_unset() [all …]
|
H A D | clnt_generic.c | 176 struct netconfig *nconf; in clnt_create_timed() local 298 struct netconfig *nconf; in clnt_create_service_timed() local 399 __rpc_set_mac_options(fd, nconf, prog); in clnt_create_service_timed() 492 const struct netconfig *nconf) in clnt_tp_create() argument 513 if (nconf == NULL) { in clnt_tp_create_timed() 546 cl->cl_tp = strdup(nconf->nc_device); in clnt_tp_create_timed() 608 if (nconf == NULL) { in _clnt_tli_create_timed() 621 switch (nconf->nc_semantics) { in _clnt_tli_create_timed() 657 if (nconf && ((strcmp(nconf->nc_protofmly, NC_INET) == 0) || in _clnt_tli_create_timed() 675 if (nconf) { in _clnt_tli_create_timed() [all …]
|
H A D | rpcb_clnt.c | 427 tmpnconf = nconf; in local_rpcb() 459 if (nconf == NULL) { in rpcb_set() 479 parms.r_netid = nconf->nc_netid; in rpcb_set() 504 const struct netconfig *nconf) in rpcb_unset() argument 517 if (nconf) in rpcb_unset() 518 parms.r_netid = nconf->nc_netid; in rpcb_unset() 649 if (nconf == NULL) { in __rpcb_findaddr_timed() 954 nconf->nc_protofmly) == 0) in __rpcb_findaddr_timed() 1225 struct netconfig *nconf; in rpcb_gettime() local 1284 if (nconf == NULL) { in rpcb_taddr2uaddr() [all …]
|
H A D | rpc_soc.c | 81 struct netconfig *nconf; in clnt_com_create() local 135 (void) freenetconfigent(nconf); in clnt_com_create() 148 (void) freenetconfigent(nconf); in clnt_com_create() 195 struct netconfig *nconf; in svc_com_create() local 215 (void) freenetconfigent(nconf); in svc_com_create() 222 svc = svc_tli_create(fd, nconf, NULL, in svc_com_create() 224 (void) freenetconfigent(nconf); in svc_com_create() 513 struct netconfig *nconf; in authdes_create() local 526 (void) freenetconfigent(nconf); in authdes_create() 534 (void) freenetconfigent(nconf); in authdes_create() [all …]
|
H A D | rtime_tli.c | 75 struct netconfig *nconf = NULL; in rtime_tli() local 79 nconf = __rpc_getconfip(timeout == NULL ? "tcp" : "udp"); in rtime_tli() 80 if (nconf == NULL) in rtime_tli() 83 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) == -1) { in rtime_tli() 96 if (netdir_getbyname(nconf, &rpcbind_hs, &nlist)) in rtime_tli() 99 if (nconf->nc_semantics == NC_TPI_CLTS) { in rtime_tli() 153 if (nconf) { in rtime_tli() 154 (void) freenetconfigent(nconf); in rtime_tli()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfs_tbind.c | 297 nconf->nc_device); in nfslib_bindit() 647 struct netconfig *nconf; in do_all() local 662 do_one(nconf->nc_device, nconf->nc_proto, in do_all() 1351 nconf->nc_device); in cots_listen_event() 1410 nconf->nc_netid); in cots_listen_event() 1641 struct netconfig *nconf; in bind_to_provider() local 1655 *retnconf = nconf; in bind_to_provider() 1671 struct netconfig *nconf; in bind_to_proto() local 1683 if (OK_TPI_TYPE(nconf) && NETSELEQ(nconf->nc_proto, proto)) { in bind_to_proto() 1684 *retnconf = nconf; in bind_to_proto() [all …]
|
H A D | nfs_resolve.c | 74 get_knconf(struct netconfig *nconf) in get_knconf() argument 98 len = strlen(nconf->nc_proto); in get_knconf() 209 struct netconfig *nconf = NULL; in resolve_netconf() local 218 while (nconf = getnetpath(nc)) { in resolve_netconf() 221 if ((nconf->nc_semantics == in resolve_netconf() 223 (nconf->nc_semantics == in resolve_netconf() 231 (strcmp(nconf->nc_proto, in resolve_netconf() 237 if (nconf->nc_semantics == in resolve_netconf() 252 if (nconf == NULL) { in resolve_netconf() 267 *netconf = nconf; in resolve_netconf() [all …]
|
/illumos-gate/usr/src/cmd/rpcbind/ |
H A D | rpcbind.c | 213 struct netconfig *nconf; in main() local 321 if (nconf->nc_flag & NC_VISIBLE) in main() 322 init_transport(nconf); in main() 375 struct netconfig *nconf, *np; in check_netconfig() local 456 freenetconfigent(nconf); in check_netconfig() 528 nconf->nc_netid); in init_transport() 592 nconf->nc_netid); in init_transport() 622 nconf->nc_netid); in init_transport() 691 nconf->nc_netid); in init_transport() 699 nconf->nc_netid); in init_transport() [all …]
|
H A D | check_bound.c | 67 struct netconfig *nconf; member 95 na = uaddr2taddr(fdl->nconf, uaddr); in check_bound() 154 newnconf = getnetconfigent(nconf->nc_netid); in add_bndlist() 164 fdl->nconf = newnconf; in add_bndlist() 182 nconf->nc_netid, t_errlist[t_errno]); in add_bndlist() 208 nconf->nc_netid, t_errlist[t_errno]); in add_bndlist() 238 nconf->nc_netid, t_errlist[t_errno]); in add_bndlist() 247 nconf->nc_netid, t_errlist[t_errno]); in add_bndlist() 267 nconf->nc_netid, t_errlist[t_errno]); in add_bndlist() 407 fdl->nconf->nc_netid, netdir_sperror()); in mergeaddr() [all …]
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | yp_b_svc.c | 94 struct netconfig *nconf; local 184 struct netconfig *nconf = NULL; local 219 nconf->nc_netid); 222 if (nconf) 223 freenetconfigent(nconf); 366 ypbindprog_2, nconf)) { 369 nconf->nc_netid); 378 nconf); 380 ypbindprog_2, nconf)) { 389 if (nconf->nc_semantics == NC_TPI_CLTS) [all …]
|
H A D | ypxfrd_client.c | 216 struct netconfig *nconf; local 224 if ((nconf = getnetconfigent(netid[i])) == NULL) { 230 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) == -1) { 231 freenetconfigent(nconf); 238 if (netdir_options(nconf, ND_SET_RESERVEDPORT, fd, 241 freenetconfigent(nconf); 255 freenetconfigent(nconf); 262 if (rpcb_getaddr(YPXFRD, 1, nconf, svcaddr, master) 266 freenetconfigent(nconf); 272 if ((clnt = __nis_clnt_create(fd, nconf, 0, svcaddr, 0, [all …]
|
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | key_generic.c | 80 struct netconfig *nconf; variable 92 while (nconf = __rpc_getconf(handle)) { 93 if (strcmp(nconf->nc_protofmly, NC_LOOPBACK)) 100 dispatch, nconf) == FALSE) 103 prognum, versnum, nconf->nc_netid); 115 nconf->nc_netid, t_errlist[t_errno]); 128 nconf->nc_netid); 141 if (!netdir_getbyname(nconf, &ns, &nas)) { 151 servname, nconf->nc_netid); 162 dispatch, nconf) == FALSE) { [all …]
|
/illumos-gate/usr/src/cmd/gss/gssd/ |
H A D | gssd_generic.c | 60 struct netconfig *nconf; variable 72 while (nconf = __rpc_getconf(net)) { 73 if ((strcmp(nconf->nc_protofmly, NC_LOOPBACK)) || 74 (nconf->nc_semantics != NC_TPI_COTS_ORD)) 80 nconf->nc_netid, t_errlist[t_errno]); 94 nconf->nc_netid); 109 if (!netdir_getbyname(nconf, &ns, &nas)) { 120 servname, nconf->nc_netid); 125 xprt = svc_tli_create(fd, nconf, bind_addr, 0, 0); 134 (void) rpcb_unset(prognum, versnum, nconf); [all …]
|
/illumos-gate/usr/src/cmd/krb5/kwarn/ |
H A D | kwarnd_generic.c | 38 struct netconfig *nconf; in svc_create_local_service() local 50 while (nconf = __rpc_getconf(net)) { in svc_create_local_service() 51 if ((strcmp(nconf->nc_protofmly, NC_LOOPBACK)) || in svc_create_local_service() 52 (nconf->nc_semantics != NC_TPI_COTS_ORD)) in svc_create_local_service() 58 nconf->nc_netid, t_errlist[t_errno]); in svc_create_local_service() 72 nconf->nc_netid); in svc_create_local_service() 87 if (!netdir_getbyname(nconf, &ns, &nas)) { in svc_create_local_service() 98 servname, nconf->nc_netid); in svc_create_local_service() 103 xprt = svc_tli_create(fd, nconf, bind_addr, 0, 0); in svc_create_local_service() 112 (void) rpcb_unset(prognum, versnum, nconf); in svc_create_local_service() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/tests/test_svc_tp_create/ |
H A D | test_svc_tp_create.c | 88 test_svc_tp_create(struct netconfig *nconf) in test_svc_tp_create() argument 115 nconf, al->n_addrs); in test_svc_tp_create() 136 (int)vers, nconf->nc_netid); in test_svc_tp_create() 147 (int)vers, nconf->nc_netid); in test_svc_tp_create() 167 struct netconfig *nconf; in main() local 227 while ((nconf = getnetconfig(nc)) != NULL) { in main() 231 if ((nconf->nc_flag & NC_VISIBLE) == 0) in main() 233 if (nconf->nc_semantics != NC_TPI_CLTS && in main() 234 nconf->nc_semantics != NC_TPI_COTS && in main() 235 nconf->nc_semantics != NC_TPI_COTS_ORD) in main() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfs4cbd/ |
H A D | nfs4cbd.c | 235 ua = taddr2uaddr(nconf, nb); in get_uaddr() 240 nconf->nc_netid); in get_uaddr() 249 if (netdir_getbyname(nconf, &hs, &nas)) { in get_uaddr() 256 ua2 = taddr2uaddr(nconf, nas->n_addrs); in get_uaddr() 261 nconf->nc_netid); in get_uaddr() 292 ua = get_uaddr(fd, nconf, addr); in nfs4svc() 304 nconf->nc_netid, ua); in nfs4svc() 307 nconf->nc_netid, ua); in nfs4svc() 312 nsa.netid = nconf->nc_netid; in nfs4svc() 318 nsa.protofmly = nconf->nc_protofmly; in nfs4svc() [all …]
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | getservbyname_r.c | 60 struct netconfig *nconf; in getservbyname_r() local 65 if ((nconf = __rpc_getconfip("udp")) == NULL && in getservbyname_r() 66 (nconf = __rpc_getconfip("tcp")) == NULL) { in getservbyname_r() 81 neterr = _get_hostserv_inetnetdir_byname(nconf, &nssin, &nssout); in getservbyname_r() 83 (void) freenetconfigent(nconf); in getservbyname_r() 94 struct netconfig *nconf; in getservbyport_r() local 99 if ((nconf = __rpc_getconfip("udp")) == NULL && in getservbyport_r() 100 (nconf = __rpc_getconfip("tcp")) == NULL) { in getservbyport_r() 115 neterr = _get_hostserv_inetnetdir_byaddr(nconf, &nssin, &nssout); in getservbyport_r() 117 (void) freenetconfigent(nconf); in getservbyport_r()
|
/illumos-gate/usr/src/lib/libnsl/yp/ |
H A D | yp_rsvd.c | 41 struct netconfig *nconf; in __yp_clnt_create_rsvdport_netid_req() local 57 if ((nconf = getnetconfigent((void *) nt)) == NULL) in __yp_clnt_create_rsvdport_netid_req() 60 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) == -1) { in __yp_clnt_create_rsvdport_netid_req() 61 freenetconfigent(nconf); in __yp_clnt_create_rsvdport_netid_req() 66 (void) netdir_options(nconf, ND_SET_RESERVEDPORT, fd, NULL); in __yp_clnt_create_rsvdport_netid_req() 70 freenetconfigent(nconf); in __yp_clnt_create_rsvdport_netid_req() 76 if (!rpcb_getaddr(prog, vers, nconf, svcaddr, hostname)) { in __yp_clnt_create_rsvdport_netid_req() 79 freenetconfigent(nconf); in __yp_clnt_create_rsvdport_netid_req() 83 if ((clnt = clnt_tli_create(fd, nconf, svcaddr, in __yp_clnt_create_rsvdport_netid_req() 91 freenetconfigent(nconf); in __yp_clnt_create_rsvdport_netid_req()
|
H A D | yp_bind.c | 283 struct netconfig *nconf = 0; in __yp_add_binding_netid() local 290 nconf = getnetconfigent(netid); in __yp_add_binding_netid() 291 if (nconf == 0) in __yp_add_binding_netid() 312 binding->ypbind_nconf = nconf; in __yp_add_binding_netid() 329 if (nconf) in __yp_add_binding_netid() 330 freenetconfigent(nconf); in __yp_add_binding_netid() 433 if (nconf == NULL) in tli_open_rsvdport() 933 struct netconfig *nconf; in __clnt_create_loopback() local 945 while (nconf = getnetconfig(nc_handle)) in __clnt_create_loopback() 978 if (nconf == NULL) { in getclnt() [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);
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | gethostbyname_r.c | 105 struct netconfig *nconf; in gethostbyname_r() local 118 if ((nconf = __rpc_getconfip("udp")) == NULL && in gethostbyname_r() 119 (nconf = __rpc_getconfip("tcp")) == NULL) { in gethostbyname_r() 136 neterr = _get_hostserv_inetnetdir_byname(nconf, &nssin, &nssout); in gethostbyname_r() 138 (void) freenetconfigent(nconf); in gethostbyname_r() 148 struct netconfig *nconf; in gethostbyaddr_r() local 161 if ((nconf = __rpc_getconfip("udp")) == NULL && in gethostbyaddr_r() 162 (nconf = __rpc_getconfip("tcp")) == NULL) { in gethostbyaddr_r() 181 neterr = _get_hostserv_inetnetdir_byaddr(nconf, &nssin, &nssout); in gethostbyaddr_r() 183 (void) freenetconfigent(nconf); in gethostbyaddr_r()
|
/illumos-gate/usr/src/lib/libnsl/netselect/ |
H A D | netselect.c | 910 struct netconfig *nconf; in netconfig_dup() local 914 if (nconf == NULL) { in netconfig_dup() 924 if (!(nconf->nc_lookups && nconf->nc_netid && in netconfig_dup() 925 nconf->nc_protofmly && nconf->nc_proto && in netconfig_dup() 926 nconf->nc_device)) { in netconfig_dup() 928 netconfig_free(nconf); in netconfig_dup() 934 if (nconf->nc_lookups[i] == NULL) { in netconfig_dup() 935 nconf->nc_nlookups = i; in netconfig_dup() 936 netconfig_free(nconf); in netconfig_dup() 941 nconf->nc_lookups[i] = NULL; in netconfig_dup() [all …]
|
/illumos-gate/usr/src/cmd/rpcinfo/ |
H A D | rpcinfo.c | 571 struct netconfig *nconf; local 743 struct netconfig *nconf; local 746 if (nconf == NULL) { 751 if (nconf) 971 if (nconf == NULL) { 976 if (nconf) 1000 if (nconf != NULL) { 1308 if (nconf == NULL) { 1329 struct netconfig *nconf; 1379 struct netconfig *nconf; local [all …]
|