Lines Matching defs:hostname
89 static int eui64_line(const char *l, struct eui64 *e, char *hostname,
93 * Parse a string of text containing an EUI-64 and hostname
97 eui64_line(const char *l, struct eui64 *e, char *hostname, size_t len)
116 /* Find the hostname */
119 if (strlcpy(hostname, cur, len) <= len)
215 * Map an EUI-64 to a hostname. Use either /etc/eui64 or NIS/YP.
218 eui64_ntohost(char *hostname, size_t len, const struct eui64 *id)
255 strcpy(hostname, local_host);
266 * Map a hostname to an EUI-64 using /etc/eui64 or NIS/YP.
269 eui64_hostton(const char *hostname, struct eui64 *id)
290 if (yp_match(yp_domain, "eui64.byname", hostname,
291 strlen(hostname), &result, &resultlen)) {
301 if (strcmp(hostname, local_host) == 0) {