/netbsd-current/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 | 102 struct netconfig *nconf; local 111 while ((nconf = __rpc_getconf(handle)) != NULL) { 114 if (strcmp(l->xprt->xp_netid, nconf->nc_netid) == 0) { 116 (void) rpcb_unset(prognum, versnum, nconf); 118 dispatch, nconf) == FALSE) 122 (unsigned)versnum, nconf->nc_netid); 130 xprt = svc_tp_create(dispatch, prognum, versnum, nconf); 156 * It tries to create a server for "nconf" and registers the service 164 const struct netconfig *nconf) /* Netconfig structure for the network */ 168 if (nconf 160 svc_tp_create( void (*dispatch)(struct svc_req *, SVCXPRT *), rpcprog_t prognum, rpcvers_t versnum, const struct netconfig *nconf) argument 198 svc_tli_create( int fd, const struct netconfig *nconf, const struct t_bind *bindaddr, u_int sendsz, u_int recvsz) argument [all...] |
H A D | clnt_generic.c | 158 struct netconfig *nconf; local 173 if ((nconf = __rpc_getconf(handle)) == NULL) { 179 printf("trying netid %s\n", nconf->nc_netid); 181 clnt = clnt_tp_create(hostname, prog, vers, nconf); 229 const struct netconfig *nconf) /* net config struct */ 235 /* nconf is handled below */ 237 if (nconf == NULL) { 245 if ((svcaddr = __rpcb_findaddr(prog, vers, nconf, hostname, 251 cl = clnt_tli_create(RPC_ANYFD, nconf, svcaddr, 257 cl->cl_netid = strdup(nconf 225 clnt_tp_create( const char * hostname, rpcprog_t prog, rpcvers_t vers, const struct netconfig *nconf) argument 291 clnt_tli_create( int fd, const struct netconfig *nconf, const struct netbuf *svcaddr, rpcprog_t prog, rpcvers_t vers, u_int sendsz, u_int recvsz) argument [all...] |
H A D | rpc_generic.c | 278 struct netconfig *nconf; local 285 while ((nconf = getnetconfig(confighandle)) != NULL) { 286 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) { 287 if (strcmp(nconf->nc_proto, NC_TCP) == 0) { 288 netid_tcp = strdup(nconf->nc_netid); 301 if (strcmp(nconf->nc_proto, NC_UDP) == 0) { 302 netid_udp = strdup(nconf->nc_netid); 386 struct netconfig *nconf; local 394 nconf = getnetpath(handle->nhandle); 396 nconf 550 __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip) argument 573 __rpc_nconf2fd(const struct netconfig *nconf) argument 605 taddr2uaddr(const struct netconfig *nconf, const struct netbuf *nbuf) argument 618 uaddr2taddr(const struct netconfig *nconf, const char *uaddr) argument [all...] |
H A D | rpcb_clnt.c | 305 getclnthandle(const char *host, const struct netconfig *nconf, char **targaddr) argument 316 _DIAGASSERT(nconf != NULL); 326 ad_cache = check_cache(host, nconf->nc_netid); 329 client = clnt_tli_create(RPC_ANYFD, nconf, addr, 356 if (!__rpc_nconf2sockinfo(nconf, &si)) { 368 nconf->nc_netid, si.si_af, si.si_proto, si.si_socktype); 384 ua = taddr2uaddr(nconf, &taddr); 402 client = clnt_tli_create(RPC_ANYFD, nconf, &taddr, 411 tmpaddr = targaddr ? taddr2uaddr(nconf, &taddr) : NULL; 412 add_cache(host, nconf 477 struct netconfig *nconf, *tmpnconf = NULL; local 532 rpcb_set(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf, const struct netbuf *address) argument 592 rpcb_unset(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf) argument 630 got_entry(rpcb_entry_list_ptr relp, const struct netconfig *nconf) argument 677 __rpcb_findaddr(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf, const char *host, CLIENT **clpp) argument 979 rpcb_getaddr(const rpcprog_t program, const rpcvers_t version, const struct netconfig *nconf, struct netbuf *address, const char *host) argument 1013 rpcb_getmaps(const struct netconfig *nconf, const char *host) argument 1063 rpcb_rmtcall( const struct netconfig *nconf, const char *host, rpcprog_t prog, rpcvers_t vers, rpcproc_t proc, xdrproc_t xdrargs, const char *argsp, xdrproc_t xdrres, caddr_t resp, struct timeval tout, const struct netbuf *addr_ptr) argument 1145 struct netconfig *nconf; local 1200 rpcb_taddr2uaddr(struct netconfig *nconf, struct netbuf *taddr) argument 1235 rpcb_uaddr2taddr(struct netconfig *nconf, char *uaddr) argument [all...] |
H A D | rpc_soc.c | 114 struct netconfig *nconf; local 124 if ((nconf = __rpc_getconfip(tp)) == NULL) { 130 fd = __rpc_nconf2fd(nconf); 156 cl = clnt_tli_create(fd, nconf, &bindaddr, prog, vers, 166 (void) freenetconfigent(nconf); 178 (void) freenetconfigent(nconf); 228 struct netconfig *nconf; local 236 if ((nconf = __rpc_getconfip(netid)) == NULL) { 241 fd = __rpc_nconf2fd(nconf); 243 (void) freenetconfigent(nconf); 365 rpc_wrap_bcast( char *resultp, struct netbuf *addr, struct netconfig *nconf) argument [all...] |
H A D | svc_simple.c | 114 struct netconfig *nconf; local 132 while ((nconf = __rpc_getconf(handle)) != NULL) { 146 if (strcmp(pl->p_netid, nconf->nc_netid) == 0) { 157 svcxprt = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); 172 ((netid = strdup(nconf->nc_netid)) == NULL)) { 193 (void) rpcb_unset(prognum, versnum, nconf); 196 nconf = NULL; 199 if (!svc_reg(svcxprt, prognum, versnum, universal, nconf)) {
|
H A D | clnt_bcast.c | 282 struct netconfig *nconf; /* Netconfig structure */ member in struct:__anon2 293 struct netconfig *nconf; local 325 while ((nconf = __rpc_getconf(handle)) != NULL) { 329 if (nconf->nc_semantics != NC_TPI_CLTS) 333 if (!__rpc_nconf2sockinfo(nconf, &si)) 349 fdlist[fdlistno].nconf = nconf; 487 fdlist[i].nconf->nc_netid); 510 fdlist[i].nconf->nc_netid); 558 fdlist[i].nconf [all...] |
H A D | svc_dg.c | 485 struct netconfig *nconf; local 533 if (nconf = getnetconfigent(xprt->xp_netid)) { 534 uaddr = taddr2uaddr(nconf, &xprt->xp_rtaddr); 535 freenetconfigent(nconf); 577 struct netconfig *nconf; local 600 if (nconf = getnetconfigent(xprt->xp_netid)) { 601 uaddr = taddr2uaddr(nconf, &xprt->xp_rtaddr); 602 freenetconfigent(nconf);
|
H A D | svc.c | 250 const struct netconfig *nconf) 267 } else if (nconf && nconf->nc_netid) { 268 netid = strdup(nconf->nc_netid); 314 if (nconf) { 315 dummy = rpcb_set(prog, vers, __UNCONST(nconf), 248 svc_reg(SVCXPRT *xprt, const rpcprog_t prog, const rpcvers_t vers, void (*dispatch)(struct svc_req *, SVCXPRT *), const struct netconfig *nconf) argument
|
/netbsd-current/usr.sbin/rpcbind/ |
H A D | rpcbind.c | 152 struct netconfig *nconf; local 197 nconf = getnetconfigent("local"); 198 if (nconf == NULL) 203 init_transport(nconf); 205 while ((nconf = getnetconfig(nc_handle))) { 206 if (nconf->nc_flag & NC_VISIBLE) { 207 if (ipv6_only == 1 && strcmp(nconf->nc_protofmly, 211 init_transport(nconf); 280 init_transport(struct netconfig *nconf) argument 299 if ((nconf 810 rbllist_add(rpcprog_t prog, rpcvers_t vers, struct netconfig *nconf, struct netbuf *addr) argument [all...] |
H A D | check_bound.c | 70 struct netconfig *nconf; member in struct:fdlist 96 na = uaddr2taddr(fdl->nconf, uaddr); 100 fd = __rpc_nconf2fd(fdl->nconf); 121 add_bndlist(struct netconfig *nconf, struct netbuf *baddr __unused) argument 126 newnconf = getnetconfigent(nconf->nc_netid); 135 fdl->nconf = newnconf; 156 if (strcmp(fdl->nconf->nc_netid, netid) == 0) 175 if (strcmp(fdl->nconf->nc_netid, netid) == 0) 193 c_uaddr = taddr2uaddr(fdl->nconf, &xprt->xp_rtaddr); 198 c_uaddr = taddr2uaddr(fdl->nconf, svc_getrpccalle [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 355 nconf = rpcbind_get_conf(rbl->rpcb_map.r_netid); 356 if (nconf == NULL) 358 if (strcmp(nconf->nc_protofmly, reg_nconf->nc_protofmly) 395 a->r_nc_netid = nconf->nc_netid; 396 a->r_nc_semantics = nconf->nc_semantics; 397 a->r_nc_protofmly = nconf->nc_protofmly; 398 a->r_nc_proto = nconf->nc_proto;
|
H A D | util.c | 106 struct netconfig *nconf; local 120 nconf = getnetconfigent(netid); 121 if (nconf == NULL) 130 serv_nbp = uaddr2taddr(nconf, serv_uaddr); 136 clnt_nbp = uaddr2taddr(nconf, clnt_uaddr); 282 ret = taddr2uaddr(nconf, &tbuf); 284 freenetconfigent(nconf);
|
H A D | rpcb_svc_com.c | 382 struct netconfig *nconf; local 391 if (((nconf = rpcbind_get_conf(transp->xp_netid)) == NULL) || 392 ((taddr = uaddr2taddr(nconf, *uaddrp)) == NULL)) { 410 struct netconfig *nconf; local 424 if (((nconf = rpcbind_get_conf(transp->xp_netid)) == NULL) || 425 ((uaddr = taddr2uaddr(nconf, taddr)) == NULL)) { 503 create_rmtcall_fd(struct netconfig *nconf) argument 509 if ((fd = __rpc_nconf2fd(nconf)) == -1) { 512 __func__, nconf->nc_device, strerror(errno)); 528 rmt->netid = strdup(nconf 613 struct netconfig *nconf; local [all...] |
/netbsd-current/usr.sbin/rpc.lockd/ |
H A D | lockd.c | 92 struct netconfig *nconf; local 153 nconf = getnetconfigent(transports[i]); 154 if (nconf == NULL) 157 transp = svc_tli_create(RPC_ANYFD, nconf, NULL, RPC_MAXDATASIZE, 163 if (!svc_reg(transp, NLM_PROG, NLM_SM, nlm_prog_0, nconf)) { 168 if (!svc_reg(transp, NLM_PROG, NLM_VERS, nlm_prog_1, nconf)) { 173 if (!svc_reg(transp, NLM_PROG, NLM_VERSX, nlm_prog_3, nconf)) { 178 if (!svc_reg(transp, NLM_PROG, NLM_VERS4, nlm_prog_4, nconf)) { 183 freenetconfigent(nconf);
|
H A D | lock_proc.c | 157 struct netconfig *nconf; local 217 nconf = getnetconfigent(netid); 218 if (nconf == NULL) { 224 client = clnt_tp_create(host, NLM_PROG, vers, nconf); 225 freenetconfigent(nconf);
|
/netbsd-current/usr.bin/rpcinfo/ |
H A D | rpcinfo.c | 558 struct netconfig *nconf; local 566 if ((nconf = __rpc_getconfip("udp")) == NULL && 567 (nconf = __rpc_getconfip("tcp")) == NULL) { 580 (void)freenetconfigent(nconf); 599 struct netconfig *nconf /* On which transport the reply came */ 614 if (!(uaddr = uf = taddr2uaddr(nconf, who))) { 703 struct netconfig *nconf; local 705 nconf = getnetconfigent(netid); 706 if (nconf == NULL) 709 client = getclnthandle(host, nconf, RPCBVER 911 struct netconfig *nconf; local 937 struct netconfig *nconf; local 1234 struct netconfig *nconf = NULL; local 1253 clnt_addr_create(const char *address, const struct netconfig *nconf, rpcprog_t prog, rpcvers_t vers) argument 1294 struct netconfig *nconf; local 1394 struct netconfig *nconf; local 1597 struct netconfig *nconf; local 1622 getclnthandle(const char *host, const struct netconfig *nconf, rpcvers_t rpcbversnum, struct netbuf **targaddr) argument [all...] |
/netbsd-current/sbin/mount_nfs/ |
H A D | getnfsargs.c | 109 struct netconfig *nconf; local 157 * XXX. Need a generic (family, type, proto) -> nconf interface. 158 * __rpc_*2nconf exist, maybe they should be exported. 172 nconf = getnetconfigent(netid); 180 if (!rpcb_getaddr(RPCPROG_NFS, nfsvers, nconf, &nfs_nb, hostp)){ 205 mnttcp_ok ? nconf : getnetconfigent(netid));
|
/netbsd-current/external/bsd/wpa/dist/src/ap/ |
H A D | wps_hostapd.c | 410 FILE *oconf, *nconf; local 499 nconf = fopen(tmp_fname, "w"); 500 if (nconf == NULL) { 508 fprintf(nconf, "# WPS configuration - START\n"); 510 fprintf(nconf, "wps_state=2\n"); 513 fprintf(nconf, "ssid2="); 515 fprintf(nconf, "%02x", cred->ssid[i]); 516 fprintf(nconf, "\n"); 518 fprintf(nconf, "ssid="); 520 fputc(cred->ssid[i], nconf); [all...] |
/netbsd-current/usr.sbin/inetd/ |
H A D | inetd.c | 865 struct netconfig *nconf; local 869 if ((nconf = getnetconfigent(sep->se_proto+4)) == NULL) { 886 sep->se_rpcprog, n, nconf->nc_netid, 887 taddr2uaddr(nconf, &nbuf)); 888 (void)rpcb_unset((unsigned int)sep->se_rpcprog, (unsigned int)n, nconf); 889 if (rpcb_set((unsigned int)sep->se_rpcprog, (unsigned int)n, nconf, &nbuf) == 0) 891 sep->se_rpcprog, n, nconf->nc_netid, 892 taddr2uaddr(nconf, &nbuf), clnt_spcreateerror("")); 902 struct netconfig *nconf; local 904 if ((nconf [all...] |
/netbsd-current/sys/fs/nfs/common/ |
H A D | nfs_commonkrpc.c | 174 struct netconfig *nconf; local 205 nconf = getnetconfigent("udp"); 207 nconf = getnetconfigent("tcp"); 210 nconf = getnetconfigent("udp6"); 212 nconf = getnetconfigent("tcp6"); 268 client = clnt_reconnect_create(nconf, saddr, nrp->nr_prog,
|
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/asn1/ |
H A D | asn1_gen.c | 78 ASN1_TYPE *ASN1_generate_nconf(const char *str, CONF *nconf) argument 82 if (!nconf) 85 X509V3_set_nconf(&cnf, nconf);
|
/netbsd-current/sys/fs/nfs/nlm/ |
H A D | nlm_prot_impl.c | 530 struct netconfig *nconf = NULL; local 536 nconf = getnetconfigent("tcp"); 540 nconf = getnetconfigent("tcp6"); 545 rpcb = clnt_reconnect_create(nconf, (struct sockaddr *)&ss, 1444 struct netconfig *nconf; local 1485 nconf = getnetconfigent(netid); 1486 if (!nconf) { 1493 NLM_PROG, versions[i], uaddr, nconf); 1500 freenetconfigent(nconf); 1502 nconf [all...] |