Lines Matching defs:nconf

304 	struct netconfig *nconf;
320 while (nconf = getnetconfig(nc)) {
327 if (((strcmp(nconf->nc_protofmly, NC_INET6) == 0) ||
328 (strcmp(nconf->nc_protofmly, NC_INET) == 0)) &&
329 (nconf->nc_semantics == NC_TPI_CLTS)) {
335 if (netdir_getbyname(nconf, &hs, &retaddrs) != ND_OK)
343 if (strcmp(nconf->nc_protofmly, NC_INET6) == 0)
367 nconf->nc_netid, res == 1?"SUC":"FAIL");
658 struct netconfig *nconf;
930 nconf = NULL;
932 &nconf, nfs_proto, thisport, NULL,
938 if (nconf != NULL)
939 freenetconfigent(nconf);
960 mfs->mfs_nconf = nconf;
1825 nconf = NULL;
1843 &nconf, nfs_proto, thisport, NULL,
1847 nfsvers, &nconf, nfs_proto,
1880 nconf = mfs->mfs_nconf;
1885 argp->knconf = get_knconf(nconf);
1888 freenetconfigent(nconf);
1942 freenetconfigent(nconf);
1984 host, RPCBPROG, RPCBVERS, NULL, &nconf,
1997 error = netdir_getbyname(nconf, &hs, &retaddrs);
2006 freenetconfigent(nconf);
2080 freenetconfigent(nconf);
2147 freenetconfigent(nconf);
2186 freenetconfigent(nconf);
2550 portmap_cache_lookup(hostname, prog, vers, nconf, addrp)
2554 struct netconfig *nconf;
2627 strcmp(nconf->nc_proto, cachep->cache_proto) != 0 ||
2628 strcmp(nconf->nc_protofmly, cachep->cache_protofmly) != 0 ||
2648 portmap_cache_enter(hostname, prog, vers, nconf, addrp)
2652 struct netconfig *nconf;
2675 protolen = strlen(nconf->nc_proto);
2683 protofmlylen = strlen(nconf->nc_protofmly);
2692 strcpy(cachep->cache_proto, nconf->nc_proto);
2737 struct netconfig *nconf, struct netbuf *addrp)
2739 if (portmap_cache_lookup(hostname, prog, vers, nconf, addrp))
2741 if (rpcb_getaddr(prog, vers, nconf, addrp, hostname) == 0)
2743 portmap_cache_enter(hostname, prog, vers, nconf, addrp);
2816 struct netconfig *nconf = NULL;
2825 prog, vers, nconf, port, tinfo, tbind, fhp,
2830 * No nconf passed in.
2832 * Try to get a nconf from /etc/netconfig.
2846 while ((nconf = getnetpath(nc)) != NULL) {
2847 if (strcmp(nconf->nc_proto, proto))
2854 if ((strcmp(nconf->nc_protofmly, NC_INET) &&
2855 strcmp(nconf->nc_protofmly, NC_INET6)) ||
2856 (strcmp(nconf->nc_proto, NC_TCP) &&
2857 strcmp(nconf->nc_proto, NC_UDP)))
2861 prog, vers, nconf, port, tinfo, tbind, fhp,
2869 if (nconf == NULL)
2873 while ((nconf = getnetpath(nc)) != NULL) {
2874 if (nconf->nc_flag & NC_VISIBLE) {
2876 if ((nconf->nc_semantics ==
2878 (nconf->nc_semantics ==
2882 if ((strcmp(nconf->nc_protofmly,
2884 strcmp(nconf->nc_protofmly,
2886 (strcmp(nconf->nc_proto,
2892 if (nconf->nc_semantics ==
2896 if ((strcmp(nconf->nc_protofmly,
2898 strcmp(nconf->nc_protofmly,
2900 (strcmp(nconf->nc_proto,
2908 if (nconf == NULL) {
2918 prog, vers, nconf, port, tinfo, tbind, fhp,
2923 * netconfig db until no more matched nconf
2924 * (nconf == NULL).
2931 * Got nconf and nb. Now dup the netconfig structure (nconf)
2934 if (nconf != NULL) {
2935 if ((*nconfp = getnetconfigent(nconf->nc_netid)) == NULL) {
2951 mfs_snego_t *mfssnego, struct netconfig *nconf, ushort_t port,
2970 if (strncasecmp(nconf->nc_proto, NC_UDP, strlen(NC_UDP)) == 0)
2973 if ((fd = t_open(nconf->nc_device, O_RDWR, tinfo)) < 0)
2980 if (setup_nb_parms(nconf, tbind, tinfo, hostname, fd,
2985 cl = clnt_tli_create(fd, nconf, &tbind->addr, prog, vers, 0, 0);
3190 struct netconfig *nconf;
3432 nconf = NULL;
3440 vers_to_try, &nconf, port, TRUE);
3442 if (nconf != NULL)
3443 freenetconfigent(nconf);
4274 rpcprog_t prog, rpcvers_t vers, struct netconfig *nconf,
4283 if (nconf == NULL)
4289 nconf, port, tinfo, tbind, fhp, direct_to_server,
4296 nconf, port, tinfo, tbind, fhp, direct_to_server,
4312 struct netconfig *nconf, ushort_t port, struct t_info *tinfo,
4323 if (strncasecmp(nconf->nc_proto, NC_UDP, strlen(NC_UDP)) == 0)
4326 if ((fd = t_open(nconf->nc_device, O_RDWR, tinfo)) < 0) {
4339 nconf, &tbind->addr) == 0)
4346 if (setup_nb_parms(nconf, tbind, tinfo, hostname,
4353 cl = clnt_tli_create(fd, nconf, &tbind->addr,