/illumos-gate/usr/src/cmd/rpcsvc/rpc.bootparamd/ |
H A D | bootparam_prot_svc.c | 91 struct netconfig *nconf = NULL; local 98 } else if ((nconf = getnetconfigent(netid)) == NULL) { 103 if ((transp = svc_tli_create(0, nconf, NULL, 0, 0)) == NULL) { 107 if (nconf) 108 freenetconfigent(nconf);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfs_resolve.c | 74 get_knconf(struct netconfig *nconf) argument 80 if (stat(nconf->nc_device, &stbuf) < 0) { 81 syslog(LOG_ERR, "get_knconf: stat %s: %m", nconf->nc_device); 87 k->knc_semantics = nconf->nc_semantics; 89 len = strlen(nconf->nc_protofmly); 96 bcopy(nconf->nc_protofmly, k->knc_protofmly, len); 98 len = strlen(nconf->nc_proto); 105 bcopy(nconf->nc_proto, k->knc_proto, len); 209 struct netconfig *nconf = NULL; local 218 while (nconf 275 setup_nb_parms(struct netconfig *nconf, struct t_bind *tbind, struct t_info *tinfo, char *hostname, int fd, bool_t direct_to_server, ushort_t port, rpcprog_t prog, rpcvers_t vers, bool_t file_handle) argument 341 get_server_addr(char *hostname, rpcprog_t prog, rpcvers_t vers, struct netconfig *nconf, ushort_t port, struct t_info *tinfo, caddr_t *fhp, bool_t direct_to_server, char *fspath, enum clnt_stat *cstat) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/nfs4cbd/ |
H A D | nfs4cbd.c | 226 get_uaddr(int fd, struct netconfig *nconf, struct netbuf *nb) argument 235 ua = taddr2uaddr(nconf, nb); 240 nconf->nc_netid); 249 if (netdir_getbyname(nconf, &hs, &nas)) { 256 ua2 = taddr2uaddr(nconf, nas->n_addrs); 261 nconf->nc_netid); 270 if (netdir_options(nconf, ND_MERGEADDR, 0, (char *)&ma)) { 285 nfs4svc(int fd, struct netbuf *addrmask, struct netconfig *nconf, argument 292 ua = get_uaddr(fd, nconf, addr); 297 "available on this transport\n", nconf [all...] |
/illumos-gate/usr/src/cmd/svc/servinfo/ |
H A D | servinfo.c | 104 struct netconfig *nconf; local 141 if ((nconf = getnetconfigent(TCP)) == NULL) { 146 if ((blist = (struct rpcblist *)rpcb_getmaps(nconf, "localhost"))
|
/illumos-gate/usr/src/lib/passwdutil/ |
H A D | nis_attr.c | 461 struct netconfig *nconf; local 478 nconf = getnetconfigent("ticlts"); 479 if (!nconf) { 485 YPPASSWDVERS, nconf); 486 freenetconfigent(nconf);
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | clnt_generic.c | 179 struct netconfig *nconf; local 228 if ((nconf = __rpc_getconf(handle)) == NULL) { 233 clnt = clnt_tp_create_timed(hostname, prog, vers, nconf, tp); 301 struct netconfig *nconf; local 381 if ((nconf = __rpc_getconf(handle)) == NULL) { 388 if (strcmp(nconf->nc_protofmly, NC_INET) != 0 && 389 strcmp(nconf->nc_protofmly, NC_INET6) != 0) 393 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) < 0) { 402 __rpc_set_mac_options(fd, nconf, prog); 414 if (netdir_getbyname(nconf, 495 clnt_tp_create(const char *hostname, const rpcprog_t prog, const rpcvers_t vers, const struct netconfig *nconf) argument 508 clnt_tp_create_timed(const char *hostname, const rpcprog_t prog, const rpcvers_t vers, const struct netconfig *nconf, const struct timeval *tp) argument 582 clnt_tli_create(const int fd, const struct netconfig *nconf, struct netbuf *svcaddr, const rpcprog_t prog, const rpcvers_t vers, const uint_t sendsz, const uint_t recvsz) argument 600 _clnt_tli_create_timed(int fd, const struct netconfig *nconf, struct netbuf *svcaddr, rpcprog_t prog, rpcvers_t vers, uint_t sendsz, uint_t recvsz, const struct timeval *tp) argument [all...] |
H A D | rpc_generic.c | 206 struct netconfig *nconf; local 211 while (nconf = getnetconfig(confighandle)) { 212 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) { 213 if (strcmp(nconf->nc_proto, NC_TCP) == 0) { 214 netid_tcp = strdup(nconf->nc_netid); 228 if (strcmp(nconf->nc_proto, NC_UDP) == 0) { 229 netid_udp = strdup(nconf->nc_netid); 311 struct netconfig *nconf; local 318 nconf = getnetpath(handle->nhandle); 320 nconf 423 struct netconfig *nconf, *newnconf = NULL; local [all...] |
H A D | svc_simple.c | 92 struct netconfig *nconf; local 113 while (nconf = __rpc_getconf(handle)) { 124 if (strcmp(pl->p_netid, nconf->nc_netid) == 0) { 135 svcxprt = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); 156 ((netid = strdup(nconf->nc_netid)) == NULL)) { 174 (void) rpcb_unset(prognum, versnum, nconf); 177 nconf = NULL; 180 if (!svc_reg(svcxprt, prognum, versnum, universal, nconf)) {
|
H A D | ti_opts.c | 560 __rpc_set_mac_options(int fd, const struct netconfig *nconf, rpcprog_t prognum) argument 567 if (strcmp(nconf->nc_protofmly, NC_INET) != 0 && 568 strcmp(nconf->nc_protofmly, NC_INET6) != 0)
|
H A D | clnt_bcast.c | 124 struct netconfig *nconf; /* Netconfig structure */ member in struct:__anon3672 135 struct netconfig *nconf; local 175 while (nconf = __rpc_getconf(handle)) { 180 if (nconf->nc_semantics != NC_TPI_CLTS) 184 if ((fd = t_open(nconf->nc_device, O_RDWR, &tinfo)) == -1) { 188 __rpc_set_mac_options(fd, nconf, prog); 196 if (netdir_options(nconf, ND_SET_BROADCAST, fd, NULL)) { 202 fdlist[fdlistno].nconf = nconf; 228 if (strcmp(nconf 383 struct netconfig *nconf = local [all...] |
/illumos-gate/usr/src/lib/librdc/common/ |
H A D | netaddrs.c | 218 convert_nconf_to_knconf(struct netconfig *nconf, struct knetconfig *knconf) argument 222 if (stat(nconf->nc_device, &sb) < 0) { 224 nconf->nc_device); 228 printf("lib knconf %x %s %s %x\n", nconf->nc_semantics, 229 nconf->nc_protofmly, nconf->nc_proto, sb.st_rdev); 232 knconf->knc_semantics = nconf->nc_semantics; 233 knconf->knc_protofmly = nconf->nc_protofmly; 234 knconf->knc_proto = nconf->nc_proto; 329 * with version "vers" by using the nconf configuratio 339 get_the_addr(char *hostname, ulong_t prog, ulong_t vers, struct netconfig *nconf, ushort_t port, struct t_info *tinfo, int portmap) argument 530 struct netconfig *nconf = NULL; local [all...] |
H A D | rdcconfig.c | 66 struct netconfig nconf, *conf; variable in typeref:struct:netconfig
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | yp_b_svc.c | 96 struct netconfig *nconf; local 186 struct netconfig *nconf = NULL; local 204 } else if ((nconf = getnetconfigent(netid)) == NULL) { 211 if ((transp = svc_tli_create(0, nconf, NULL, 0, 0)) == NULL) { 216 if (strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) { 221 nconf->nc_netid); 224 if (nconf) 225 freenetconfigent(nconf); 339 while (nconf = __rpc_getconf(nc_handle)) { 347 YPBINDPROG, YPBINDVERS, nconf)) [all...] |
H A D | yppoll.c | 368 struct netconfig *nconf = binding->ypbind_nconf; local 371 if (netdir_getbyaddr(nconf, &nhs, svcaddr) != ND_OK) {
|
H A D | ypserv.c | 181 struct netconfig *nconf; local 281 if ((nconf = getnetconfigent(service[i].netid)) == NULL) { 287 if ((service[i].fd = t_open(nconf->nc_device, O_RDWR, NULL)) < 290 freenetconfigent(nconf); 294 if (netdir_options(nconf, ND_SET_RESERVEDPORT, service[i].fd, 300 freenetconfigent(nconf); 304 if ((service[i].xprt = svc_tli_create(service[i].fd, nconf, 310 freenetconfigent(nconf); 315 nconf)) { 321 freenetconfigent(nconf); [all...] |
H A D | ypserv_resolv.c | 65 static int getconf(char *netid, void **handle, struct netconfig **nconf); 265 static int getconf(char *netid, void **handle, struct netconfig **nconf) argument 274 *nconf = nc; 281 *nconf = save;
|
H A D | ypwhich.c | 436 struct netconfig *nconf = local 441 if (netdir_getbyaddr(nconf, &nhs, svcaddr) != ND_OK) {
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | debug_alloc.c | 201 void *nconf; local 203 nconf = setnetconfig(); 204 if (nconf == NULL) 207 add_alloc("SETNETCONFIG", nconf, 0, file, line); 209 return (nconf); 213 my_endnetconfig(void *nconf, const char *file, int line) argument 217 res = endnetconfig(nconf); 221 drop_alloc("SETNETCONFIG", nconf, file, line);
|
/illumos-gate/usr/src/cmd/rpcbind/ |
H A D | rpcb_svc_4.c | 233 struct netconfig *nconf; local 274 nconf = rpcbind_get_conf(rbl->rpcb_map.r_netid); 275 if (nconf == NULL) { 279 if (strcmp(nconf->nc_protofmly, reg_nconf->nc_protofmly) 317 a->r_nc_netid = nconf->nc_netid; 318 a->r_nc_semantics = nconf->nc_semantics; 319 a->r_nc_protofmly = nconf->nc_protofmly; 320 a->r_nc_proto = nconf->nc_proto;
|
/illumos-gate/usr/src/cmd/rpcsvc/ |
H A D | rpc.rusersd.c | 105 struct netconfig *nconf = NULL; local 116 } else if ((nconf = getnetconfigent(netid)) == NULL) { 121 if ((transp = svc_tli_create(0, nconf, NULL, 0, 0)) == NULL) { 125 if (nconf) 126 freenetconfigent(nconf);
|
H A D | rup.c | 60 struct netconfig *nconf; member in struct:entry 309 collectnames(resultsp, taddr, nconf) 312 struct netconfig *nconf; 355 entry[curentry].nconf = netconfigdup(nconf); 363 if (netdir_getbyaddr(nconf, &hs, &taddr->addr) == ND_OK) 367 char *uaddr = taddr2uaddr(nconf, &taddr->addr); 435 if (netdir_getbyaddr(ep->nconf, &hs, ep->addr) == ND_OK) 438 char *uaddr = taddr2uaddr(ep->nconf, ep->addr);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lockd/ |
H A D | lockd.c | 103 struct netconfig *nconf); 495 nlmsvc(int fd, struct netbuf addrmask, struct netconfig *nconf) argument 507 lma.n_fmly = ncfmly_to_lmfmly(nconf->nc_protofmly); 508 lma.n_proto = nctype_to_lmprot(nconf->nc_semantics); 509 lma.n_rdev = ncdev_to_rdev(nconf->nc_device);
|
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | newkey.c | 96 struct netconfig *nconf; local 185 while (nconf = getnetconfig(nc_handle)) { 187 if ((netdir_getbyname(nconf, &service, &addrs) == 0) &&
|
/illumos-gate/usr/src/lib/libnsl/netselect/ |
H A D | netselect.c | 912 struct netconfig *nconf; local 915 nconf = calloc(1, sizeof (struct netconfig)); 916 if (nconf == NULL) { 920 nconf->nc_netid = strdup(netconfigp->nc_netid); 921 nconf->nc_protofmly = strdup(netconfigp->nc_protofmly); 922 nconf->nc_proto = strdup(netconfigp->nc_proto); 923 nconf->nc_device = strdup(netconfigp->nc_device); 924 nconf->nc_lookups = malloc((netconfigp->nc_nlookups + 1) 926 if (!(nconf->nc_lookups && nconf [all...] |
/illumos-gate/usr/src/cmd/rexd/ |
H A D | mount_nfs.c | 65 static struct knetconfig *get_knconf(struct netconfig *nconf); 119 struct netconfig *nconf, *udpnconf; local 344 args.addr = get_addr(host, NFS_PROGRAM, nfsvers, &nconf); 351 args.knconf = get_knconf(nconf); 670 static struct netconfig *nconf; local 691 while (nconf = getnetconfig(nc)) { 692 if ((nconf->nc_flag & NC_VISIBLE) && 693 nconf->nc_semantics == NC_TPI_CLTS) { 697 if (nconf == NULL) 702 fd = t_open(nconf 744 get_knconf(struct netconfig *nconf) argument [all...] |