Home
last modified time | relevance | path

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

12

/freebsd/usr.sbin/rpcbind/
H A Drpcbind.c141 struct netconfig *nconf; in main() local
182 nconf = getnetconfigent("local"); in main()
183 if (nconf == NULL) in main()
184 nconf = getnetconfigent("unix"); in main()
185 if (nconf == NULL) { in main()
192 init_transport(nconf); in main()
194 while ((nconf = getnetconfig(nc_handle))) { in main()
195 if (nconf->nc_flag & NC_VISIBLE) { in main()
196 if (ipv6_only == 1 && strcmp(nconf->nc_protofmly, in main()
200 init_transport(nconf); in main()
[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()
104 add_bndlist(struct netconfig *nconf, struct netbuf *baddr __unused) in add_bndlist() argument
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()
159 if (strcmp(fdl->nconf->nc_netid, netid) == 0) in mergeaddr()
178 c_uaddr = taddr2uaddr(fdl->nconf, callee); in mergeaddr()
183 c_uaddr = taddr2uaddr(fdl->nconf, svc_getrpccaller(xprt)); in mergeaddr()
[all …]
H A Drpcb_stat.c103 struct netconfig *nconf; in rpcbs_getaddr() local
120 nconf = rpcbind_get_conf(netid); in rpcbs_getaddr()
121 if (nconf == NULL) { in rpcbs_getaddr()
130 al->netid = nconf->nc_netid; in rpcbs_getaddr()
147 struct netconfig *nconf; in rpcbs_rmtcall() local
169 nconf = rpcbind_get_conf(netid); in rpcbs_rmtcall()
170 if (nconf == NULL) { in rpcbs_rmtcall()
180 rl->netid = nconf->nc_netid; in rpcbs_rmtcall()
H A Drpcb_svc_4.c327 struct netconfig *nconf; in rpcbproc_getaddrlist_4_local() local
352 nconf = rpcbind_get_conf(rbl->rpcb_map.r_netid); in rpcbproc_getaddrlist_4_local()
353 if (nconf == NULL) in rpcbproc_getaddrlist_4_local()
355 if (strcmp(nconf->nc_protofmly, reg_nconf->nc_protofmly) in rpcbproc_getaddrlist_4_local()
392 a->r_nc_netid = nconf->nc_netid; in rpcbproc_getaddrlist_4_local()
393 a->r_nc_semantics = nconf->nc_semantics; in rpcbproc_getaddrlist_4_local()
394 a->r_nc_protofmly = nconf->nc_protofmly; in rpcbproc_getaddrlist_4_local()
395 a->r_nc_proto = nconf->nc_proto; in rpcbproc_getaddrlist_4_local()
H A Dutil.c119 struct netconfig *nconf; in addrmerge() local
133 if ((nconf = rpcbind_get_conf(netid)) == NULL) in addrmerge()
135 if ((caller_uaddr = taddr2uaddr(nconf, caller)) == NULL) in addrmerge()
147 if ((hint_nbp = uaddr2taddr(nconf, contct_uaddr)) == NULL) in addrmerge()
275 serv_nbp = uaddr2taddr(nconf, serv_uaddr); in addrmerge()
294 ret = taddr2uaddr(nconf, &tbuf); in addrmerge()
/freebsd/lib/libc/rpc/
H A Dpmap_clnt.c62 struct netconfig *nconf; in pmap_set() local
68 nconf = __rpc_getconfip(protocol == IPPROTO_UDP ? "udp" : "tcp"); in pmap_set()
69 if (nconf == NULL) { in pmap_set()
74 na = uaddr2taddr(nconf, buf); in pmap_set()
76 freenetconfigent(nconf); in pmap_set()
79 rslt = rpcb_set((rpcprog_t)program, (rpcvers_t)version, nconf, na); in pmap_set()
81 freenetconfigent(nconf); in pmap_set()
92 struct netconfig *nconf; in pmap_unset() local
96 nconf = __rpc_getconfip("udp"); in pmap_unset()
97 if (nconf != NULL) { in pmap_unset()
[all …]
H A Dsvc_generic.c86 struct netconfig *nconf; in svc_create() local
95 while ((nconf = __rpc_getconf(handle)) != NULL) { in svc_create()
98 if (strcmp(l->xprt->xp_netid, nconf->nc_netid) == 0) { in svc_create()
100 (void) rpcb_unset(prognum, versnum, nconf); in svc_create()
102 dispatch, nconf) == FALSE) in svc_create()
106 nconf->nc_netid); in svc_create()
114 xprt = svc_tp_create(dispatch, prognum, versnum, nconf); in svc_create()
151 rpcprog_t prognum, rpcvers_t versnum, const struct netconfig *nconf) in svc_tp_create() argument
155 if (nconf == NULL) { in svc_tp_create()
161 xprt = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); in svc_tp_create()
[all …]
H A Drpc_generic.c233 struct netconfig *nconf; in __rpc_getconfip() local
240 while ((nconf = getnetconfig(confighandle)) != NULL) { in __rpc_getconfip()
241 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) { in __rpc_getconfip()
242 if (strcmp(nconf->nc_proto, NC_TCP) == 0 && in __rpc_getconfip()
244 netid_tcp = strdup(nconf->nc_netid); in __rpc_getconfip()
251 if (strcmp(nconf->nc_proto, NC_UDP) == 0 && in __rpc_getconfip()
253 netid_udp = strdup(nconf->nc_netid); in __rpc_getconfip()
329 struct netconfig *nconf; in __rpc_getconf() local
337 nconf = getnetpath(handle->nhandle); in __rpc_getconf()
339 nconf = getnetconfig(handle->nhandle); in __rpc_getconf()
[all …]
H A Drpcb_clnt.c270 getclnthandle(const char *host, const struct netconfig *nconf, char **targaddr) in getclnthandle() argument
288 ad_cache = check_cache(host, nconf->nc_netid); in getclnthandle()
291 client = clnt_tli_create(RPC_ANYFD, nconf, addr, in getclnthandle()
318 if (!__rpc_nconf2sockinfo(nconf, &si)) { in getclnthandle()
330 nconf->nc_netid, si.si_af, si.si_proto, si.si_socktype); in getclnthandle()
333 if (nconf->nc_protofmly != NULL && strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) { in getclnthandle()
368 ua = taddr2uaddr(nconf, &taddr); in getclnthandle()
386 client = clnt_tli_create(RPC_ANYFD, nconf, &taddr, in getclnthandle()
395 tmpaddr = targaddr ? taddr2uaddr(nconf, &taddr) : NULL; in getclnthandle()
396 add_cache(host, nconf->nc_netid, &taddr, tmpaddr); in getclnthandle()
[all …]
H A Dclnt_generic.c176 struct netconfig *nconf; in clnt_create_timed() local
201 if ((nconf = __rpc_getconf(handle)) == NULL) { in clnt_create_timed()
207 printf("trying netid %s\n", nconf->nc_netid); in clnt_create_timed()
209 clnt = clnt_tp_create_timed(hostname, prog, vers, nconf, tp); in clnt_create_timed()
260 const struct netconfig *nconf) in clnt_tp_create() argument
263 return (clnt_tp_create_timed(hostname, prog, vers, nconf, NULL)); in clnt_tp_create()
274 const struct netconfig *nconf, const struct timeval *tp) in clnt_tp_create_timed() argument
279 if (nconf == NULL) { in clnt_tp_create_timed()
288 (struct netconfig *)nconf, (char *)hostname, in clnt_tp_create_timed()
294 cl = clnt_tli_create(RPC_ANYFD, nconf, svcaddr, in clnt_tp_create_timed()
[all …]
H A Drpc_soc.c91 struct netconfig *nconf; in clnt_com_create() local
95 if ((nconf = __rpc_getconfip(tp)) == NULL) { in clnt_com_create()
101 fd = __rpc_nconf2fd(nconf); 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()
149 (void) freenetconfigent(nconf); in clnt_com_create()
200 struct netconfig *nconf; in svc_com_create() local
206 if ((nconf = __rpc_getconfip(netid)) == NULL) { in svc_com_create()
211 fd = __rpc_nconf2fd(nconf); in svc_com_create()
213 (void) freenetconfigent(nconf); in svc_com_create()
[all …]
H A Dcrypt_client.c50 struct netconfig *nconf; in _des_crypt_call() local
54 nconf = NULL; in _des_crypt_call()
56 while ((nconf = getnetconfig(localhandle)) != NULL) { in _des_crypt_call()
57 if (nconf->nc_protofmly != NULL && in _des_crypt_call()
58 strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) in _des_crypt_call()
61 if (nconf == NULL) { in _des_crypt_call()
66 clnt = clnt_tp_create(NULL, CRYPT_PROG, CRYPT_VERS, nconf); in _des_crypt_call()
H A Dsvc_simple.c106 struct netconfig *nconf; in rpc_reg() local
125 while ((nconf = __rpc_getconf(handle)) != NULL) { in rpc_reg()
138 if (strcmp(pl->p_netid, nconf->nc_netid) == 0) { in rpc_reg()
150 svcxprt = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); in rpc_reg()
165 ((netid = strdup(nconf->nc_netid)) == NULL)) { in rpc_reg()
184 (void) rpcb_unset(prognum, versnum, nconf); in rpc_reg()
187 nconf = NULL; in rpc_reg()
190 if (!svc_reg(svcxprt, prognum, versnum, universal, nconf)) { in rpc_reg()
H A Dclnt_bcast.c263 struct netconfig *nconf; /* Netconfig structure */ in rpc_broadcast_exp() member
274 struct netconfig *nconf; in rpc_broadcast_exp() local
305 while ((nconf = __rpc_getconf(handle)) != NULL) { in rpc_broadcast_exp()
309 if (nconf->nc_semantics != NC_TPI_CLTS) in rpc_broadcast_exp()
313 if (!__rpc_nconf2sockinfo(nconf, &si)) in rpc_broadcast_exp()
329 fdlist[fdlistno].nconf = nconf; in rpc_broadcast_exp()
472 fdlist[i].nconf->nc_netid); in rpc_broadcast_exp()
494 fdlist[i].nconf->nc_netid); in rpc_broadcast_exp()
540 fdlist[i].nconf->nc_netid); in rpc_broadcast_exp()
599 &taddr, fdlist[i].nconf); in rpc_broadcast_exp()
[all …]
H A Dkey_call.c294 struct netconfig *nconf; in getkeyserv_handle() local
367 while ((nconf = getnetconfig(localhandle)) != NULL) { in getkeyserv_handle()
368 if (strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) { in getkeyserv_handle()
373 if (nconf->nc_semantics == NC_TPI_COTS_ORD) { in getkeyserv_handle()
375 KEY_PROG, vers, nconf); in getkeyserv_handle()
379 tpconf = nconf; in getkeyserv_handle()
/freebsd/sys/rpc/
H A Dsvc_generic.c79 const struct netconfig *nconf) /* Netconfig structure for the network */ in svc_tp_create() argument
86 if (nconf == NULL) { in svc_tp_create()
93 taddr = uaddr2taddr(nconf, uaddr); in svc_tp_create()
97 xprt = svc_tli_create(pool, nconf, &bind, 0, 0); in svc_tp_create()
100 xprt = svc_tli_create(pool, nconf, NULL, 0, 0); in svc_tp_create()
106 nconfcopy = *nconf; in svc_tp_create()
108 if (svc_reg(xprt, prognum, versnum, dispatch, nconf) == FALSE) { in svc_tp_create()
112 nconf->nc_netid); in svc_tp_create()
132 const struct netconfig *nconf, /* Netconfig struct for nettoken */ in svc_tli_create() argument
142 if (nconf == NULL) { in svc_tli_create()
[all …]
H A Dgetnetconfig.c100 struct netconfig *nconf; in getnetconfig() local
102 nconf = *nconfp; in getnetconfig()
103 if (nconf->nc_netid == NULL) in getnetconfig()
108 return (nconf); in getnetconfig()
114 struct netconfig *nconf; in getnetconfigent() local
116 for (nconf = netconfigs; nconf->nc_netid; nconf++) { in getnetconfigent()
117 if (!strcmp(netid, nconf->nc_netid)) in getnetconfigent()
118 return (nconf); in getnetconfigent()
125 freenetconfigent(struct netconfig *nconf) in freenetconfigent() argument
H A Drpc_generic.c232 __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip) in __rpc_nconf2sockinfo() argument
237 if (strcmp(na_cvt[i].netid, nconf->nc_netid) == 0 || ( in __rpc_nconf2sockinfo()
238 strcmp(nconf->nc_netid, "unix") == 0 && in __rpc_nconf2sockinfo()
243 __rpc_seman2socktype((int)nconf->nc_semantics); in __rpc_nconf2sockinfo()
254 __rpc_nconf2socket(const struct netconfig *nconf) in __rpc_nconf2socket() argument
260 if (!__rpc_nconf2sockinfo(nconf, &si)) in __rpc_nconf2socket()
274 taddr2uaddr(const struct netconfig *nconf, const struct netbuf *nbuf) in taddr2uaddr() argument
278 if (!__rpc_nconf2sockinfo(nconf, &si)) in taddr2uaddr()
284 uaddr2taddr(const struct netconfig *nconf, const char *uaddr) in uaddr2taddr() argument
288 if (!__rpc_nconf2sockinfo(nconf, &si)) in uaddr2taddr()
[all …]
H A Drpcb_clnt.c80 const struct netconfig *nconf, /* Network structure of transport */ in rpcb_set() argument
92 if (nconf == NULL) { in rpcb_set()
103 nconfcopy = *nconf; in rpcb_set()
112 parms.r_netid = nconf->nc_netid; in rpcb_set()
140 rpcb_unset(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf) in rpcb_unset() argument
150 if (nconf) in rpcb_unset()
151 parms.r_netid = nconf->nc_netid; in rpcb_unset()
/freebsd/usr.sbin/rpc.lockd/
H A Dlockd.c100 static int create_service(struct netconfig *nconf);
101 static void complete_service(struct netconfig *nconf, char *port_str);
123 struct netconfig *nconf; in main() local
307 while ((nconf = getnetconfig(nc_handle))) { in main()
309 if (nconf->nc_flag & NC_VISIBLE) { in main()
311 if (have_v6 == 0 && strcmp(nconf->nc_protofmly, "inet6") == 0) { in main()
314 create_service(nconf); in main()
326 while ((nconf = getnetconfig(nc_handle))) { in main()
328 if (nconf->nc_flag & NC_VISIBLE) { in main()
330 if (have_v6 == 0 && strcmp(nconf->nc_protofmly, "inet6") == 0) { in main()
[all …]
/freebsd/usr.sbin/rpc.statd/
H A Dstatd.c71 static int create_service(struct netconfig *nconf);
72 static void complete_service(struct netconfig *nconf, char *port_str);
83 struct netconfig *nconf; in main() local
201 while ((nconf = getnetconfig(nc_handle))) { in main()
203 if (nconf->nc_flag & NC_VISIBLE) { in main()
205 if (have_v6 == 0 && strcmp(nconf->nc_protofmly, "inet6") == 0) { in main()
208 ret = create_service(nconf); in main()
265 while ((nconf = getnetconfig(nc_handle))) { in main()
267 if (nconf->nc_flag & NC_VISIBLE) { in main()
269 if (have_v6 == 0 && strcmp(nconf->nc_protofmly, "inet6") == 0) { in main()
[all …]
/freebsd/usr.sbin/ypserv/
H A Dyp_main.c252 create_service(const int sock, const struct netconfig *nconf, in create_service() argument
290 s = __rpc_nconf2fd(nconf); in create_service()
295 nconf->nc_netid); in create_service()
299 nconf->nc_netid, in create_service()
310 nconf->nc_netid, in create_service()
317 if (nconf->nc_semantics != NC_TPI_CLTS) in create_service()
396 if (nconf->nc_semantics == NC_TPI_CLTS) in create_service()
403 nconf->nc_netid); in create_service()
410 " %s", nconf->nc_netid, strerror(errno)); in create_service()
417 nconf->nc_netid, strerror(errno)); in create_service()
[all …]
/freebsd/usr.bin/rpcinfo/
H A Drpcinfo.c307 struct netconfig *nconf; local
311 while ((nconf = getnetconfig(localhandle)) != NULL) {
312 if (nconf->nc_protofmly != NULL &&
313 strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0)
316 if (nconf == NULL) {
321 clnt = clnt_tp_create(NULL, prog, vers, nconf);
550 struct netconfig *nconf; local
558 if ((nconf = __rpc_getconfip("udp")) == NULL &&
559 (nconf = __rpc_getconfip("tcp")) == NULL)
571 (void) freenetconfigent(nconf);
[all …]
/freebsd/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()
/freebsd/contrib/wpa/src/ap/
H A Dwps_hostapd.c458 FILE *oconf, *nconf; in hapd_wps_cred_cb() local
547 nconf = fopen(tmp_fname, "w"); in hapd_wps_cred_cb()
548 if (nconf == NULL) { in hapd_wps_cred_cb()
556 fprintf(nconf, "# WPS configuration - START\n"); in hapd_wps_cred_cb()
558 fprintf(nconf, "wps_state=2\n"); in hapd_wps_cred_cb()
561 fprintf(nconf, "ssid2="); in hapd_wps_cred_cb()
563 fprintf(nconf, "%02x", cred->ssid[i]); in hapd_wps_cred_cb()
564 fprintf(nconf, "\n"); in hapd_wps_cred_cb()
566 fprintf(nconf, "ssid="); in hapd_wps_cred_cb()
568 fputc(cred->ssid[i], nconf); in hapd_wps_cred_cb()
[all …]

12