/osnet-11/usr/src/lib/libfsmgt/common/ |
H A D | nfs_netcfg.c | 48 struct netconfig *nconf; local 62 while (nconf = getnetconfig(nc)) { 80 return_list[(*num_elements)] = strdup(nconf->nc_netid);
|
/osnet-11/usr/src/lib/libsocket/inet/ |
H A D | getservbyname_r.c | 62 struct netconfig *nconf; local 67 if ((nconf = __rpc_getconfip("udp")) == NULL && 68 (nconf = __rpc_getconfip("tcp")) == NULL) { 80 * We pass in nconf and let the implementation of the long-named func 83 neterr = _get_hostserv_inetnetdir_byname(nconf, &nssin, &nssout); 85 (void) freenetconfigent(nconf); 96 struct netconfig *nconf; local 101 if ((nconf = __rpc_getconfip("udp")) == NULL && 102 (nconf = __rpc_getconfip("tcp")) == NULL) { 114 * We pass in nconf an [all...] |
/osnet-11/usr/src/lib/libnsl/yp/ |
H A D | yp_rsvd.c | 39 struct netconfig *nconf; local 55 if ((nconf = getnetconfigent((void *) nt)) == NULL) 58 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) == -1) { 59 freenetconfigent(nconf); 64 (void) netdir_options(nconf, ND_SET_RESERVEDPORT, fd, NULL); 67 freenetconfigent(nconf); 73 if (!rpcb_getaddr(prog, vers, nconf, svcaddr, hostname)) { 76 freenetconfigent(nconf); 80 if ((clnt = clnt_tli_create(fd, nconf, svcaddr, 88 freenetconfigent(nconf); [all...] |
H A D | yp_bind.c | 283 struct netconfig *nconf = 0; local 290 nconf = getnetconfigent(netid); 291 if (nconf == 0) 303 if (!rpcb_getaddr(YPPROG, YPVERS, nconf, svcaddr, addr)) 312 binding->ypbind_nconf = nconf; 329 if (nconf) 330 freenetconfigent(nconf); 429 tli_open_rsvdport(struct netconfig *nconf) argument 433 if (nconf == NULL) 436 fd = t_open(nconf 933 struct netconfig *nconf; local 964 getclnt(rpcprog_t prog, rpcvers_t vers, struct netconfig *nconf, int *err) argument 1078 get_cached_transport(struct netconfig *nconf, int vers, char *uaddress, int ulen) argument [all...] |
/osnet-11/usr/src/lib/librpcsvc/common/ |
H A D | bindresvport.c | 76 struct netconfig *nconf; local 79 nconf = getnetconfigent(cl->cl_netid); 80 if (nconf == NULL) 82 if ((nconf->nc_semantics != NC_TPI_CLTS) || 83 (strcmp(nconf->nc_protofmly, NC_INET) && 84 strcmp(nconf->nc_protofmly, NC_INET6)) || 85 strcmp(nconf->nc_proto, NC_UDP)) { 86 freenetconfigent(nconf); 89 if (strcmp(nconf->nc_protofmly, NC_INET6) == 0) 91 freenetconfigent(nconf); [all...] |
/osnet-11/usr/src/lib/libnsl/nss/ |
H A D | gethostbyname_r.c | 107 struct netconfig *nconf; local 120 if ((nconf = __rpc_getconfip("udp")) == NULL && 121 (nconf = __rpc_getconfip("tcp")) == NULL) { 135 * We pass in nconf and let the implementation of the long-named func 138 neterr = _get_hostserv_inetnetdir_byname(nconf, &nssin, &nssout); 140 (void) freenetconfigent(nconf); 150 struct netconfig *nconf; local 163 if ((nconf = __rpc_getconfip("udp")) == NULL && 164 (nconf = __rpc_getconfip("tcp")) == NULL) { 180 * We pass in nconf an [all...] |
H A D | getipnodeby.c | 248 struct netconfig *nconf; local 254 if ((nconf = __rpc_getconfip("udp")) == NULL && 255 (nconf = __rpc_getconfip("tcp")) == NULL) { 311 ret = _get_hostserv_inetnetdir_byname(nconf, &nssin, &nssout); 349 ret = _get_hostserv_inetnetdir_byname(nconf, &nssin, &nssout); 462 (void) freenetconfigent(nconf); 477 struct netconfig *nconf; local 515 if ((nconf = __rpc_getconfip("udp")) == NULL && 516 (nconf = __rpc_getconfip("tcp")) == NULL) { 538 * We pass in nconf an [all...] |
H A D | netdir_inet_sundry.c | 894 bindresvport(struct netconfig *nconf, int fd, struct netbuf *addr) argument 928 if (strcmp(nconf->nc_protofmly, NC_INET) == 0) { 936 } else if (strcmp(nconf->nc_protofmly, NC_INET6) == 0) { 968 if (strcmp(nconf->nc_proto, NC_TCP) == 0) { 971 } else if (strcmp(nconf->nc_proto, NC_UDP) == 0) {
|
/osnet-11/usr/src/lib/libnsl/rpc/ |
H A D | rtime_tli.c | 77 struct netconfig *nconf = NULL; local 81 nconf = __rpc_getconfip(timeout == NULL ? "tcp" : "udp"); 82 if (nconf == NULL) 85 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) == -1) { 98 if (netdir_getbyname(nconf, &rpcbind_hs, &nlist)) 101 if (nconf->nc_semantics == NC_TPI_CLTS) { 155 if (nconf) { 156 (void) freenetconfigent(nconf);
|
H A D | pmap_clnt.c | 68 struct netconfig *nconf; local 73 nconf = __rpc_getconfip(protocol == IPPROTO_UDP ? "udp" : "tcp"); 74 if (!nconf) 77 na = uaddr2taddr(nconf, buf); 79 freenetconfigent(nconf); 82 rslt = rpcb_set(program, version, nconf, na); 85 freenetconfigent(nconf); 96 struct netconfig *nconf; local 100 nconf = __rpc_getconfip("udp"); 101 if (nconf) { [all...] |
H A D | svc_generic.c | 115 struct netconfig *nconf; local 135 while (nconf = __rpc_getconf(handle)) { 138 if (strcmp(l->xprt->xp_netid, nconf->nc_netid) == 0) { 140 (void) rpcb_unset(prognum, versnum, nconf); 142 dispatch, nconf) == FALSE) 145 prognum, versnum, nconf->nc_netid); 154 xprt = svc_tp_create(dispatch, prognum, versnum, nconf); 176 * It tries to create a server for "nconf" and registers the service 181 const rpcvers_t versnum, const struct netconfig *nconf) 186 if (nconf 180 svc_tp_create(void (*dispatch)(), const rpcprog_t prognum, const rpcvers_t versnum, const struct netconfig *nconf) argument 212 svc_tli_create(const int fd, const struct netconfig *nconf, const struct t_bind *bindaddr, const uint_t sendsz, const uint_t recvsz) argument 228 svc_tli_create_common(const int ofd, const struct netconfig *nconf, const struct t_bind *bindaddr, const uint_t sendsz, const uint_t recvsz, boolean_t mlp_flag) argument [all...] |
H A D | clnt_generic.c | 176 struct netconfig *nconf; local 225 if ((nconf = __rpc_getconf(handle)) == NULL) { 230 clnt = clnt_tp_create_timed(hostname, prog, vers, nconf, tp); 298 struct netconfig *nconf; local 378 if ((nconf = __rpc_getconf(handle)) == NULL) { 385 if (strcmp(nconf->nc_protofmly, NC_INET) != 0 && 386 strcmp(nconf->nc_protofmly, NC_INET6) != 0) 390 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) < 0) { 399 __rpc_set_mac_options(fd, nconf, prog); 410 if (netdir_getbyname(nconf, 489 clnt_tp_create(const char *hostname, const rpcprog_t prog, const rpcvers_t vers, const struct netconfig *nconf) argument 502 clnt_tp_create_timed(const char *hostname, const rpcprog_t prog, const rpcvers_t vers, const struct netconfig *nconf, const struct timeval *tp) argument 576 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 594 _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 | 552 __rpc_set_mac_options(int fd, const struct netconfig *nconf, rpcprog_t prognum) argument 559 if (strcmp(nconf->nc_protofmly, NC_INET) != 0 && 560 strcmp(nconf->nc_protofmly, NC_INET6) != 0)
|
H A D | clnt_bcast.c | 121 struct netconfig *nconf; /* Netconfig structure */ member in struct:__anon2026 132 struct netconfig *nconf; local 172 while (nconf = __rpc_getconf(handle)) { 177 if (nconf->nc_semantics != NC_TPI_CLTS) 181 if ((fd = t_open(nconf->nc_device, O_RDWR, &tinfo)) == -1) { 185 __rpc_set_mac_options(fd, nconf, prog); 193 if (netdir_options(nconf, ND_SET_BROADCAST, fd, NULL)) { 199 fdlist[fdlistno].nconf = nconf; 225 if (strcmp(nconf 380 struct netconfig *nconf = local [all...] |
H A D | rpc_soc.c | 80 struct netconfig *nconf; local 86 if ((nconf = __rpc_getconfip(tp)) == NULL) { 92 fd = t_open(nconf->nc_device, O_RDWR, &tinfo); 124 cl = clnt_tli_create(fd, nconf, &bindaddr, prog, vers, 134 (void) freenetconfigent(nconf); 147 (void) freenetconfigent(nconf); 194 struct netconfig *nconf; local 200 if ((nconf = __rpc_getconfip(netid)) == NULL) { 205 fd = t_open(nconf->nc_device, O_RDWR, NULL); 214 (void) freenetconfigent(nconf); 464 rpc_wrap_bcast(char *resultp, struct netbuf *addr, struct netconfig *nconf) argument 508 struct netconfig *nconf; local [all...] |
H A D | rpcb_clnt.c | 294 getclnthandle(char *host, struct netconfig *nconf, char **targaddr) argument 296 return (_getclnthandle_timed(host, nconf, targaddr, NULL)); 306 _getclnthandle_timed(char *host, struct netconfig *nconf, char **targaddr, argument 324 ad_cache = check_cache(host, nconf->nc_netid); 327 client = _clnt_tli_create_timed(RPC_ANYFD, nconf, addr, 383 rpcbind_hs.h_host, rpcbind_hs.h_serv, nconf->nc_netid); 386 if ((neterr = netdir_getbyname(nconf, &rpcbind_hs, &nas)) != 0) { 402 ua = taddr2uaddr(nconf, &(nas->n_addrs[j])); 414 client = _clnt_tli_create_timed(RPC_ANYFD, nconf, addr, RPCBPROG, 426 tmpaddr = targaddr ? taddr2uaddr(nconf, add 451 struct netconfig *nconf, *tmpnconf = NULL; local 499 rpcb_set(const rpcprog_t program, const rpcvers_t version, const struct netconfig *nconf, const struct netbuf *address) argument 552 rpcb_unset(const rpcprog_t program, const rpcvers_t version, const struct netconfig *nconf) argument 585 got_entry(rpcb_entry_list_ptr relp, struct netconfig *nconf) argument 702 __rpcb_findaddr_timed(rpcprog_t program, rpcvers_t version, struct netconfig *nconf, char *host, CLIENT **clpp, struct timeval *tp) argument 1056 rpcb_getaddr(const rpcprog_t program, const rpcvers_t version, const struct netconfig *nconf, struct netbuf *address, const char *host) argument 1085 rpcb_getmaps(const struct netconfig *nconf, const char *host) argument 1138 rpcb_rmtcall(const struct netconfig *nconf, const char *host, const rpcprog_t prog, const rpcvers_t vers, const rpcproc_t proc, const xdrproc_t xdrargs, const caddr_t argsp, const xdrproc_t xdrres, const caddr_t resp, const struct timeval tout, struct netbuf *addr_ptr) argument 1208 struct netconfig *nconf; local 1261 rpcb_taddr2uaddr(struct netconfig *nconf, struct netbuf *taddr) argument 1291 rpcb_uaddr2taddr(struct netconfig *nconf, char *uaddr) argument [all...] |
H A D | svc_dg.c | 368 struct netconfig *nconf; local 441 if ((nconf = getnetconfigent(xprt->xp_netid)) != NULL) { 442 if (strcmp(nconf->nc_protofmly, NC_INET) == 0 || 443 strcmp(nconf->nc_protofmly, NC_INET6) == 0) { 444 if (nconf->nc_semantics == NC_TPI_CLTS) { 449 if (strcmp(nconf->nc_protofmly, 456 if (strcmp(nconf->nc_protofmly, 463 freenetconfigent(nconf); 468 freenetconfigent(nconf); 761 struct netconfig *nconf; local 873 struct netconfig *nconf; local [all...] |
H A D | svc_vc.c | 717 struct netconfig *nconf; local 719 if ((nconf = __rpcfd_to_nconf(xprt->xp_fd, xprt->xp_type)) 726 (void) strlcpy(tpname, nconf->nc_device, sizeof (devbuf)); 727 freenetconfigent(nconf);
|
/osnet-11/usr/src/lib/librdc/common/ |
H A D | netaddrs.c | 217 convert_nconf_to_knconf(struct netconfig *nconf, struct knetconfig *knconf) argument 221 if (stat(nconf->nc_device, &sb) < 0) { 223 nconf->nc_device); 227 printf("lib knconf %x %s %s %x\n", nconf->nc_semantics, 228 nconf->nc_protofmly, nconf->nc_proto, sb.st_rdev); 231 knconf->knc_semantics = nconf->nc_semantics; 232 knconf->knc_protofmly = nconf->nc_protofmly; 233 knconf->knc_proto = nconf->nc_proto; 328 * with version "vers" by using the nconf configuratio 338 get_the_addr(char *hostname, ulong_t prog, ulong_t vers, struct netconfig *nconf, ushort_t port, struct t_info *tinfo, int portmap) argument 522 struct netconfig *nconf = NULL; local [all...] |
H A D | rdcconfig.c | 65 struct netconfig nconf, *conf; variable in typeref:struct:netconfig
|
/osnet-11/usr/src/lib/passwdutil/ |
H A D | nis_attr.c | 476 struct netconfig *nconf; local 493 nconf = getnetconfigent("ticlts"); 494 if (!nconf) { 500 YPPASSWDVERS, nconf); 501 freenetconfigent(nconf);
|
/osnet-11/usr/src/lib/libnsl/netselect/ |
H A D | netselect.c | 911 struct netconfig *nconf; local 914 nconf = calloc(1, sizeof (struct netconfig)); 915 if (nconf == NULL) { 919 nconf->nc_netid = strdup(netconfigp->nc_netid); 920 nconf->nc_protofmly = strdup(netconfigp->nc_protofmly); 921 nconf->nc_proto = strdup(netconfigp->nc_proto); 922 nconf->nc_device = strdup(netconfigp->nc_device); 923 nconf->nc_lookups = malloc((netconfigp->nc_nlookups + 1) 925 if (!(nconf->nc_lookups && nconf [all...] |
/osnet-11/usr/src/lib/krb5/kadm5/clnt/ |
H A D | client_init.c | 240 get_connection(struct netconfig *nconf, struct netbuf netaddr) argument 252 fd = t_open(nconf->nc_device, O_RDWR | O_NONBLOCK, &tinfo); 322 struct netconfig *nconf; local 376 while (nconf = getnetconfig(handlep)) { 377 if ((nconf->nc_semantics == NC_TPI_COTS_ORD) && 378 (strcmp(nconf->nc_protofmly, NC_INET) == 0) && 379 (strcmp(nconf->nc_proto, NC_TCP) == 0)) 383 if (nconf == (struct netconfig *)NULL) 391 fd = get_connection(nconf, netaddr); 402 printf("nconf [all...] |