Home | History | Annotate | Download | only in rpc

Lines Matching defs:nconf

278 		struct netconfig *nconf;
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;
394 nconf = getnetpath(handle->nhandle);
396 nconf = getnetconfig(handle->nhandle);
397 if (nconf == NULL)
399 if ((nconf->nc_semantics != NC_TPI_CLTS) &&
400 (nconf->nc_semantics != NC_TPI_COTS) &&
401 (nconf->nc_semantics != NC_TPI_COTS_ORD))
405 if (!(nconf->nc_flag & NC_VISIBLE))
411 if (!(nconf->nc_flag & NC_VISIBLE))
415 if ((nconf->nc_semantics != NC_TPI_COTS) &&
416 (nconf->nc_semantics != NC_TPI_COTS_ORD))
420 if (!(nconf->nc_flag & NC_VISIBLE))
424 if (nconf->nc_semantics != NC_TPI_CLTS)
428 if (((nconf->nc_semantics != NC_TPI_COTS) &&
429 (nconf->nc_semantics != NC_TPI_COTS_ORD)) ||
430 (strcmp(nconf->nc_protofmly, NC_INET)
432 && strcmp(nconf->nc_protofmly, NC_INET6))
437 strcmp(nconf->nc_proto, NC_TCP))
441 if ((nconf->nc_semantics != NC_TPI_CLTS) ||
442 (strcmp(nconf->nc_protofmly, NC_INET)
444 && strcmp(nconf->nc_protofmly, NC_INET6))
449 strcmp(nconf->nc_proto, NC_UDP))
455 return (nconf);
550 __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip)
554 _DIAGASSERT(nconf != NULL);
558 if (!strcmp(na_cvt[i].netid, nconf->nc_netid)) {
562 __rpc_seman2socktype((int)nconf->nc_semantics);
573 __rpc_nconf2fd(const struct netconfig *nconf)
577 _DIAGASSERT(nconf != NULL);
579 if (!__rpc_nconf2sockinfo(nconf, &si))
605 taddr2uaddr(const struct netconfig *nconf, const struct netbuf *nbuf)
609 _DIAGASSERT(nconf != NULL);
612 if (!__rpc_nconf2sockinfo(nconf, &si))
618 uaddr2taddr(const struct netconfig *nconf, const char *uaddr)
622 _DIAGASSERT(nconf != NULL);
625 if (!__rpc_nconf2sockinfo(nconf, &si))