Lines Matching defs:nconf

74 get_knconf(struct netconfig *nconf)
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;
218 while (nconf = getnetpath(nc)) {
219 if (nconf->nc_flag & NC_VISIBLE) {
221 if ((nconf->nc_semantics ==
223 (nconf->nc_semantics ==
227 if ((strcmp(nconf->nc_protofmly,
229 strcmp(nconf->nc_protofmly,
231 (strcmp(nconf->nc_proto,
237 if (nconf->nc_semantics ==
241 if ((strcmp(nconf->nc_protofmly,
243 strcmp(nconf->nc_protofmly,
245 (strcmp(nconf->nc_proto,
252 if (nconf == NULL) {
262 nconf, port, NULL, NULL, TRUE, NULL, &cstat);
267 *netconf = nconf;
275 setup_nb_parms(struct netconfig *nconf, struct t_bind *tbind,
279 if (nconf == NULL) {
292 if (netdir_getbyname(nconf, &hs, &retaddrs) != ND_OK) {
302 if (strcmp(nconf->nc_protofmly, NC_INET) == NULL)
306 else if (strcmp(nconf->nc_protofmly, NC_INET6) == NULL)
313 if (netdir_options(nconf, ND_SET_RESERVEDPORT, fd,
320 if (strcmp(nconf->nc_protofmly, NC_INET) == NULL)
324 else if (strcmp(nconf->nc_protofmly, NC_INET6) == NULL)
342 struct netconfig *nconf, ushort_t port,
353 if (strncasecmp(nconf->nc_proto, NC_UDP, strlen(NC_UDP)) == 0)
356 if ((fd = t_open(nconf->nc_device, O_RDWR, tinfo)) < 0)
362 if (setup_nb_parms(nconf, tbind, tinfo, hostname, fd, direct_to_server,