Home
last modified time | relevance | path

Searched refs:nconf (Results 1 – 25 of 77) sorted by relevance

1234

/illumos-gate/usr/src/lib/libnsl/rpc/
H A Drpc_generic.c204 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 Dsvc_generic.c120 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 Dpmap_clnt.c68 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 Dclnt_generic.c177 struct netconfig *nconf; in clnt_create_timed() local
299 struct netconfig *nconf; in clnt_create_service_timed() local
400 __rpc_set_mac_options(fd, nconf, prog); in clnt_create_service_timed()
494 const struct netconfig *nconf) in clnt_tp_create() argument
515 if (nconf == NULL) { in clnt_tp_create_timed()
547 cl->cl_tp = strdup(nconf->nc_device); in clnt_tp_create_timed()
609 if (nconf == NULL) { in _clnt_tli_create_timed()
622 switch (nconf->nc_semantics) { in _clnt_tli_create_timed()
659 if (nconf && ((strcmp(nconf->nc_protofmly, NC_INET) == 0) || in _clnt_tli_create_timed()
677 if (nconf) { in _clnt_tli_create_timed()
[all …]
H A Drpcb_clnt.c427 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 Drpc_soc.c83 struct netconfig *nconf; in clnt_com_create() local
137 (void) freenetconfigent(nconf); in clnt_com_create()
150 (void) freenetconfigent(nconf); in clnt_com_create()
197 struct netconfig *nconf; in svc_com_create() local
217 (void) freenetconfigent(nconf); in svc_com_create()
224 svc = svc_tli_create(fd, nconf, NULL, in svc_com_create()
226 (void) freenetconfigent(nconf); in svc_com_create()
515 struct netconfig *nconf; in authdes_create() local
528 (void) freenetconfigent(nconf); in authdes_create()
536 (void) freenetconfigent(nconf); in authdes_create()
[all …]
H A Drtime_tli.c77 struct netconfig *nconf = NULL; in rtime_tli() local
81 nconf = __rpc_getconfip(timeout == NULL ? "tcp" : "udp"); in rtime_tli()
82 if (nconf == NULL) in rtime_tli()
85 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) == -1) { in rtime_tli()
98 if (netdir_getbyname(nconf, &rpcbind_hs, &nlist)) in rtime_tli()
101 if (nconf->nc_semantics == NC_TPI_CLTS) { in rtime_tli()
155 if (nconf) { in rtime_tli()
156 (void) freenetconfigent(nconf); in rtime_tli()
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfs_tbind.c297 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 Dnfs_resolve.c74 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 Drpcbind.c213 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 Dcheck_bound.c67 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 Dyp_b_svc.c96 struct netconfig *nconf; local
186 struct netconfig *nconf = NULL; local
221 nconf->nc_netid);
224 if (nconf)
225 freenetconfigent(nconf);
368 ypbindprog_2, nconf)) {
371 nconf->nc_netid);
380 nconf);
382 ypbindprog_2, nconf)) {
391 if (nconf->nc_semantics == NC_TPI_CLTS)
[all …]
H A Dypxfrd_client.c216 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 Dkey_generic.c82 struct netconfig *nconf; variable
94 while (nconf = __rpc_getconf(handle)) {
95 if (strcmp(nconf->nc_protofmly, NC_LOOPBACK))
102 dispatch, nconf) == FALSE)
105 prognum, versnum, nconf->nc_netid);
117 nconf->nc_netid, t_errlist[t_errno]);
130 nconf->nc_netid);
143 if (!netdir_getbyname(nconf, &ns, &nas)) {
153 servname, nconf->nc_netid);
164 dispatch, nconf) == FALSE) {
[all …]
/illumos-gate/usr/src/cmd/gss/gssd/
H A Dgssd_generic.c62 struct netconfig *nconf; variable
74 while (nconf = __rpc_getconf(net)) {
75 if ((strcmp(nconf->nc_protofmly, NC_LOOPBACK)) ||
76 (nconf->nc_semantics != NC_TPI_COTS_ORD))
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_addr, 0, 0);
136 (void) rpcb_unset(prognum, versnum, nconf);
[all …]
/illumos-gate/usr/src/cmd/krb5/kwarn/
H A Dkwarnd_generic.c40 struct netconfig *nconf; in svc_create_local_service() local
52 while (nconf = __rpc_getconf(net)) { in svc_create_local_service()
53 if ((strcmp(nconf->nc_protofmly, NC_LOOPBACK)) || in svc_create_local_service()
54 (nconf->nc_semantics != NC_TPI_COTS_ORD)) in svc_create_local_service()
60 nconf->nc_netid, t_errlist[t_errno]); in svc_create_local_service()
74 nconf->nc_netid); in svc_create_local_service()
89 if (!netdir_getbyname(nconf, &ns, &nas)) { in svc_create_local_service()
100 servname, nconf->nc_netid); in svc_create_local_service()
105 xprt = svc_tli_create(fd, nconf, bind_addr, 0, 0); in svc_create_local_service()
114 (void) rpcb_unset(prognum, versnum, nconf); in svc_create_local_service()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/tests/
H A Dtest_svc_tp_create.c88 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 Dnfs4cbd.c235 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 Dgetservbyname_r.c62 struct netconfig *nconf; in getservbyname_r() local
67 if ((nconf = __rpc_getconfip("udp")) == NULL && in getservbyname_r()
68 (nconf = __rpc_getconfip("tcp")) == NULL) { in getservbyname_r()
83 neterr = _get_hostserv_inetnetdir_byname(nconf, &nssin, &nssout); in getservbyname_r()
85 (void) freenetconfigent(nconf); in getservbyname_r()
96 struct netconfig *nconf; in getservbyport_r() local
101 if ((nconf = __rpc_getconfip("udp")) == NULL && in getservbyport_r()
102 (nconf = __rpc_getconfip("tcp")) == NULL) { in getservbyport_r()
117 neterr = _get_hostserv_inetnetdir_byaddr(nconf, &nssin, &nssout); in getservbyport_r()
119 (void) freenetconfigent(nconf); in getservbyport_r()
/illumos-gate/usr/src/lib/libnsl/yp/
H A Dyp_rsvd.c43 struct netconfig *nconf; in __yp_clnt_create_rsvdport_netid_req() local
59 if ((nconf = getnetconfigent((void *) nt)) == NULL) in __yp_clnt_create_rsvdport_netid_req()
62 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) == -1) { in __yp_clnt_create_rsvdport_netid_req()
63 freenetconfigent(nconf); in __yp_clnt_create_rsvdport_netid_req()
68 (void) netdir_options(nconf, ND_SET_RESERVEDPORT, fd, NULL); in __yp_clnt_create_rsvdport_netid_req()
72 freenetconfigent(nconf); in __yp_clnt_create_rsvdport_netid_req()
78 if (!rpcb_getaddr(prog, vers, nconf, svcaddr, hostname)) { in __yp_clnt_create_rsvdport_netid_req()
81 freenetconfigent(nconf); in __yp_clnt_create_rsvdport_netid_req()
85 if ((clnt = clnt_tli_create(fd, nconf, svcaddr, in __yp_clnt_create_rsvdport_netid_req()
93 freenetconfigent(nconf); in __yp_clnt_create_rsvdport_netid_req()
H A Dyp_bind.c283 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 Dbindresvport.c79 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 Dgethostbyname_r.c107 struct netconfig *nconf; in gethostbyname_r() local
120 if ((nconf = __rpc_getconfip("udp")) == NULL && in gethostbyname_r()
121 (nconf = __rpc_getconfip("tcp")) == NULL) { in gethostbyname_r()
138 neterr = _get_hostserv_inetnetdir_byname(nconf, &nssin, &nssout); in gethostbyname_r()
140 (void) freenetconfigent(nconf); in gethostbyname_r()
150 struct netconfig *nconf; in gethostbyaddr_r() local
163 if ((nconf = __rpc_getconfip("udp")) == NULL && in gethostbyaddr_r()
164 (nconf = __rpc_getconfip("tcp")) == NULL) { in gethostbyaddr_r()
183 neterr = _get_hostserv_inetnetdir_byaddr(nconf, &nssin, &nssout); in gethostbyaddr_r()
185 (void) freenetconfigent(nconf); in gethostbyaddr_r()
/illumos-gate/usr/src/lib/libnsl/netselect/
H A Dnetselect.c912 struct netconfig *nconf; in netconfig_dup() local
916 if (nconf == NULL) { in netconfig_dup()
926 if (!(nconf->nc_lookups && nconf->nc_netid && in netconfig_dup()
927 nconf->nc_protofmly && nconf->nc_proto && in netconfig_dup()
928 nconf->nc_device)) { in netconfig_dup()
930 netconfig_free(nconf); in netconfig_dup()
936 if (nconf->nc_lookups[i] == NULL) { in netconfig_dup()
937 nconf->nc_nlookups = i; in netconfig_dup()
938 netconfig_free(nconf); in netconfig_dup()
943 nconf->nc_lookups[i] = NULL; in netconfig_dup()
[all …]
/illumos-gate/usr/src/cmd/rpcinfo/
H A Drpcinfo.c571 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 …]

1234