Home
last modified time | relevance | path

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

1234

/titanic_44/usr/src/lib/libnsl/rpc/
H A Drpc_generic.c206 struct netconfig *nconf; in __rpc_getconfip() local
211 while (nconf = getnetconfig(confighandle)) { in __rpc_getconfip()
212 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) { in __rpc_getconfip()
213 if (strcmp(nconf->nc_proto, NC_TCP) == 0) { in __rpc_getconfip()
214 netid_tcp = strdup(nconf->nc_netid); in __rpc_getconfip()
228 if (strcmp(nconf->nc_proto, NC_UDP) == 0) { in __rpc_getconfip()
229 netid_udp = strdup(nconf->nc_netid); in __rpc_getconfip()
311 struct netconfig *nconf; in __rpc_getconf() local
318 nconf = getnetpath(handle->nhandle); in __rpc_getconf()
320 nconf = getnetconfig(handle->nhandle); in __rpc_getconf()
[all …]
H A Dsvc_generic.c116 struct netconfig *nconf; in svc_create() local
136 while (nconf = __rpc_getconf(handle)) { in svc_create()
139 if (strcmp(l->xprt->xp_netid, nconf->nc_netid) == 0) { in svc_create()
141 (void) rpcb_unset(prognum, versnum, nconf); in svc_create()
143 dispatch, nconf) == FALSE) in svc_create()
147 prognum, versnum, nconf->nc_netid); in svc_create()
156 xprt = svc_tp_create(dispatch, prognum, versnum, nconf); in svc_create()
183 const rpcvers_t versnum, const struct netconfig *nconf) in svc_tp_create() argument
188 if (nconf == NULL) { in svc_tp_create()
197 xprt = svc_tli_create_common(RPC_ANYFD, nconf, NULL, 0, 0, anon_mlp); in svc_tp_create()
[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.c179 struct netconfig *nconf; in clnt_create_timed() local
228 if ((nconf = __rpc_getconf(handle)) == NULL) { in clnt_create_timed()
233 clnt = clnt_tp_create_timed(hostname, prog, vers, nconf, tp); in clnt_create_timed()
301 struct netconfig *nconf; in clnt_create_service_timed() local
381 if ((nconf = __rpc_getconf(handle)) == NULL) { in clnt_create_service_timed()
388 if (strcmp(nconf->nc_protofmly, NC_INET) != 0 && in clnt_create_service_timed()
389 strcmp(nconf->nc_protofmly, NC_INET6) != 0) in clnt_create_service_timed()
393 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) < 0) { in clnt_create_service_timed()
402 __rpc_set_mac_options(fd, nconf, prog); in clnt_create_service_timed()
414 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.c83 struct netconfig *nconf; in clnt_com_create() local
89 if ((nconf = __rpc_getconfip(tp)) == NULL) { in clnt_com_create()
95 fd = t_open(nconf->nc_device, O_RDWR, &tinfo); in clnt_com_create()
127 cl = clnt_tli_create(fd, nconf, &bindaddr, prog, vers, in clnt_com_create()
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
203 if ((nconf = __rpc_getconfip(netid)) == NULL) { in svc_com_create()
208 fd = t_open(nconf->nc_device, O_RDWR, NULL); in svc_com_create()
217 (void) freenetconfigent(nconf); in svc_com_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()
/titanic_44/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 …]
/titanic_44/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 …]
/titanic_44/usr/src/cmd/ypcmd/
H A Dyp_b_svc.c96 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)) == NULL) {
[all …]
/titanic_44/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))
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->nc_netid);
[all …]
/titanic_44/usr/src/lib/librdc/common/
H A Dnetaddrs.c218 convert_nconf_to_knconf(struct netconfig *nconf, struct knetconfig *knconf) in convert_nconf_to_knconf() argument
222 if (stat(nconf->nc_device, &sb) < 0) { in convert_nconf_to_knconf()
224 nconf->nc_device); in convert_nconf_to_knconf()
228 printf("lib knconf %x %s %s %x\n", nconf->nc_semantics, in convert_nconf_to_knconf()
229 nconf->nc_protofmly, nconf->nc_proto, sb.st_rdev); in convert_nconf_to_knconf()
232 knconf->knc_semantics = nconf->nc_semantics; in convert_nconf_to_knconf()
233 knconf->knc_protofmly = nconf->nc_protofmly; in convert_nconf_to_knconf()
234 knconf->knc_proto = nconf->nc_proto; in convert_nconf_to_knconf()
340 struct netconfig *nconf, ushort_t port, struct t_info *tinfo, in get_the_addr() argument
350 if (nconf == NULL) in get_the_addr()
[all …]
/titanic_44/usr/src/cmd/avs/rdc/
H A Dsndrd.c218 rdc_transport_open(struct netconfig *nconf) in rdc_transport_open() argument
223 if ((nconf == (struct netconfig *)NULL) || in rdc_transport_open()
224 (nconf->nc_device == (char *)NULL)) { in rdc_transport_open()
232 fd = t_open(nconf->nc_device, O_RDWR, (struct t_info *)NULL); in rdc_transport_open()
237 fd = t_open(nconf->nc_device, O_RDWR, NULL); in rdc_transport_open()
267 if (nconf->nc_semantics == NC_TPI_CLTS) { in rdc_transport_open()
335 rdcd_log_tli_error(char *tli_name, int fd, struct netconfig *nconf) in rdcd_log_tli_error() argument
346 tli_name, fd, nconf->nc_proto); in rdcd_log_tli_error()
350 tli_name, fd, nconf->nc_proto, t_errno); in rdcd_log_tli_error()
433 struct netconfig *nconf; in do_all() local
[all …]
/titanic_44/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))
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_addr, 0, 0);
[all …]
/titanic_44/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()
57 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) < 0) { 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()
[all …]
/titanic_44/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 …]
/titanic_44/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()
/titanic_44/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()
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 …]
/titanic_44/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);
/titanic_44/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()
/titanic_44/usr/src/lib/libnsl/netselect/
H A Dnetselect.c912 struct netconfig *nconf; in netconfig_dup() local
915 nconf = calloc(1, sizeof (struct netconfig)); in netconfig_dup()
916 if (nconf == NULL) { in netconfig_dup()
920 nconf->nc_netid = strdup(netconfigp->nc_netid); in netconfig_dup()
921 nconf->nc_protofmly = strdup(netconfigp->nc_protofmly); in netconfig_dup()
922 nconf->nc_proto = strdup(netconfigp->nc_proto); in netconfig_dup()
923 nconf->nc_device = strdup(netconfigp->nc_device); in netconfig_dup()
924 nconf->nc_lookups = malloc((netconfigp->nc_nlookups + 1) in netconfig_dup()
926 if (!(nconf->nc_lookups && nconf->nc_netid && in netconfig_dup()
927 nconf->nc_protofmly && nconf->nc_proto && in netconfig_dup()
[all …]
/titanic_44/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