Home
last modified time | relevance | path

Searched refs:nconf (Results 1 – 25 of 77) sorted by last modified time

1234

/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
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/lockd/
H A Dlockd.c103 struct netconfig *nconf);
495 nlmsvc(int fd, struct netbuf addrmask, struct netconfig *nconf) in nlmsvc() argument
507 lma.n_fmly = ncfmly_to_lmfmly(nconf->nc_protofmly); in nlmsvc()
508 lma.n_proto = nctype_to_lmprot(nconf->nc_semantics); in nlmsvc()
509 lma.n_rdev = ncdev_to_rdev(nconf->nc_device); in nlmsvc()
/illumos-gate/usr/src/lib/libshare/nfs/
H A Dlibshare_nfs.c2910 struct netconfig *nconf; in protocol_validator() local
2927 while ((nconf = getnetconfig(nc)) != NULL) { in protocol_validator()
2928 if (strcmp(nconf->nc_proto, value) == 0) { in protocol_validator()
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypxfr.c1501 struct netconfig *nconf; local
1520 if ((nconf = getnetconfigent(netid[i])) == NULL) {
1528 if (rpcb_getaddr(YPPROG, master_prog_vers, nconf, svcaddr,
1530 freenetconfigent(nconf);
1538 if ((domb.dom_client = __nis_clnt_create(fd, nconf, 0, svcaddr,
1540 freenetconfigent(nconf);
H A Dypwhich.c433 struct netconfig *nconf = local
438 if (netdir_getbyaddr(nconf, &nhs, svcaddr) != ND_OK) {
H A Dypxfrd_svc.c177 struct netconfig *nconf = NULL; in main() local
188 if ((nconf = getnetconfigent(netid)) == NULL) in main()
193 if ((transp = svc_tli_create(0, nconf, NULL, 0, 0)) == NULL) { in main()
197 if (nconf) in main()
198 freenetconfigent(nconf); in main()
H A Dypserv_resolv.c63 static int getconf(char *netid, void **handle, struct netconfig **nconf);
263 static int getconf(char *netid, void **handle, struct netconfig **nconf) in getconf() argument
272 *nconf = nc; in getconf()
279 *nconf = save; in getconf()
H A Dypset.c248 struct netconfig *nconf; in send_message() local
263 nconf = getnetconfigent(server->cl_netid); in send_message()
293 ypbind_info.ypbind_nconf = nconf; in send_message()
H A Dyppoll.c366 struct netconfig *nconf = binding->ypbind_nconf; in getypserv() local
369 if (netdir_getbyaddr(nconf, &nhs, svcaddr) != ND_OK) { in getypserv()
H A Dyp_b_svc.c94 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 Dyp_b_subr.c461 struct netconfig *nconf; local
709 struct netconfig *nconf;
714 b.ypbind_nconf = nconf;
849 struct netconfig *nconf; local
871 freenetconfigent(nconf);
884 freenetconfigent(nconf);
895 freenetconfigent(nconf);
906 freenetconfigent(nconf);
917 freenetconfigent(nconf);
1342 cache_transport(nconf, xprt, vers) in cache_transport() argument
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsd/
H A Dnfsd.c576 struct netconfig *nconf; in main() local
584 while (nconf = getnetconfig(nc)) { in main()
585 if (strcmp(nconf->nc_proto, proto) == 0) { in main()
587 do_one(nconf->nc_device, NULL, in main()
660 nfssvc(int fd, struct netbuf addrmask, struct netconfig *nconf) in nfssvc() argument
665 nsa.netid = nconf->nc_netid; in nfssvc()
667 if (strncasecmp(nconf->nc_proto, NC_UDP, strlen(NC_UDP)) == 0) { in nfssvc()
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dmountd.c367 md_svc_tp_create(struct netconfig *nconf) in md_svc_tp_create() argument
397 nconf, al->n_addrs); in md_svc_tp_create()
418 vers, nconf->nc_netid); in md_svc_tp_create()
429 vers, nconf->nc_netid); in md_svc_tp_create()
451 struct netconfig *nconf; in main() local
759 if ((nconf->nc_flag & NC_VISIBLE) == 0) in main()
766 md_svc_tp_create(nconf); in main()
1215 cln->nconf = NULL; in cln_init_common()
1237 if (cln->nconf != NULL) in cln_fini()
1238 freenetconfigent(cln->nconf); in cln_fini()
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/clnt/
H A Dclient_init.c311 struct netconfig *nconf; in _kadm5_initialize_rpcsec_gss_handle() local
368 while (nconf = getnetconfig(handlep)) { in _kadm5_initialize_rpcsec_gss_handle()
369 if ((nconf->nc_semantics == NC_TPI_COTS_ORD) && in _kadm5_initialize_rpcsec_gss_handle()
371 (strcmp(nconf->nc_proto, NC_TCP) == 0)) in _kadm5_initialize_rpcsec_gss_handle()
375 if (nconf == (struct netconfig *)NULL) in _kadm5_initialize_rpcsec_gss_handle()
383 fd = get_connection(nconf, netaddr); in _kadm5_initialize_rpcsec_gss_handle()
396 nconf->nc_netid, nconf->nc_semantics, nconf->nc_flag, in _kadm5_initialize_rpcsec_gss_handle()
397 nconf->nc_protofmly); in _kadm5_initialize_rpcsec_gss_handle()
399 nconf->nc_proto, nconf->nc_device, nconf->nc_nlookups, in _kadm5_initialize_rpcsec_gss_handle()
400 nconf->nc_unused); in _kadm5_initialize_rpcsec_gss_handle()
[all …]
/illumos-gate/usr/src/cmd/krb5/kadmin/server/
H A Dovsec_kadmd.c425 struct netconfig *nconf; in main() local
694 while (nconf = getnetconfig(handlep)) { in main()
695 if ((nconf->nc_semantics == NC_TPI_COTS_ORD) && in main()
696 (strcmp(nconf->nc_protofmly, NC_INET) == 0) && in main()
697 (strcmp(nconf->nc_proto, NC_TCP) == 0)) in main()
701 if (nconf == (struct netconfig *) NULL) { in main()
706 fd = t_open(nconf->nc_device, O_RDWR, &tinfo); in main()
823 transp = svc_tli_create(fd, nconf, NULL, 0, 0); in main()
/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()
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dti_opts.c558 __rpc_set_mac_options(int fd, const struct netconfig *nconf, rpcprog_t prognum) in __rpc_set_mac_options() argument
565 if (strcmp(nconf->nc_protofmly, NC_INET) != 0 && in __rpc_set_mac_options()
566 strcmp(nconf->nc_protofmly, NC_INET6) != 0) in __rpc_set_mac_options()
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()
H A Drpc_soc.c81 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 Dclnt_generic.c176 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 Dclnt_bcast.c133 struct netconfig *nconf; in rpc_broadcast_exp() local
173 while (nconf = __rpc_getconf(handle)) { in rpc_broadcast_exp()
178 if (nconf->nc_semantics != NC_TPI_CLTS) in rpc_broadcast_exp()
186 __rpc_set_mac_options(fd, nconf, prog); in rpc_broadcast_exp()
200 fdlist[fdlistno].nconf = nconf; in rpc_broadcast_exp()
381 struct netconfig *nconf = in rpc_broadcast_exp() local
382 fdlist[i].nconf; in rpc_broadcast_exp()
431 sent for %s\n", nconf->nc_netid); in rpc_broadcast_exp()
484 fdlist[i].nconf->nc_netid); in rpc_broadcast_exp()
567 fdlist[i].nconf, in rpc_broadcast_exp()
[all …]
/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
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/lib/libfsmgt/common/
H A Dnfs_netcfg.c46 struct netconfig *nconf; in netcfg_get_networkid_list() local
60 while (nconf = getnetconfig(nc)) { in netcfg_get_networkid_list()
78 return_list[(*num_elements)] = strdup(nconf->nc_netid); in netcfg_get_networkid_list()

1234