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
209 while (nconf = getnetconfig(confighandle)) { in __rpc_getconfip()
210 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) { in __rpc_getconfip()
211 if (strcmp(nconf->nc_proto, NC_TCP) == 0) { in __rpc_getconfip()
212 netid_tcp = strdup(nconf->nc_netid); in __rpc_getconfip()
226 if (strcmp(nconf->nc_proto, NC_UDP) == 0) { in __rpc_getconfip()
227 netid_udp = strdup(nconf->nc_netid); in __rpc_getconfip()
309 struct netconfig *nconf; in __rpc_getconf() local
316 nconf = getnetpath(handle->nhandle); in __rpc_getconf()
318 nconf = getnetconfig(handle->nhandle); in __rpc_getconf()
[all …]
H A Dsvc_generic.c120 struct netconfig *nconf; in svc_create() local
140 while (nconf = __rpc_getconf(handle)) { in svc_create()
143 if (strcmp(l->xprt->xp_netid, nconf->nc_netid) == 0) { in svc_create()
145 (void) rpcb_unset(prognum, versnum, nconf); in svc_create()
147 dispatch, nconf) == FALSE) in svc_create()
151 prognum, versnum, nconf->nc_netid); in svc_create()
160 xprt = svc_tp_create(dispatch, prognum, versnum, nconf); in svc_create()
187 const rpcvers_t versnum, const struct netconfig *nconf) in svc_tp_create() argument
189 return (svc_tp_create_bind(dispatch, prognum, versnum, nconf, NULL)); in svc_tp_create()
199 const rpcvers_t versnum, const struct netconfig *nconf, in svc_tp_create_addr() argument
[all …]
H A Dpmap_clnt.c68 struct netconfig *nconf; in pmap_set() local
73 nconf = __rpc_getconfip(protocol == IPPROTO_UDP ? "udp" : "tcp"); in pmap_set()
74 if (!nconf) in pmap_set()
77 na = uaddr2taddr(nconf, buf); in pmap_set()
79 freenetconfigent(nconf); in pmap_set()
82 rslt = rpcb_set(program, version, nconf, na); 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()
[all …]
H A Dclnt_generic.c176 struct netconfig *nconf; in clnt_create_timed() local
225 if ((nconf = __rpc_getconf(handle)) == NULL) { in clnt_create_timed()
230 clnt = clnt_tp_create_timed(hostname, prog, vers, nconf, tp); in clnt_create_timed()
298 struct netconfig *nconf; in clnt_create_service_timed() local
378 if ((nconf = __rpc_getconf(handle)) == NULL) { in clnt_create_service_timed()
385 if (strcmp(nconf->nc_protofmly, NC_INET) != 0 && in clnt_create_service_timed()
386 strcmp(nconf->nc_protofmly, NC_INET6) != 0) in clnt_create_service_timed()
390 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) < 0) { in clnt_create_service_timed()
399 __rpc_set_mac_options(fd, nconf, prog); in clnt_create_service_timed()
410 if (netdir_getbyname(nconf, &hs, &raddrs) != ND_OK) { in clnt_create_service_timed()
[all …]
H A Drpcb_clnt.c287 getclnthandle(char *host, struct netconfig *nconf, char **targaddr) in getclnthandle() argument
289 return (_getclnthandle_timed(host, nconf, targaddr, NULL)); in getclnthandle()
299 _getclnthandle_timed(char *host, struct netconfig *nconf, char **targaddr, in _getclnthandle_timed() argument
317 ad_cache = check_cache(host, nconf->nc_netid); in _getclnthandle_timed()
320 client = _clnt_tli_create_timed(RPC_ANYFD, nconf, addr, in _getclnthandle_timed()
374 if ((neterr = netdir_getbyname(nconf, &rpcbind_hs, &nas)) != 0) { in _getclnthandle_timed()
385 client = _clnt_tli_create_timed(RPC_ANYFD, nconf, addr, RPCBPROG, in _getclnthandle_timed()
392 tmpaddr = targaddr ? taddr2uaddr(nconf, addr) : NULL; in _getclnthandle_timed()
393 add_cache(host, nconf->nc_netid, addr, tmpaddr); in _getclnthandle_timed()
415 struct netconfig *nconf, *tmpnconf = NULL; in local_rpcb() local
[all …]
H A Drpc_soc.c81 struct netconfig *nconf; in clnt_com_create() local
87 if ((nconf = __rpc_getconfip(tp)) == NULL) { in clnt_com_create()
93 fd = t_open(nconf->nc_device, O_RDWR, &tinfo); in clnt_com_create()
125 cl = clnt_tli_create(fd, nconf, &bindaddr, prog, vers, in clnt_com_create()
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
201 if ((nconf = __rpc_getconfip(netid)) == NULL) { in svc_com_create()
206 fd = t_open(nconf->nc_device, O_RDWR, NULL); in svc_com_create()
215 (void) freenetconfigent(nconf); in svc_com_create()
[all …]
H A Drtime_tli.c75 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 Dnfs_tbind.c138 nfslib_transport_open(struct netconfig *nconf) in nfslib_transport_open() argument
143 if ((nconf == (struct netconfig *)NULL) || in nfslib_transport_open()
144 (nconf->nc_device == (char *)NULL)) { in nfslib_transport_open()
152 fd = t_open(nconf->nc_device, O_RDWR, (struct t_info *)NULL); in nfslib_transport_open()
157 fd = t_open(nconf->nc_device, O_RDWR, in nfslib_transport_open()
162 nconf->nc_device, t_errno); in nfslib_transport_open()
211 if (strcmp(nconf->nc_netid, "udp6") == 0) in nfslib_transport_open()
213 else if (strcmp(nconf->nc_netid, "udp") == 0) in nfslib_transport_open()
282 nfslib_bindit(struct netconfig *nconf, struct netbuf **addr, in nfslib_bindit() argument
295 if ((fd = nfslib_transport_open(nconf)) == -1) { in nfslib_bindit()
[all …]
H A Dnfs_resolve.c74 get_knconf(struct netconfig *nconf) in get_knconf() argument
80 if (stat(nconf->nc_device, &stbuf) < 0) { in get_knconf()
81 syslog(LOG_ERR, "get_knconf: stat %s: %m", nconf->nc_device); in get_knconf()
87 k->knc_semantics = nconf->nc_semantics; in get_knconf()
89 len = strlen(nconf->nc_protofmly); in get_knconf()
96 bcopy(nconf->nc_protofmly, k->knc_protofmly, len); in get_knconf()
98 len = strlen(nconf->nc_proto); in get_knconf()
105 bcopy(nconf->nc_proto, k->knc_proto, len); in get_knconf()
209 struct netconfig *nconf = NULL; in resolve_netconf() local
218 while (nconf = getnetpath(nc)) { in resolve_netconf()
[all …]
/illumos-gate/usr/src/cmd/rpcbind/
H A Drpcbind.c213 struct netconfig *nconf; in main() local
320 while ((nconf = getnetconfig(nc_handle)) != NULL) { in main()
321 if (nconf->nc_flag & NC_VISIBLE) in main()
322 init_transport(nconf); in main()
375 struct netconfig *nconf, *np; in check_netconfig() local
445 nconf = getnetconfigent(np->nc_netid); in check_netconfig()
447 if (!check_hostserv(nconf, HOST_SELF, "")) in check_netconfig()
449 if (!check_hostserv(nconf, HOST_SELF_CONNECT, "")) in check_netconfig()
451 if (!check_hostserv(nconf, HOST_SELF, "rpcbind")) in check_netconfig()
453 if (!check_hostserv(nconf, HOST_SELF_CONNECT, "rpcbind")) in check_netconfig()
[all …]
H A Dcheck_bound.c67 struct netconfig *nconf; member
95 na = uaddr2taddr(fdl->nconf, uaddr); in check_bound()
118 fdl->fd = t_open(fdl->nconf->nc_device, O_RDWR, NULL); in check_bound()
146 add_bndlist(struct netconfig *nconf, struct t_bind *taddr, struct t_bind *baddr) in add_bndlist() argument
154 newnconf = getnetconfigent(nconf->nc_netid); in add_bndlist()
164 fdl->nconf = newnconf; in add_bndlist()
174 if ((fdl->fd = t_open(nconf->nc_device, O_RDWR, &tinfo)) < 0) { 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()
[all …]
/illumos-gate/usr/src/cmd/ypcmd/
H A Dyp_b_svc.c94 struct netconfig *nconf; local
184 struct netconfig *nconf = NULL; local
202 } else if ((nconf = getnetconfigent(netid)) == NULL) {
209 if ((transp = svc_tli_create(0, nconf, NULL, 0, 0)) == NULL) {
214 if (strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) {
219 nconf->nc_netid);
222 if (nconf)
223 freenetconfigent(nconf);
337 while (nconf = __rpc_getconf(nc_handle)) {
345 YPBINDPROG, YPBINDVERS, nconf)) == NULL) {
[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.c80 struct netconfig *nconf; variable
92 while (nconf = __rpc_getconf(handle)) {
93 if (strcmp(nconf->nc_protofmly, NC_LOOPBACK))
96 if (strcmp(l->xprt->xp_netid, nconf->nc_netid) == 0) {
98 (void) rpcb_unset(prognum, versnum, nconf);
100 dispatch, nconf) == FALSE)
103 prognum, versnum, nconf->nc_netid);
112 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) < 0) {
115 nconf->nc_netid, t_errlist[t_errno]);
128 nconf->nc_netid);
[all …]
/illumos-gate/usr/src/cmd/gss/gssd/
H A Dgssd_generic.c60 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))
77 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) < 0) {
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);
[all …]
/illumos-gate/usr/src/cmd/krb5/kwarn/
H A Dkwarnd_generic.c38 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()
55 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) < 0) { 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()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/tests/test_svc_tp_create/
H A Dtest_svc_tp_create.c88 test_svc_tp_create(struct netconfig *nconf) in test_svc_tp_create() argument
103 (strcmp(nconf->nc_protofmly, NC_INET) == 0 || in test_svc_tp_create()
104 strcmp(nconf->nc_protofmly, NC_INET6) == 0)) { in test_svc_tp_create()
112 err = netdir_getbyname((struct netconfig *)nconf, &hs, &al); in test_svc_tp_create()
115 nconf, al->n_addrs); in test_svc_tp_create()
121 (int)vers, nconf->nc_netid, testd_port); in test_svc_tp_create()
131 xprt = svc_tp_create(mysvc, TESTPROG, vers, nconf); in test_svc_tp_create()
136 (int)vers, nconf->nc_netid); in test_svc_tp_create()
144 if (!svc_reg(xprt, TESTPROG, vers, mysvc, nconf)) { in test_svc_tp_create()
147 (int)vers, nconf->nc_netid); in test_svc_tp_create()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/nfs4cbd/
H A Dnfs4cbd.c226 get_uaddr(int fd, struct netconfig *nconf, struct netbuf *nb) in get_uaddr() argument
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()
270 if (netdir_options(nconf, ND_MERGEADDR, 0, (char *)&ma)) { in get_uaddr()
285 nfs4svc(int fd, struct netbuf *addrmask, struct netconfig *nconf, in nfs4svc() argument
292 ua = get_uaddr(fd, nconf, addr); in nfs4svc()
297 "available on this transport\n", nconf->nc_netid); in nfs4svc()
[all …]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dgetservbyname_r.c60 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 Dyp_rsvd.c41 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 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()
303 if (!rpcb_getaddr(YPPROG, YPVERS, nconf, svcaddr, addr)) 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()
429 tli_open_rsvdport(struct netconfig *nconf) in tli_open_rsvdport() argument
433 if (nconf == NULL) in tli_open_rsvdport()
436 fd = t_open(nconf->nc_device, O_RDWR, NULL); in tli_open_rsvdport()
[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.c105 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 Dnetselect.c910 struct netconfig *nconf; in netconfig_dup() local
913 nconf = calloc(1, sizeof (struct netconfig)); in netconfig_dup()
914 if (nconf == NULL) { in netconfig_dup()
918 nconf->nc_netid = strdup(netconfigp->nc_netid); in netconfig_dup()
919 nconf->nc_protofmly = strdup(netconfigp->nc_protofmly); in netconfig_dup()
920 nconf->nc_proto = strdup(netconfigp->nc_proto); in netconfig_dup()
921 nconf->nc_device = strdup(netconfigp->nc_device); in netconfig_dup()
922 nconf->nc_lookups = malloc((netconfigp->nc_nlookups + 1) in netconfig_dup()
924 if (!(nconf->nc_lookups && nconf->nc_netid && in netconfig_dup()
925 nconf->nc_protofmly && nconf->nc_proto && in netconfig_dup()
[all …]
/illumos-gate/usr/src/cmd/rpcinfo/
H A Drpcinfo.c571 struct netconfig *nconf; local
579 if ((nconf = __rpc_getconfip("udp")) == NULL &&
580 (nconf = __rpc_getconfip("tcp")) == NULL) {
587 if (netdir_getbyname(nconf, &service, &naddrs)) {
596 (void) freenetconfigent(nconf);
612 reply_proc(res, who, nconf) in reply_proc() argument
615 struct netconfig *nconf; /* On which transport the reply came */
621 if (netdir_getbyaddr(nconf, &serv, who)) {
626 if (!(uaddr = taddr2uaddr(nconf, who))) {
743 struct netconfig *nconf; local
[all …]

1234