Home
last modified time | relevance | path

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

12

/dragonfly/usr.sbin/rpcbind/
H A Drpcbind.c154 if (nconf == NULL) in main()
156 if (nconf == NULL) { in main()
255 nconf->nc_netid, nconf->nc_nlookups); in init_transport()
256 for (i = 0, s = nconf->nc_lookups; i < nconf->nc_nlookups; in init_transport()
283 nconf->nc_netid); in init_transport()
421 nconf->nc_netid); in init_transport()
451 nconf->nc_netid); in init_transport()
590 nconf->nc_netid); in init_transport()
598 nconf->nc_netid); in init_transport()
609 nconf->nc_netid); in init_transport()
[all …]
H A Dcheck_bound.c57 struct netconfig *nconf; member
83 na = uaddr2taddr(fdl->nconf, uaddr); in check_bound()
87 fd = __rpc_nconf2fd(fdl->nconf); in check_bound()
109 newnconf = getnetconfigent(nconf->nc_netid); in add_bndlist()
118 fdl->nconf = newnconf; in add_bndlist()
139 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in is_bound()
158 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in mergeaddr()
173 c_uaddr = taddr2uaddr(fdl->nconf, svc_getrpccaller(xprt)); in mergeaddr()
176 fdl->nconf->nc_netid); in mergeaddr()
218 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in rpcbind_get_conf()
[all …]
H A Drpcb_stat.c107 struct netconfig *nconf; in rpcbs_getaddr() local
124 nconf = rpcbind_get_conf(netid); in rpcbs_getaddr()
125 if (nconf == NULL) { in rpcbs_getaddr()
134 al->netid = nconf->nc_netid; in rpcbs_getaddr()
151 struct netconfig *nconf; in rpcbs_rmtcall() local
173 nconf = rpcbind_get_conf(netid); in rpcbs_rmtcall()
174 if (nconf == NULL) { in rpcbs_rmtcall()
184 rl->netid = nconf->nc_netid; in rpcbs_rmtcall()
H A Drpcb_svc_4.c329 struct netconfig *nconf; in rpcbproc_getaddrlist_4_local() local
354 nconf = rpcbind_get_conf(rbl->rpcb_map.r_netid); in rpcbproc_getaddrlist_4_local()
355 if (nconf == NULL) in rpcbproc_getaddrlist_4_local()
357 if (strcmp(nconf->nc_protofmly, reg_nconf->nc_protofmly) in rpcbproc_getaddrlist_4_local()
394 a->r_nc_netid = nconf->nc_netid; in rpcbproc_getaddrlist_4_local()
395 a->r_nc_semantics = nconf->nc_semantics; in rpcbproc_getaddrlist_4_local()
396 a->r_nc_protofmly = nconf->nc_protofmly; in rpcbproc_getaddrlist_4_local()
397 a->r_nc_proto = nconf->nc_proto; in rpcbproc_getaddrlist_4_local()
H A Dutil.c131 struct netconfig *nconf; in addrmerge() local
141 if ((nconf = rpcbind_get_conf(netid)) == NULL) in addrmerge()
143 if ((caller_uaddr = taddr2uaddr(nconf, caller)) == NULL) in addrmerge()
153 if ((hint_nbp = uaddr2taddr(nconf, clnt_uaddr)) == NULL) in addrmerge()
248 serv_nbp = uaddr2taddr(nconf, serv_uaddr); in addrmerge()
267 ret = taddr2uaddr(nconf, &tbuf); in addrmerge()
H A Drpcb_svc_com.c370 struct netconfig *nconf; in rpcbproc_uaddr2taddr_com() local
398 struct netconfig *nconf; in rpcbproc_taddr2uaddr_com() local
491 create_rmtcall_fd(struct netconfig *nconf) in create_rmtcall_fd() argument
497 if ((fd = __rpc_nconf2fd(nconf)) == -1) { in create_rmtcall_fd()
501 nconf->nc_device, errno); in create_rmtcall_fd()
517 rmt->netid = strdup(nconf->nc_netid); in create_rmtcall_fd()
605 struct netconfig *nconf; in rpcbproc_callit_com() local
738 nconf = rpcbind_get_conf(transp->xp_netid); in rpcbproc_callit_com()
739 if (nconf == NULL) { in rpcbproc_callit_com()
759 nconf->nc_netid); in rpcbproc_callit_com()
[all …]
/dragonfly/lib/libc/rpc/
H A Dsvc_generic.c83 struct netconfig *nconf; in svc_create() local
99 dispatch, nconf) == FALSE) in svc_create()
103 nconf->nc_netid); in svc_create()
148 if (nconf == NULL) { in svc_tp_create()
164 nconf->nc_netid); in svc_tp_create()
195 if (nconf == NULL) { in svc_tli_create()
199 fd = __rpc_nconf2fd(nconf); in svc_tli_create()
203 nconf->nc_netid); in svc_tli_create()
206 __rpc_nconf2sockinfo(nconf, &si); in svc_tli_create()
260 if (!nconf || !xprt) in svc_tli_create()
[all …]
H A Dpmap_clnt.c64 struct netconfig *nconf; in pmap_set() local
71 if (nconf == NULL) { in pmap_set()
78 freenetconfigent(nconf); in pmap_set()
83 freenetconfigent(nconf); in pmap_set()
94 struct netconfig *nconf; in pmap_unset() local
99 if (nconf != NULL) { in pmap_unset()
101 nconf); in pmap_unset()
102 freenetconfigent(nconf); in pmap_unset()
105 if (nconf != NULL) { in pmap_unset()
107 nconf); in pmap_unset()
[all …]
H A Drpc_generic.c253 struct netconfig *nconf; in __rpc_getconfip() local
347 struct netconfig *nconf; in __rpc_getconf() local
358 if (nconf == NULL) in __rpc_getconf()
398 strcmp(nconf->nc_proto, NC_TCP)) in __rpc_getconf()
416 return (nconf); in __rpc_getconf()
546 struct netconfig *nconf; in __rpc_sockinfo2netid() local
548 nconf = getnetconfigent("local"); in __rpc_sockinfo2netid()
560 if (nconf != NULL) in __rpc_sockinfo2netid()
561 freenetconfigent(nconf); in __rpc_sockinfo2netid()
565 if (nconf != NULL) in __rpc_sockinfo2netid()
[all …]
H A Drpcb_clnt.c361 if (nconf->nc_protofmly != NULL && strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) { in getclnthandle()
516 tmpnconf = nconf; in local_rpcb()
552 if (nconf == NULL) { in rpcb_set()
615 if (nconf) in rpcb_unset()
671 struct netconfig *nconf; in __rpcbind_is_up() local
676 nconf = NULL; in __rpcbind_is_up()
683 if (nconf == NULL) in __rpcbind_is_up()
739 if (nconf == NULL) { in __rpcb_findaddr_timed()
1196 struct netconfig *nconf; in rpcb_gettime() local
1258 if (nconf == NULL) { in rpcb_taddr2uaddr()
[all …]
H A Dclnt_generic.c196 struct netconfig *nconf; in clnt_create_timed() local
280 const struct netconfig *nconf) in clnt_tp_create() argument
299 if (nconf == NULL) { in clnt_tp_create_timed()
322 cl->cl_tp = strdup(nconf->nc_device); in clnt_tp_create_timed()
357 if (nconf == NULL) { in clnt_tli_create()
362 fd = __rpc_nconf2fd(nconf); in clnt_tli_create()
369 servtype = nconf->nc_semantics; in clnt_tli_create()
393 if (nconf && ((strcmp(nconf->nc_protofmly, "inet") == 0))) { in clnt_tli_create()
408 if (nconf) { in clnt_tli_create()
409 cl->cl_netid = strdup(nconf->nc_netid); in clnt_tli_create()
[all …]
H A Drpc_soc.c90 struct netconfig *nconf; in clnt_com_create() local
100 fd = __rpc_nconf2fd(nconf); in clnt_com_create()
136 freenetconfigent(nconf); in clnt_com_create()
148 freenetconfigent(nconf); in clnt_com_create()
199 struct netconfig *nconf; in svc_com_create() local
210 fd = __rpc_nconf2fd(nconf); in svc_com_create()
212 freenetconfigent(nconf); in svc_com_create()
225 freenetconfigent(nconf); in svc_com_create()
326 if (strcmp(nconf->nc_netid, "udp")) in rpc_wrap_bcast()
449 struct netconfig *nconf; in svcunix_create() local
[all …]
H A Dcrypt_client.c52 struct netconfig *nconf; in _des_crypt_call() local
56 nconf = NULL; in _des_crypt_call()
58 while ((nconf = getnetconfig(localhandle)) != NULL) { in _des_crypt_call()
59 if (nconf->nc_protofmly != NULL && in _des_crypt_call()
60 strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) in _des_crypt_call()
63 if (nconf == NULL) { in _des_crypt_call()
67 clnt = clnt_tp_create(NULL, CRYPT_PROG, CRYPT_VERS, nconf); in _des_crypt_call()
H A Dsvc_simple.c105 struct netconfig *nconf; in rpc_reg() local
124 while ((nconf = __rpc_getconf(handle)) != NULL) { in rpc_reg()
137 if (strcmp(pl->p_netid, nconf->nc_netid) == 0) { in rpc_reg()
149 svcxprt = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); in rpc_reg()
164 ((netid = strdup(nconf->nc_netid)) == NULL)) { in rpc_reg()
185 rpcb_unset(prognum, versnum, nconf); in rpc_reg()
188 nconf = NULL; in rpc_reg()
191 if (!svc_reg(svcxprt, prognum, versnum, universal, nconf)) { in rpc_reg()
H A Dclnt_bcast.c269 struct netconfig *nconf; in rpc_broadcast_exp() local
300 while ((nconf = __rpc_getconf(handle)) != NULL) { in rpc_broadcast_exp()
304 if (nconf->nc_semantics != NC_TPI_CLTS) in rpc_broadcast_exp()
308 if (!__rpc_nconf2sockinfo(nconf, &si)) in rpc_broadcast_exp()
324 fdlist[fdlistno].nconf = nconf; in rpc_broadcast_exp()
466 fdlist[i].nconf->nc_netid); in rpc_broadcast_exp()
488 fdlist[i].nconf->nc_netid); in rpc_broadcast_exp()
534 fdlist[i].nconf->nc_netid); in rpc_broadcast_exp()
593 &taddr, fdlist[i].nconf); in rpc_broadcast_exp()
601 fdlist[i].nconf, uaddrp); in rpc_broadcast_exp()
[all …]
H A Dkey_call.c289 struct netconfig *nconf; in getkeyserv_handle() local
356 while ((nconf = getnetconfig(localhandle)) != NULL) { in getkeyserv_handle()
357 if (strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) { in getkeyserv_handle()
362 if (nconf->nc_semantics == NC_TPI_COTS_ORD) { in getkeyserv_handle()
364 KEY_PROG, vers, nconf); in getkeyserv_handle()
368 tpconf = nconf; in getkeyserv_handle()
H A Dsvc_dg.c445 struct netconfig *nconf; in cache_set() local
488 if (nconf = getnetconfigent(xprt->xp_netid)) { in cache_set()
489 uaddr = taddr2uaddr(nconf, &xprt->xp_rtaddr); in cache_set()
490 freenetconfigent(nconf); in cache_set()
531 struct netconfig *nconf; in cache_get() local
546 if (nconf = getnetconfigent(xprt->xp_netid)) { in cache_get()
547 uaddr = taddr2uaddr(nconf, &xprt->xp_rtaddr); in cache_get()
548 freenetconfigent(nconf); in cache_get()
H A Dsvc.c168 const struct netconfig *nconf) in svc_reg() argument
182 } else if (nconf && nconf->nc_netid) { in svc_reg()
183 netid = strdup(nconf->nc_netid); in svc_reg()
224 if (nconf) { in svc_reg()
226 dummy = rpcb_set(prog, vers, (struct netconfig *) nconf, in svc_reg()
/dragonfly/usr.sbin/rpc.lockd/
H A Dlockd.c100 struct netconfig *nconf; in main() local
223 if (nconf->nc_flag & NC_VISIBLE) { in main()
228 create_service(nconf); in main()
296 nconf->nc_netid); in create_service()
319 nconf->nc_netid); in create_service()
399 nconf->nc_netid, in create_service()
428 nconf->nc_netid); in create_service()
434 nconf->nc_netid); in create_service()
440 nconf->nc_netid); in create_service()
446 nconf->nc_netid); in create_service()
[all …]
/dragonfly/usr.bin/rpcinfo/
H A Drpcinfo.c309 struct netconfig *nconf; local
318 if (nconf == NULL) {
543 struct netconfig *nconf; local
685 if (nconf == NULL) {
690 if (nconf)
881 if (nconf == NULL) {
886 if (nconf)
910 if (nconf != NULL) {
1199 if (nconf == NULL)
1260 if (nconf == NULL)
[all …]
/dragonfly/usr.sbin/rpc.yppasswdd/
H A Dyppasswdd_main.c166 struct netconfig *nconf; in main() local
288 nconf = NULL; in main()
290 while ((nconf = getnetconfig(localhandle)) != NULL) { in main()
291 if (nconf->nc_protofmly != NULL && in main()
292 strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) in main()
295 if (nconf == NULL) { in main()
306 master_yppasswdprog_1, nconf)) { in main()
/dragonfly/contrib/wpa_supplicant/src/ap/
H A Dwps_hostapd.c410 FILE *oconf, *nconf; in hapd_wps_cred_cb() local
500 if (nconf == NULL) { in hapd_wps_cred_cb()
513 fprintf(nconf, "ssid2="); in hapd_wps_cred_cb()
516 fprintf(nconf, "\n"); in hapd_wps_cred_cb()
518 fprintf(nconf, "ssid="); in hapd_wps_cred_cb()
521 fprintf(nconf, "\n"); in hapd_wps_cred_cb()
560 fprintf(nconf, "\n"); in hapd_wps_cred_cb()
585 fprintf(nconf, "\n"); in hapd_wps_cred_cb()
591 fprintf(nconf, "\n"); in hapd_wps_cred_cb()
596 fprintf(nconf, "\n"); in hapd_wps_cred_cb()
[all …]
/dragonfly/sbin/mount_nfs/
H A Dmount_nfs.c600 struct netconfig *nconf, *nconf_mnt; in nfs_tryproto() local
616 if ((nconf = getnetconf_cached(netid)) == NULL) { in nfs_tryproto()
622 nconf_mnt = nconf; in nfs_tryproto()
642 if (!rpcb_getaddr(RPCPROG_NFS, nfsvers, nconf, &nfs_nb, in nfs_tryproto()
822 struct netconfig *nconf; in getnetconf_cached() member
826 struct netconfig *nconf; in getnetconf_cached() local
829 if (strcmp(netid, p->nconf->nc_netid) == 0) in getnetconf_cached()
830 return (p->nconf); in getnetconf_cached()
832 if ((nconf = getnetconfigent(netid)) == NULL) in getnetconf_cached()
836 p->nconf = nconf; in getnetconf_cached()
[all …]
/dragonfly/usr.sbin/keyserv/
H A Dkeyserv.c113 struct netconfig *nconf = NULL; in main() local
174 while ((nconf = getnetconfig(localhandle)) != NULL) { in main()
175 if (nconf->nc_protofmly != NULL && in main()
176 strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) in main()
180 if (nconf == NULL) in main()
184 rpcb_unset(CRYPT_PROG, CRYPT_VERS, nconf); in main()
188 if (!svc_reg(transp, KEY_PROG, KEY_VERS, keyprogram, nconf)) in main()
190 if (!svc_reg(transp, KEY_PROG, KEY_VERS2, keyprogram, nconf)) in main()
192 if (!svc_reg(transp, CRYPT_PROG, CRYPT_VERS, crypt_prog_1, nconf)) in main()
/dragonfly/sbin/mountd/
H A Dmountd.c251 struct netconfig *nconf; in main() local
419 if (nconf->nc_flag & NC_VISIBLE) { in main()
424 create_service(nconf); in main()
465 create_service(struct netconfig *nconf) in create_service() argument
489 if (!__rpc_nconf2sockinfo(nconf, &si)) { in create_service()
491 nconf->nc_netid); in create_service()
511 if ((fd = __rpc_nconf2fd(nconf)) < 0) { in create_service()
612 nconf->nc_netid, in create_service()
678 nconf->nc_netid); in create_service()
684 nconf->nc_netid); in create_service()
[all …]

12