/netbsd-6-1-5-RELEASE/lib/libc/rpc/ |
H A D | pmap_clnt.c | 75 struct netconfig *nconf; local 81 nconf = __rpc_getconfip(protocol == IPPROTO_UDP ? "udp" : "tcp"); 82 if (nconf == NULL) { 87 na = uaddr2taddr(nconf, buf); 89 freenetconfigent(nconf); 92 rslt = rpcb_set((rpcprog_t)program, (rpcvers_t)version, nconf, na); 94 freenetconfigent(nconf); 105 struct netconfig *nconf; local 109 nconf = __rpc_getconfip("udp"); 110 if (nconf ! [all...] |
H A D | svc_generic.c | 101 struct netconfig *nconf; local 113 while ((nconf = __rpc_getconf(handle)) != NULL) { 116 if (strcmp(l->xprt->xp_netid, nconf->nc_netid) == 0) { 118 (void) rpcb_unset(prognum, versnum, nconf); 120 dispatch, nconf) == FALSE) 124 nconf->nc_netid); 132 xprt = svc_tp_create(dispatch, prognum, versnum, nconf); 158 * It tries to create a server for "nconf" and registers the service 162 svc_tp_create(dispatch, prognum, versnum, nconf) 166 const struct netconfig *nconf; /* Netconfi [all...] |
H A D | clnt_generic.c | 156 struct netconfig *nconf; local 171 if ((nconf = __rpc_getconf(handle)) == NULL) { 177 printf("trying netid %s\n", nconf->nc_netid); 179 clnt = clnt_tp_create(hostname, prog, vers, nconf); 223 clnt_tp_create(hostname, prog, vers, nconf) 227 const struct netconfig *nconf; /* net config struct */ 233 /* nconf is handled below */ 235 if (nconf == NULL) { 243 if ((svcaddr = __rpcb_findaddr(prog, vers, nconf, hostname, 249 cl = clnt_tli_create(RPC_ANYFD, nconf, svcadd [all...] |
H A D | rpcb_clnt.c | 318 getclnthandle(host, nconf, targaddr) 320 const struct netconfig *nconf; 332 _DIAGASSERT(nconf != NULL); 342 ad_cache = check_cache(host, nconf->nc_netid); 345 client = clnt_tli_create(RPC_ANYFD, nconf, addr, 372 if (!__rpc_nconf2sockinfo(nconf, &si)) { 384 nconf->nc_netid, si.si_af, si.si_proto, si.si_socktype); 400 ua = taddr2uaddr(nconf, &taddr); 418 client = clnt_tli_create(RPC_ANYFD, nconf, &taddr, 427 tmpaddr = targaddr ? taddr2uaddr(nconf, 493 struct netconfig *nconf, *tmpnconf = NULL; local 1173 struct netconfig *nconf; local [all...] |
H A D | rpc_generic.c | 279 struct netconfig *nconf; local 286 while ((nconf = getnetconfig(confighandle)) != NULL) { 287 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) { 288 if (strcmp(nconf->nc_proto, NC_TCP) == 0) { 289 netid_tcp = strdup(nconf->nc_netid); 302 if (strcmp(nconf->nc_proto, NC_UDP) == 0) { 303 netid_udp = strdup(nconf->nc_netid); 389 struct netconfig *nconf; local 397 nconf = getnetpath(handle->nhandle); 399 nconf 556 __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip) argument 579 __rpc_nconf2fd(const struct netconfig *nconf) argument 611 taddr2uaddr(const struct netconfig *nconf, const struct netbuf *nbuf) argument 624 uaddr2taddr(const struct netconfig *nconf, const char *uaddr) argument [all...] |
H A D | rpc_soc.c | 123 struct netconfig *nconf; local 133 if ((nconf = __rpc_getconfip(tp)) == NULL) { 139 fd = __rpc_nconf2fd(nconf); 165 cl = clnt_tli_create(fd, nconf, &bindaddr, prog, vers, 175 (void) freenetconfigent(nconf); 187 (void) freenetconfigent(nconf); 259 struct netconfig *nconf; local 267 if ((nconf = __rpc_getconfip(netid)) == NULL) { 272 fd = __rpc_nconf2fd(nconf); 274 (void) freenetconfigent(nconf); [all...] |
H A D | svc_simple.c | 115 struct netconfig *nconf; local 136 while ((nconf = __rpc_getconf(handle)) != NULL) { 150 if (strcmp(pl->p_netid, nconf->nc_netid) == 0) { 161 svcxprt = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); 176 ((netid = strdup(nconf->nc_netid)) == NULL)) { 197 (void) rpcb_unset(prognum, versnum, nconf); 200 nconf = NULL; 203 if (!svc_reg(svcxprt, prognum, versnum, universal, nconf)) {
|
/netbsd-6-1-5-RELEASE/usr.sbin/rpcbind/ |
H A D | rpcbind.c | 114 struct netconfig *nconf; local 137 nconf = getnetconfigent("local"); 138 if (nconf == NULL) 143 init_transport(nconf); 145 while ((nconf = getnetconfig(nc_handle))) { 146 if (nconf->nc_flag & NC_VISIBLE) 147 init_transport(nconf); 210 init_transport(struct netconfig *nconf) argument 224 if ((nconf->nc_semantics != NC_TPI_CLTS) && 225 (nconf 489 rbllist_add(rpcprog_t prog, rpcvers_t vers, struct netconfig *nconf, struct netbuf *addr) argument [all...] |
H A D | check_bound.c | 64 struct netconfig *nconf; member in struct:fdlist 90 na = uaddr2taddr(fdl->nconf, uaddr); 94 fd = __rpc_nconf2fd(fdl->nconf); 109 add_bndlist(struct netconfig *nconf, struct netbuf *baddr) argument 114 newnconf = getnetconfigent(nconf->nc_netid); 123 fdl->nconf = newnconf; 144 if (strcmp(fdl->nconf->nc_netid, netid) == 0) 163 if (strcmp(fdl->nconf->nc_netid, netid) == 0) 178 c_uaddr = taddr2uaddr(fdl->nconf, svc_getrpccaller(xprt)); 181 fdl->nconf [all...] |
H A D | rpcb_stat.c | 107 struct netconfig *nconf; local 124 nconf = rpcbind_get_conf(netid); 125 if (nconf == NULL) { 134 al->netid = nconf->nc_netid; 151 struct netconfig *nconf; local 173 nconf = rpcbind_get_conf(netid); 174 if (nconf == NULL) { 184 rl->netid = nconf->nc_netid;
|
H A D | rpcb_svc_4.c | 330 struct netconfig *nconf; local 354 nconf = rpcbind_get_conf(rbl->rpcb_map.r_netid); 355 if (nconf == NULL) 357 if (strcmp(nconf->nc_protofmly, reg_nconf->nc_protofmly) 397 a->r_nc_netid = nconf->nc_netid; 398 a->r_nc_semantics = nconf->nc_semantics; 399 a->r_nc_protofmly = nconf->nc_protofmly; 400 a->r_nc_proto = nconf->nc_proto;
|
H A D | util.c | 115 struct netconfig *nconf; local 129 nconf = getnetconfigent(netid); 130 if (nconf == NULL) 139 serv_nbp = uaddr2taddr(nconf, serv_uaddr); 145 clnt_nbp = uaddr2taddr(nconf, clnt_uaddr); 289 ret = taddr2uaddr(nconf, &tbuf); 291 freenetconfigent(nconf);
|
/netbsd-6-1-5-RELEASE/tests/fs/nfs/nfsservice/rpcbind/ |
H A D | rpcbind.c | 123 struct netconfig *nconf; local 155 nconf = getnetconfigent("local"); 156 if (nconf == NULL) 161 init_transport(nconf); 163 while ((nconf = getnetconfig(nc_handle))) { 164 if (nconf->nc_flag & NC_VISIBLE) 165 init_transport(nconf); 229 init_transport(struct netconfig *nconf) argument 243 if ((nconf->nc_semantics != NC_TPI_CLTS) && 244 (nconf 510 rbllist_add(rpcprog_t prog, rpcvers_t vers, struct netconfig *nconf, struct netbuf *addr) argument [all...] |
H A D | check_bound.c | 67 struct netconfig *nconf; member in struct:fdlist 93 na = uaddr2taddr(fdl->nconf, uaddr); 97 fd = __rpc_nconf2fd(fdl->nconf); 112 add_bndlist(struct netconfig *nconf, struct netbuf *baddr) argument 117 newnconf = getnetconfigent(nconf->nc_netid); 126 fdl->nconf = newnconf; 147 if (strcmp(fdl->nconf->nc_netid, netid) == 0) 166 if (strcmp(fdl->nconf->nc_netid, netid) == 0) 181 c_uaddr = taddr2uaddr(fdl->nconf, svc_getrpccaller(xprt)); 184 fdl->nconf [all...] |
H A D | rpcb_stat.c | 107 struct netconfig *nconf; local 124 nconf = rpcbind_get_conf(netid); 125 if (nconf == NULL) { 134 al->netid = nconf->nc_netid; 151 struct netconfig *nconf; local 173 nconf = rpcbind_get_conf(netid); 174 if (nconf == NULL) { 184 rl->netid = nconf->nc_netid;
|
H A D | rpcb_svc_4.c | 330 struct netconfig *nconf; local 354 nconf = rpcbind_get_conf(rbl->rpcb_map.r_netid); 355 if (nconf == NULL) 357 if (strcmp(nconf->nc_protofmly, reg_nconf->nc_protofmly) 397 a->r_nc_netid = nconf->nc_netid; 398 a->r_nc_semantics = nconf->nc_semantics; 399 a->r_nc_protofmly = nconf->nc_protofmly; 400 a->r_nc_proto = nconf->nc_proto;
|
H A D | util.c | 118 struct netconfig *nconf; local 132 nconf = getnetconfigent(netid); 133 if (nconf == NULL) 142 serv_nbp = uaddr2taddr(nconf, serv_uaddr); 148 clnt_nbp = uaddr2taddr(nconf, clnt_uaddr); 292 ret = taddr2uaddr(nconf, &tbuf); 294 freenetconfigent(nconf);
|
/netbsd-6-1-5-RELEASE/tests/fs/common/nfsrpc/ |
H A D | svc_generic.c | 96 struct netconfig *nconf; local 108 while ((nconf = __rpc_getconf(handle)) != NULL) { 111 if (strcmp(l->xprt->xp_netid, nconf->nc_netid) == 0) { 113 (void) rpcb_unset(prognum, versnum, nconf); 115 dispatch, nconf) == FALSE) 119 nconf->nc_netid); 127 xprt = svc_tp_create(dispatch, prognum, versnum, nconf); 153 * It tries to create a server for "nconf" and registers the service 157 svc_tp_create(dispatch, prognum, versnum, nconf) 161 const struct netconfig *nconf; /* Netconfi [all...] |
H A D | clnt_generic.c | 150 struct netconfig *nconf; local 165 if ((nconf = __rpc_getconf(handle)) == NULL) { 171 printf("trying netid %s\n", nconf->nc_netid); 173 clnt = clnt_tp_create(hostname, prog, vers, nconf); 217 clnt_tp_create(hostname, prog, vers, nconf) 221 const struct netconfig *nconf; /* net config struct */ 227 /* nconf is handled below */ 229 if (nconf == NULL) { 237 if ((svcaddr = __rpcb_findaddr(prog, vers, nconf, hostname, 243 cl = clnt_tli_create(RPC_ANYFD, nconf, svcadd [all...] |
H A D | rpcb_clnt.c | 319 getclnthandle(host, nconf, targaddr) 321 const struct netconfig *nconf; 333 _DIAGASSERT(nconf != NULL); 343 ad_cache = check_cache(host, nconf->nc_netid); 346 client = clnt_tli_create(RPC_ANYFD, nconf, addr, 373 if (!__rpc_nconf2sockinfo(nconf, &si)) { 385 nconf->nc_netid, si.si_af, si.si_proto, si.si_socktype); 401 ua = taddr2uaddr(nconf, &taddr); 419 client = clnt_tli_create(RPC_ANYFD, nconf, &taddr, 428 tmpaddr = targaddr ? taddr2uaddr(nconf, 494 struct netconfig *nconf, *tmpnconf = NULL; local 1175 struct netconfig *nconf; local [all...] |
H A D | rpc_generic.c | 282 struct netconfig *nconf; local 289 while ((nconf = getnetconfig(confighandle)) != NULL) { 290 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) { 291 if (strcmp(nconf->nc_proto, NC_TCP) == 0) { 292 netid_tcp = strdup(nconf->nc_netid); 305 if (strcmp(nconf->nc_proto, NC_UDP) == 0) { 306 netid_udp = strdup(nconf->nc_netid); 392 struct netconfig *nconf; local 400 nconf = getnetpath(handle->nhandle); 402 nconf 559 __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip) argument 582 __rpc_nconf2fd(const struct netconfig *nconf) argument 614 taddr2uaddr(const struct netconfig *nconf, const struct netbuf *nbuf) argument 627 uaddr2taddr(const struct netconfig *nconf, const char *uaddr) argument [all...] |
H A D | rpc_soc.c | 108 struct netconfig *nconf; local 118 if ((nconf = __rpc_getconfip(tp)) == NULL) { 124 fd = __rpc_nconf2fd(nconf); 150 cl = clnt_tli_create(fd, nconf, &bindaddr, prog, vers, 160 (void) freenetconfigent(nconf); 172 (void) freenetconfigent(nconf); 244 struct netconfig *nconf; local 252 if ((nconf = __rpc_getconfip(netid)) == NULL) { 257 fd = __rpc_nconf2fd(nconf); 259 (void) freenetconfigent(nconf); [all...] |
/netbsd-6-1-5-RELEASE/usr.sbin/rpc.lockd/ |
H A D | lockd.c | 90 struct netconfig *nconf; local 136 nconf = getnetconfigent(transports[i]); 137 if (nconf == NULL) 140 transp = svc_tli_create(RPC_ANYFD, nconf, NULL, RPC_MAXDATASIZE, 146 if (!svc_reg(transp, NLM_PROG, NLM_SM, nlm_prog_0, nconf)) { 151 if (!svc_reg(transp, NLM_PROG, NLM_VERS, nlm_prog_1, nconf)) { 156 if (!svc_reg(transp, NLM_PROG, NLM_VERSX, nlm_prog_3, nconf)) { 161 if (!svc_reg(transp, NLM_PROG, NLM_VERS4, nlm_prog_4, nconf)) { 166 freenetconfigent(nconf);
|
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/ap/ |
H A D | wps_hostapd.c | 206 FILE *oconf, *nconf; local 280 nconf = fopen(tmp_fname, "w"); 281 if (nconf == NULL) { 289 fprintf(nconf, "# WPS configuration - START\n"); 291 fprintf(nconf, "wps_state=2\n"); 293 fprintf(nconf, "ssid="); 295 fputc(cred->ssid[i], nconf); 296 fprintf(nconf, "\n"); 310 fprintf(nconf, "wpa=%d\n", wpa); 312 fprintf(nconf, "wpa_key_mgm [all...] |
/netbsd-6-1-5-RELEASE/usr.bin/rpcinfo/ |
H A D | rpcinfo.c | 556 struct netconfig *nconf; local 564 if ((nconf = __rpc_getconfip("udp")) == NULL && 565 (nconf = __rpc_getconfip("tcp")) == NULL) { 578 (void)freenetconfigent(nconf); 597 struct netconfig *nconf /* On which transport the reply came */ 612 if (!(uaddr = uf = taddr2uaddr(nconf, who))) { 701 struct netconfig *nconf; local 703 nconf = getnetconfigent(netid); 704 if (nconf == NULL) 707 client = getclnthandle(host, nconf, RPCBVER 909 struct netconfig *nconf; local 935 struct netconfig *nconf; local 1232 struct netconfig *nconf = NULL; local 1251 clnt_addr_create(const char *address, const struct netconfig *nconf, rpcprog_t prog, rpcvers_t vers) argument 1292 struct netconfig *nconf; local 1392 struct netconfig *nconf; local 1576 struct netconfig *nconf; local 1601 getclnthandle(const char *host, const struct netconfig *nconf, rpcvers_t rpcbversnum, struct netbuf **targaddr) argument [all...] |