• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/lib/libc/rpc/

Lines Matching defs:nconf

259 		struct netconfig *nconf;
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;
363 nconf = getnetpath(handle->nhandle);
365 nconf = getnetconfig(handle->nhandle);
366 if (nconf == NULL)
368 if ((nconf->nc_semantics != NC_TPI_CLTS) &&
369 (nconf->nc_semantics != NC_TPI_COTS) &&
370 (nconf->nc_semantics != NC_TPI_COTS_ORD))
374 if (!(nconf->nc_flag & NC_VISIBLE))
380 if (!(nconf->nc_flag & NC_VISIBLE))
384 if ((nconf->nc_semantics != NC_TPI_COTS) &&
385 (nconf->nc_semantics != NC_TPI_COTS_ORD))
389 if (!(nconf->nc_flag & NC_VISIBLE))
393 if (nconf->nc_semantics != NC_TPI_CLTS)
397 if (((nconf->nc_semantics != NC_TPI_COTS) &&
398 (nconf->nc_semantics != NC_TPI_COTS_ORD)) ||
399 (strcmp(nconf->nc_protofmly, NC_INET)
401 && strcmp(nconf->nc_protofmly, NC_INET6))
406 strcmp(nconf->nc_proto, NC_TCP))
410 if ((nconf->nc_semantics != NC_TPI_CLTS) ||
411 (strcmp(nconf->nc_protofmly, NC_INET)
413 && strcmp(nconf->nc_protofmly, NC_INET6))
418 strcmp(nconf->nc_proto, NC_UDP))
424 return (nconf);
518 __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip)
523 if (strcmp(na_cvt[i].netid, nconf->nc_netid) == 0 || (
524 strcmp(nconf->nc_netid, "unix") == 0 &&
529 __rpc_seman2socktype((int)nconf->nc_semantics);
540 __rpc_nconf2fd(const struct netconfig *nconf)
544 if (!__rpc_nconf2sockinfo(nconf, &si))
554 struct netconfig *nconf;
556 nconf = getnetconfigent("local");
561 if (strcmp(na_cvt[i].netid, "local") == 0 && nconf == NULL) {
568 if (nconf != NULL)
569 freenetconfigent(nconf);
573 if (nconf != NULL)
574 freenetconfigent(nconf);
580 taddr2uaddr(const struct netconfig *nconf, const struct netbuf *nbuf)
584 if (!__rpc_nconf2sockinfo(nconf, &si))
590 uaddr2taddr(const struct netconfig *nconf, const char *uaddr)
594 if (!__rpc_nconf2sockinfo(nconf, &si))