/freebsd-13-stable/lib/libc/rpc/ |
H A D | pmap_clnt.c | 69 struct netconfig *nconf; local 75 nconf = __rpc_getconfip(protocol == IPPROTO_UDP ? "udp" : "tcp"); 76 if (nconf == NULL) { 81 na = uaddr2taddr(nconf, buf); 83 freenetconfigent(nconf); 86 rslt = rpcb_set((rpcprog_t)program, (rpcvers_t)version, nconf, na); 88 freenetconfigent(nconf); 99 struct netconfig *nconf; local 103 nconf = __rpc_getconfip("udp"); 104 if (nconf ! [all...] |
H A D | svc_generic.c | 93 struct netconfig *nconf; local 102 while ((nconf = __rpc_getconf(handle)) != NULL) { 105 if (strcmp(l->xprt->xp_netid, nconf->nc_netid) == 0) { 107 (void) rpcb_unset(prognum, versnum, nconf); 109 dispatch, nconf) == FALSE) 113 nconf->nc_netid); 121 xprt = svc_tp_create(dispatch, prognum, versnum, nconf); 149 * It tries to create a server for "nconf" and registers the service 158 rpcprog_t prognum, rpcvers_t versnum, const struct netconfig *nconf) 162 if (nconf 157 svc_tp_create(void (*dispatch)(struct svc_req *, SVCXPRT *), rpcprog_t prognum, rpcvers_t versnum, const struct netconfig *nconf) argument 201 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 | crypt_client.c | 53 struct netconfig *nconf; local 57 nconf = NULL; 59 while ((nconf = getnetconfig(localhandle)) != NULL) { 60 if (nconf->nc_protofmly != NULL && 61 strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) 64 if (nconf == NULL) { 69 clnt = clnt_tp_create(NULL, CRYPT_PROG, CRYPT_VERS, nconf);
|
H A D | rpc_generic.c | 259 struct netconfig *nconf; local 266 while ((nconf = getnetconfig(confighandle)) != NULL) { 267 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) { 268 if (strcmp(nconf->nc_proto, NC_TCP) == 0 && 270 netid_tcp = strdup(nconf->nc_netid); 277 if (strcmp(nconf->nc_proto, NC_UDP) == 0 && 279 netid_udp = strdup(nconf->nc_netid); 355 struct netconfig *nconf; local 363 nconf = getnetpath(handle->nhandle); 365 nconf 518 __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip) argument 540 __rpc_nconf2fd(const struct netconfig *nconf) argument 554 struct netconfig *nconf; local 580 taddr2uaddr(const struct netconfig *nconf, const struct netbuf *nbuf) argument 590 uaddr2taddr(const struct netconfig *nconf, const char *uaddr) argument [all...] |
H A D | rpcb_clnt.c | 279 getclnthandle(const char *host, const struct netconfig *nconf, char **targaddr) argument 297 ad_cache = check_cache(host, nconf->nc_netid); 300 client = clnt_tli_create(RPC_ANYFD, nconf, addr, 327 if (!__rpc_nconf2sockinfo(nconf, &si)) { 339 nconf->nc_netid, si.si_af, si.si_proto, si.si_socktype); 342 if (nconf->nc_protofmly != NULL && strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) { 377 ua = taddr2uaddr(nconf, &taddr); 395 client = clnt_tli_create(RPC_ANYFD, nconf, &taddr, 404 tmpaddr = targaddr ? taddr2uaddr(nconf, 468 struct netconfig *nconf, *tmpnconf = NULL; local 527 rpcb_set(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf, const struct netbuf *address) argument 585 rpcb_unset(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf) argument 622 got_entry(rpcb_entry_list_ptr relp, const struct netconfig *nconf) argument 655 struct netconfig *nconf; local 708 __rpcb_findaddr_timed(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf, const char *host, CLIENT **clpp, struct timeval *tp) argument 1017 rpcb_getaddr(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf, struct netbuf *address, const char *host) argument 1049 rpcb_getmaps(const struct netconfig *nconf, const char *host) argument 1107 rpcb_rmtcall(const struct netconfig *nconf, const char *host, rpcprog_t prog, rpcvers_t vers, rpcproc_t proc, xdrproc_t xdrargs, caddr_t argsp, xdrproc_t xdrres, caddr_t resp, struct timeval tout, const struct netbuf *addr_ptr) argument 1185 struct netconfig *nconf; local 1240 rpcb_taddr2uaddr(struct netconfig *nconf, struct netbuf *taddr) argument 1272 rpcb_uaddr2taddr(struct netconfig *nconf, char *uaddr) argument [all...] |
H A D | clnt_generic.c | 185 struct netconfig *nconf; local 210 if ((nconf = __rpc_getconf(handle)) == NULL) { 216 printf("trying netid %s\n", nconf->nc_netid); 218 clnt = clnt_tp_create_timed(hostname, prog, vers, nconf, tp); 269 const struct netconfig *nconf) 272 return (clnt_tp_create_timed(hostname, prog, vers, nconf, NULL)); 283 const struct netconfig *nconf, const struct timeval *tp) 288 if (nconf == NULL) { 297 (struct netconfig *)nconf, (char *)hostname, 303 cl = clnt_tli_create(RPC_ANYFD, nconf, svcadd 268 clnt_tp_create(const char *hostname, rpcprog_t prog, rpcvers_t vers, const struct netconfig *nconf) argument 282 clnt_tp_create_timed(const char *hostname, rpcprog_t prog, rpcvers_t vers, const struct netconfig *nconf, const struct timeval *tp) argument 334 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 | 99 struct netconfig *nconf; local 103 if ((nconf = __rpc_getconfip(tp)) == NULL) { 109 fd = __rpc_nconf2fd(nconf); 135 cl = clnt_tli_create(fd, nconf, &bindaddr, prog, vers, 145 (void) freenetconfigent(nconf); 157 (void) freenetconfigent(nconf); 208 struct netconfig *nconf; local 214 if ((nconf = __rpc_getconfip(netid)) == NULL) { 219 fd = __rpc_nconf2fd(nconf); 221 (void) freenetconfigent(nconf); 338 rpc_wrap_bcast(char *resultp, struct netbuf *addr, struct netconfig *nconf) argument 472 struct netconfig *nconf; local [all...] |
H A D | svc_simple.c | 110 struct netconfig *nconf; local 129 while ((nconf = __rpc_getconf(handle)) != NULL) { 142 if (strcmp(pl->p_netid, nconf->nc_netid) == 0) { 154 svcxprt = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); 169 ((netid = strdup(nconf->nc_netid)) == NULL)) { 188 (void) rpcb_unset(prognum, versnum, nconf); 191 nconf = NULL; 194 if (!svc_reg(svcxprt, prognum, versnum, universal, nconf)) {
|
H A D | clnt_bcast.c | 271 struct netconfig *nconf; /* Netconfig structure */ member in struct:__anon7548 282 struct netconfig *nconf; local 313 while ((nconf = __rpc_getconf(handle)) != NULL) { 317 if (nconf->nc_semantics != NC_TPI_CLTS) 321 if (!__rpc_nconf2sockinfo(nconf, &si)) 337 fdlist[fdlistno].nconf = nconf; 480 fdlist[i].nconf->nc_netid); 502 fdlist[i].nconf->nc_netid); 548 fdlist[i].nconf [all...] |
H A D | key_call.c | 298 struct netconfig *nconf; local 371 while ((nconf = getnetconfig(localhandle)) != NULL) { 372 if (strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) { 377 if (nconf->nc_semantics == NC_TPI_COTS_ORD) { 379 KEY_PROG, vers, nconf); 383 tpconf = nconf;
|
/freebsd-13-stable/sys/rpc/ |
H A D | getnetconfig.c | 103 struct netconfig *nconf; local 105 nconf = *nconfp; 106 if (nconf->nc_netid == NULL) 111 return (nconf); 117 struct netconfig *nconf; local 119 for (nconf = netconfigs; nconf->nc_netid; nconf++) { 120 if (!strcmp(netid, nconf->nc_netid)) 121 return (nconf); 128 freenetconfigent(struct netconfig *nconf) argument [all...] |
H A D | svc_generic.c | 94 struct netconfig *nconf; local 101 while ((nconf = __rpc_getconf(handle)) != NULL) { 106 if (strcmp(xprt->xp_netid, nconf->nc_netid)) 110 (void) rpcb_unset(prognum, versnum, nconf); 112 dispatch, nconf) == FALSE) { 116 nconf->nc_netid); 129 NULL, nconf); 146 * It tries to create a server for "nconf" and registers the service 156 const struct netconfig *nconf) /* Netconfig structure for the network */ 163 if (nconf 150 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 207 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 | rpc_generic.c | 239 __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip) argument 244 if (strcmp(na_cvt[i].netid, nconf->nc_netid) == 0 || ( 245 strcmp(nconf->nc_netid, "unix") == 0 && 250 __rpc_seman2socktype((int)nconf->nc_semantics); 261 __rpc_nconf2socket(const struct netconfig *nconf) argument 267 if (!__rpc_nconf2sockinfo(nconf, &si)) 281 taddr2uaddr(const struct netconfig *nconf, const struct netbuf *nbuf) argument 285 if (!__rpc_nconf2sockinfo(nconf, &si)) 291 uaddr2taddr(const struct netconfig *nconf, const char *uaddr) argument 295 if (!__rpc_nconf2sockinfo(nconf, 526 struct netconfig *nconf; local 615 struct netconfig *nconf; local [all...] |
H A D | rpcb_clnt.c | 288 getclnthandle(host, nconf, targaddr) 290 const struct netconfig *nconf; 309 ad_cache = check_cache(host, nconf->nc_netid); 312 client = clnt_tli_create(RPC_ANYFD, nconf, addr, 339 if (!__rpc_nconf2sockinfo(nconf, &si)) { 351 nconf->nc_netid, si.si_af, si.si_proto, si.si_socktype); 354 if (nconf->nc_protofmly != NULL && strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) { 389 ua = taddr2uaddr(nconf, &taddr); 407 client = clnt_tli_create(RPC_ANYFD, nconf, 541 rpcb_set(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf, const struct netbuf *address) argument 609 rpcb_unset(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf) argument [all...] |
/freebsd-13-stable/usr.sbin/rpcbind/ |
H A D | rpcbind.c | 134 struct netconfig *nconf; local 175 nconf = getnetconfigent("local"); 176 if (nconf == NULL) 177 nconf = getnetconfigent("unix"); 178 if (nconf == NULL) { 185 init_transport(nconf); 187 while ((nconf = getnetconfig(nc_handle))) { 188 if (nconf->nc_flag & NC_VISIBLE) { 189 if (ipv6_only == 1 && strcmp(nconf->nc_protofmly, 193 init_transport(nconf); 264 init_transport(struct netconfig *nconf) argument 753 rbllist_add(rpcprog_t prog, rpcvers_t vers, struct netconfig *nconf, struct netbuf *addr) argument [all...] |
H A D | check_bound.c | 66 struct netconfig *nconf; member in struct:fdlist 92 na = uaddr2taddr(fdl->nconf, uaddr); 96 fd = __rpc_nconf2fd(fdl->nconf); 113 add_bndlist(struct netconfig *nconf, struct netbuf *baddr __unused) argument 118 newnconf = getnetconfigent(nconf->nc_netid); 127 fdl->nconf = newnconf; 148 if (strcmp(fdl->nconf->nc_netid, netid) == 0) 168 if (strcmp(fdl->nconf->nc_netid, netid) == 0) 187 c_uaddr = taddr2uaddr(fdl->nconf, &dg_data->su_srcaddr); 193 c_uaddr = taddr2uaddr(fdl->nconf, svc_getrpccalle [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 | 331 struct netconfig *nconf; local 356 nconf = rpcbind_get_conf(rbl->rpcb_map.r_netid); 357 if (nconf == NULL) 359 if (strcmp(nconf->nc_protofmly, reg_nconf->nc_protofmly) 396 a->r_nc_netid = nconf->nc_netid; 397 a->r_nc_semantics = nconf->nc_semantics; 398 a->r_nc_protofmly = nconf->nc_protofmly; 399 a->r_nc_proto = nconf->nc_proto;
|
H A D | util.c | 120 struct netconfig *nconf; local 134 if ((nconf = rpcbind_get_conf(netid)) == NULL) 136 if ((caller_uaddr = taddr2uaddr(nconf, caller)) == NULL) 148 if ((hint_nbp = uaddr2taddr(nconf, clnt_uaddr)) == NULL) 274 serv_nbp = uaddr2taddr(nconf, serv_uaddr); 293 ret = taddr2uaddr(nconf, &tbuf);
|
/freebsd-13-stable/usr.sbin/rpc.statd/ |
H A D | statd.c | 73 static int create_service(struct netconfig *nconf); 74 static void complete_service(struct netconfig *nconf, char *port_str); 85 struct netconfig *nconf; local 203 while ((nconf = getnetconfig(nc_handle))) { 205 if (nconf->nc_flag & NC_VISIBLE) { 207 if (have_v6 == 0 && strcmp(nconf->nc_protofmly, "inet6") == 0) { 210 ret = create_service(nconf); 244 * different port #s for each nconf 267 while ((nconf = getnetconfig(nc_handle))) { 269 if (nconf 328 create_service(struct netconfig *nconf) argument 524 complete_service(struct netconfig *nconf, char *port_str) argument [all...] |
/freebsd-13-stable/usr.sbin/rpc.lockd/ |
H A D | lockd.c | 101 static int create_service(struct netconfig *nconf); 102 static void complete_service(struct netconfig *nconf, char *port_str); 124 struct netconfig *nconf; local 307 while ((nconf = getnetconfig(nc_handle))) { 309 if (nconf->nc_flag & NC_VISIBLE) { 311 if (have_v6 == 0 && strcmp(nconf->nc_protofmly, "inet6") == 0) { 314 create_service(nconf); 326 while ((nconf = getnetconfig(nc_handle))) { 328 if (nconf->nc_flag & NC_VISIBLE) { 330 if (have_v6 == 0 && strcmp(nconf 499 create_service(struct netconfig *nconf) argument 723 complete_service(struct netconfig *nconf, char *port_str) argument [all...] |
/freebsd-13-stable/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-13-stable/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 568 if ((nconf = __rpc_getconfip("udp")) == NULL && 569 (nconf = __rpc_getconfip("tcp")) == NULL) 581 (void) freenetconfigent(nconf); 597 reply_proc(void *res, struct netbuf *who, struct netconfig *nconf) argument 701 struct netconfig *nconf; local 897 struct netconfig *nconf; local 926 struct netconfig *nconf; local 1212 struct netconfig *nconf = NULL; local 1232 clnt_addr_create(char *address, struct netconfig *nconf, u_long prog, u_long vers) argument 1273 struct netconfig *nconf; local 1375 struct netconfig *nconf; local 1551 struct netconfig *nconf; local 1576 getclnthandle(char *host, struct netconfig *nconf, u_long rpcbversnum, struct netbuf **targaddr) argument [all...] |
/freebsd-13-stable/usr.sbin/rpc.yppasswdd/ |
H A D | yppasswdd_main.c | 169 struct netconfig *nconf; local 291 nconf = NULL; 293 while ((nconf = getnetconfig(localhandle)) != NULL) { 294 if (nconf->nc_protofmly != NULL && 295 strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) 298 if (nconf == NULL) { 309 master_yppasswdprog_1, nconf)) {
|
/freebsd-13-stable/contrib/wpa/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...] |