/freebsd-10.1-release/lib/libc/rpc/ |
H A D | pmap_clnt.c | 67 struct netconfig *nconf; local 73 nconf = __rpc_getconfip(protocol == IPPROTO_UDP ? "udp" : "tcp"); 74 if (nconf == NULL) { 79 na = uaddr2taddr(nconf, buf); 81 freenetconfigent(nconf); 84 rslt = rpcb_set((rpcprog_t)program, (rpcvers_t)version, nconf, na); 86 freenetconfigent(nconf); 97 struct netconfig *nconf; local 101 nconf = __rpc_getconfip("udp"); 102 if (nconf ! [all...] |
H A D | svc_generic.c | 90 struct netconfig *nconf; local 99 while ((nconf = __rpc_getconf(handle)) != NULL) { 102 if (strcmp(l->xprt->xp_netid, nconf->nc_netid) == 0) { 104 (void) rpcb_unset(prognum, versnum, nconf); 106 dispatch, nconf) == FALSE) 110 nconf->nc_netid); 118 xprt = svc_tp_create(dispatch, prognum, versnum, nconf); 144 * It tries to create a server for "nconf" and registers the service 148 svc_tp_create(dispatch, prognum, versnum, nconf) 152 const struct netconfig *nconf; /* Netconfi [all...] |
H A D | crypt_client.c | 54 struct netconfig *nconf; local 58 nconf = NULL; 60 while ((nconf = getnetconfig(localhandle)) != NULL) { 61 if (nconf->nc_protofmly != NULL && 62 strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) 65 if (nconf == NULL) { 69 clnt = clnt_tp_create(NULL, CRYPT_PROG, CRYPT_VERS, nconf);
|
H A D | rpcb_clnt.c | 289 getclnthandle(host, nconf, targaddr) 291 const struct netconfig *nconf; 310 ad_cache = check_cache(host, nconf->nc_netid); 313 client = clnt_tli_create(RPC_ANYFD, nconf, addr, 340 if (!__rpc_nconf2sockinfo(nconf, &si)) { 352 nconf->nc_netid, si.si_af, si.si_proto, si.si_socktype); 355 if (nconf->nc_protofmly != NULL && strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) { 390 ua = taddr2uaddr(nconf, &taddr); 408 client = clnt_tli_create(RPC_ANYFD, nconf, 481 struct netconfig *nconf, *tmpnconf = NULL; local 672 struct netconfig *nconf; local 1215 struct netconfig *nconf; local [all...] |
H A D | rpc_generic.c | 262 struct netconfig *nconf; local 269 while ((nconf = getnetconfig(confighandle)) != NULL) { 270 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) { 271 if (strcmp(nconf->nc_proto, NC_TCP) == 0 && 273 netid_tcp = strdup(nconf->nc_netid); 280 if (strcmp(nconf->nc_proto, NC_UDP) == 0 && 282 netid_udp = strdup(nconf->nc_netid); 360 struct netconfig *nconf; local 368 nconf = getnetpath(handle->nhandle); 370 nconf 526 __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip) argument 548 __rpc_nconf2fd(const struct netconfig *nconf) argument 562 struct netconfig *nconf; local 588 taddr2uaddr(const struct netconfig *nconf, const struct netbuf *nbuf) argument 598 uaddr2taddr(const struct netconfig *nconf, const char *uaddr) argument [all...] |
H A D | clnt_generic.c | 183 struct netconfig *nconf; local 208 if ((nconf = __rpc_getconf(handle)) == NULL) { 214 printf("trying netid %s\n", nconf->nc_netid); 216 clnt = clnt_tp_create_timed(hostname, prog, vers, nconf, tp); 267 const struct netconfig *nconf) 270 return (clnt_tp_create_timed(hostname, prog, vers, nconf, NULL)); 281 const struct netconfig *nconf, const struct timeval *tp) 286 if (nconf == NULL) { 295 (struct netconfig *)nconf, (char *)hostname, 301 cl = clnt_tli_create(RPC_ANYFD, nconf, svcadd 266 clnt_tp_create(const char *hostname, rpcprog_t prog, rpcvers_t vers, const struct netconfig *nconf) argument 280 clnt_tp_create_timed(const char *hostname, rpcprog_t prog, rpcvers_t vers, const struct netconfig *nconf, const struct timeval *tp) argument 332 clnt_tli_create(int fd, const struct netconfig *nconf, struct netbuf *svcaddr, rpcprog_t prog, rpcvers_t vers, uint sendsz, uint recvsz) argument [all...] |
H A D | rpc_soc.c | 103 struct netconfig *nconf; local 107 if ((nconf = __rpc_getconfip(tp)) == NULL) { 113 fd = __rpc_nconf2fd(nconf); 139 cl = clnt_tli_create(fd, nconf, &bindaddr, prog, vers, 149 (void) freenetconfigent(nconf); 161 (void) freenetconfigent(nconf); 233 struct netconfig *nconf; local 239 if ((nconf = __rpc_getconfip(netid)) == NULL) { 244 fd = __rpc_nconf2fd(nconf); 246 (void) freenetconfigent(nconf); 465 struct netconfig *nconf; local 515 struct netconfig *nconf; local [all...] |
H A D | svc_simple.c | 106 struct netconfig *nconf; local 125 while ((nconf = __rpc_getconf(handle)) != NULL) { 138 if (strcmp(pl->p_netid, nconf->nc_netid) == 0) { 150 svcxprt = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); 165 ((netid = strdup(nconf->nc_netid)) == NULL)) { 186 (void) rpcb_unset(prognum, versnum, nconf); 189 nconf = NULL; 192 if (!svc_reg(svcxprt, prognum, versnum, universal, nconf)) {
|
H A D | clnt_bcast.c | 264 struct netconfig *nconf; /* Netconfig structure */ member in struct:__anon5669 275 struct netconfig *nconf; local 306 while ((nconf = __rpc_getconf(handle)) != NULL) { 310 if (nconf->nc_semantics != NC_TPI_CLTS) 314 if (!__rpc_nconf2sockinfo(nconf, &si)) 330 fdlist[fdlistno].nconf = nconf; 472 fdlist[i].nconf->nc_netid); 494 fdlist[i].nconf->nc_netid); 540 fdlist[i].nconf [all...] |
H A D | key_call.c | 312 struct netconfig *nconf; local 385 while ((nconf = getnetconfig(localhandle)) != NULL) { 386 if (strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) { 391 if (nconf->nc_semantics == NC_TPI_COTS_ORD) { 393 KEY_PROG, vers, nconf); 397 tpconf = nconf;
|
/freebsd-10.1-release/sys/rpc/ |
H A D | getnetconfig.c | 101 struct netconfig *nconf; local 103 nconf = *nconfp; 104 if (nconf->nc_netid == NULL) 109 return (nconf); 115 struct netconfig *nconf; local 117 for (nconf = netconfigs; nconf->nc_netid; nconf++) { 118 if (!strcmp(netid, nconf->nc_netid)) 119 return (nconf); 126 freenetconfigent(struct netconfig *nconf) argument [all...] |
H A D | svc_generic.c | 92 struct netconfig *nconf; local 99 while ((nconf = __rpc_getconf(handle)) != NULL) { 104 if (strcmp(xprt->xp_netid, nconf->nc_netid)) 108 (void) rpcb_unset(prognum, versnum, nconf); 110 dispatch, nconf) == FALSE) { 114 nconf->nc_netid); 127 NULL, nconf); 144 * It tries to create a server for "nconf" and registers the service 154 const struct netconfig *nconf) /* Netconfig structure for the network */ 161 if (nconf 148 svc_tp_create( SVCPOOL *pool, void (*dispatch)(struct svc_req *, SVCXPRT *), rpcprog_t prognum, rpcvers_t versnum, const char *uaddr, const struct netconfig *nconf) argument 205 svc_tli_create( SVCPOOL *pool, struct socket *so, const struct netconfig *nconf, const struct t_bind *bindaddr, size_t sendsz, size_t recvsz) argument [all...] |
H A D | rpcb_clnt.c | 286 getclnthandle(host, nconf, targaddr) 288 const struct netconfig *nconf; 307 ad_cache = check_cache(host, nconf->nc_netid); 310 client = clnt_tli_create(RPC_ANYFD, nconf, addr, 337 if (!__rpc_nconf2sockinfo(nconf, &si)) { 349 nconf->nc_netid, si.si_af, si.si_proto, si.si_socktype); 352 if (nconf->nc_protofmly != NULL && strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) { 387 ua = taddr2uaddr(nconf, &taddr); 405 client = clnt_tli_create(RPC_ANYFD, nconf, 539 rpcb_set(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf, const struct netbuf *address) argument 607 rpcb_unset(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf) argument [all...] |
H A D | rpc_generic.c | 235 __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip) argument 240 if (strcmp(na_cvt[i].netid, nconf->nc_netid) == 0 || ( 241 strcmp(nconf->nc_netid, "unix") == 0 && 246 __rpc_seman2socktype((int)nconf->nc_semantics); 257 __rpc_nconf2socket(const struct netconfig *nconf) argument 263 if (!__rpc_nconf2sockinfo(nconf, &si)) 277 taddr2uaddr(const struct netconfig *nconf, const struct netbuf *nbuf) argument 281 if (!__rpc_nconf2sockinfo(nconf, &si)) 287 uaddr2taddr(const struct netconfig *nconf, const char *uaddr) argument 291 if (!__rpc_nconf2sockinfo(nconf, 522 struct netconfig *nconf; local 611 struct netconfig *nconf; local [all...] |
/freebsd-10.1-release/usr.sbin/rpcbind/ |
H A D | rpcbind.c | 128 struct netconfig *nconf; local 168 nconf = getnetconfigent("local"); 169 if (nconf == NULL) 170 nconf = getnetconfigent("unix"); 171 if (nconf == NULL) { 178 init_transport(nconf); 180 while ((nconf = getnetconfig(nc_handle))) { 181 if (nconf->nc_flag & NC_VISIBLE) { 182 if (ipv6_only == 1 && strcmp(nconf->nc_protofmly, 186 init_transport(nconf); 247 init_transport(struct netconfig *nconf) argument 734 rbllist_add(rpcprog_t prog, rpcvers_t vers, struct netconfig *nconf, struct netbuf *addr) argument [all...] |
H A D | check_bound.c | 65 struct netconfig *nconf; member in struct:fdlist 91 na = uaddr2taddr(fdl->nconf, uaddr); 95 fd = __rpc_nconf2fd(fdl->nconf); 112 add_bndlist(struct netconfig *nconf, struct netbuf *baddr __unused) 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 | 109 struct netconfig *nconf; local 126 nconf = rpcbind_get_conf(netid); 127 if (nconf == NULL) { 136 al->netid = nconf->nc_netid; 153 struct netconfig *nconf; local 175 nconf = rpcbind_get_conf(netid); 176 if (nconf == NULL) { 186 rl->netid = nconf->nc_netid;
|
H A D | rpcb_svc_4.c | 332 struct netconfig *nconf; local 357 nconf = rpcbind_get_conf(rbl->rpcb_map.r_netid); 358 if (nconf == NULL) 360 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 | 96 struct netconfig *nconf; local 106 if ((nconf = rpcbind_get_conf(netid)) == NULL) 108 if ((caller_uaddr = taddr2uaddr(nconf, caller)) == NULL) 118 if ((hint_nbp = uaddr2taddr(nconf, clnt_uaddr)) == NULL) 219 serv_nbp = uaddr2taddr(nconf, serv_uaddr); 238 ret = taddr2uaddr(nconf, &tbuf);
|
/freebsd-10.1-release/usr.sbin/rpc.lockd/ |
H A D | lockd.c | 99 static int create_service(struct netconfig *nconf); 100 static void complete_service(struct netconfig *nconf, char *port_str); 102 void lookup_addresses(struct netconfig *nconf); 126 struct netconfig *nconf; local 309 while ((nconf = getnetconfig(nc_handle))) { 311 if (nconf->nc_flag & NC_VISIBLE) { 313 if (have_v6 == 0 && strcmp(nconf->nc_protofmly, "inet6") == 0) { 316 lookup_addresses(nconf); 328 while ((nconf = getnetconfig(nc_handle))) { 330 if (nconf 496 create_service(struct netconfig *nconf) argument 695 complete_service(struct netconfig *nconf, char *port_str) argument 816 lookup_addresses(struct netconfig *nconf) argument [all...] |
/freebsd-10.1-release/usr.sbin/rpc.statd/ |
H A D | statd.c | 71 static int create_service(struct netconfig *nconf); 72 static void complete_service(struct netconfig *nconf, char *port_str); 83 struct netconfig *nconf; local 196 while ((nconf = getnetconfig(nc_handle))) { 198 if (nconf->nc_flag & NC_VISIBLE) { 200 if (have_v6 == 0 && strcmp(nconf->nc_protofmly, "inet6") == 0) { 203 ret = create_service(nconf); 237 * different port #s for each nconf 260 while ((nconf = getnetconfig(nc_handle))) { 262 if (nconf 317 create_service(struct netconfig *nconf) argument 513 complete_service(struct netconfig *nconf, char *port_str) argument [all...] |
/freebsd-10.1-release/usr.sbin/ypserv/ |
H A D | yp_main.c | 255 create_service(const int sock, const struct netconfig *nconf, argument 293 s = __rpc_nconf2fd(nconf); 298 nconf->nc_netid); 302 nconf->nc_netid, 313 nconf->nc_netid, 320 if (nconf->nc_semantics != NC_TPI_CLTS) 399 if (nconf->nc_semantics == NC_TPI_CLTS) 406 nconf->nc_netid); 413 " %s", nconf->nc_netid, strerror(errno)); 420 nconf 457 struct netconfig *nconf; local [all...] |
/freebsd-10.1-release/usr.bin/rpcinfo/ |
H A D | rpcinfo.c | 317 struct netconfig *nconf; local 321 while ((nconf = getnetconfig(localhandle)) != NULL) { 322 if (nconf->nc_protofmly != NULL && 323 strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) 326 if (nconf == NULL) { 331 clnt = clnt_tp_create(NULL, prog, vers, nconf); 560 struct netconfig *nconf; local 567 if ((nconf = __rpc_getconfip("udp")) == NULL && 568 (nconf = __rpc_getconfip("tcp")) == NULL) 580 (void) freenetconfigent(nconf); 596 reply_proc(void *res, struct netbuf *who, struct netconfig *nconf) argument 699 struct netconfig *nconf; local 895 struct netconfig *nconf; local 924 struct netconfig *nconf; local 1210 struct netconfig *nconf = NULL; local 1230 clnt_addr_create(char *address, struct netconfig *nconf, u_long prog, u_long vers) argument 1271 struct netconfig *nconf; local 1373 struct netconfig *nconf; local 1549 struct netconfig *nconf; local 1574 getclnthandle(char *host, struct netconfig *nconf, u_long rpcbversnum, struct netbuf **targaddr) argument [all...] |
/freebsd-10.1-release/usr.sbin/rpc.yppasswdd/ |
H A D | yppasswdd_main.c | 166 struct netconfig *nconf; local 290 nconf = NULL; 292 while ((nconf = getnetconfig(localhandle)) != NULL) { 293 if (nconf->nc_protofmly != NULL && 294 strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) 297 if (nconf == NULL) { 308 master_yppasswdprog_1, nconf)) {
|
/freebsd-10.1-release/contrib/wpa/src/ap/ |
H A D | wps_hostapd.c | 283 FILE *oconf, *nconf; local 362 nconf = fopen(tmp_fname, "w"); 363 if (nconf == NULL) { 371 fprintf(nconf, "# WPS configuration - START\n"); 373 fprintf(nconf, "wps_state=2\n"); 376 fprintf(nconf, "ssid2="); 378 fprintf(nconf, "%02x", cred->ssid[i]); 379 fprintf(nconf, "\n"); 381 fprintf(nconf, "ssid="); 383 fputc(cred->ssid[i], nconf); [all...] |