Lines Matching defs:hostname
97 static int eui64_line(const char *l, struct eui64 *e, char *hostname,
101 * Parse a string of text containing an EUI-64 and hostname
105 eui64_line(const char *l, struct eui64 *e, char *hostname, size_t len)
124 /* Find the hostname */
127 if (strlcpy(hostname, cur, len) <= len)
222 * Map an EUI-64 to a hostname. Use either /etc/eui64 or NIS/YP.
225 eui64_ntohost(char *hostname, size_t len, const struct eui64 *id)
262 strcpy(hostname, local_host);
273 * Map a hostname to an EUI-64 using /etc/eui64 or NIS/YP.
276 eui64_hostton(const char *hostname, struct eui64 *id)
297 if (yp_match(yp_domain, "eui64.byname", hostname,
298 strlen(hostname), &result, &resultlen)) {
308 if (strcmp(hostname, local_host) == 0) {