Home | History | Annotate | Download | only in src

Lines Matching defs:hostname

535      a particular hwaddr/clientid/hostname in our configuration.
666 int hw_type, char *hostname)
695 if (hostname && context)
698 hostname_isequal(config->hostname, hostname) &&
747 free(config->hostname);
809 if ((config->flags & CONFIG_NAME) && hostname_isequal(config->hostname, host))
848 config->hostname = host;
906 if ((configs->flags & CONFIG_NAME) && (domain = strip_hostname(configs->hostname)))
933 (crec = cache_find_by_name(NULL, config->hostname, 0, F_IPV4)) &&
936 if (cache_find_by_name(crec, config->hostname, 0, F_IPV4))
940 crec = cache_find_by_name(crec, config->hostname, 0, F_IPV4);
944 config->hostname, inet_ntoa(crec->addr.addr.addr.addr4));
949 inet_ntoa(crec->addr.addr.addr.addr4), config->hostname);
958 /* If we've not found a hostname any other way, try and see if there's one in /etc/hosts
961 so check here that the domain name is legal as a hostname. */
965 char *hostname = NULL;
974 hostname = daemon->dhcp_buff;
975 strncpy(hostname, cache_get_name(lookup), 256);
976 hostname[255] = 0;
977 d1 = strip_hostname(hostname);
979 if (!legal_hostname(hostname) || (d1 && (!d2 || !hostname_isequal(d1, d2))))
980 hostname = NULL;
983 return hostname;
987 char *strip_hostname(char *hostname)
989 char *dot = strchr(hostname, '.');