Lines Matching defs:hostname
99 static int eui64_line(const char *l, struct eui64 *e, char *hostname,
103 * Parse a string of text containing an EUI-64 and hostname
107 eui64_line(const char *l, struct eui64 *e, char *hostname, size_t len)
126 /* Find the hostname */
129 if (strlcpy(hostname, cur, len) <= len)
226 * Map an EUI-64 to a hostname. Use either /etc/eui64 or NIS/YP.
229 eui64_ntohost(char *hostname, size_t len, const struct eui64 *id)
266 strcpy(hostname, local_host);
277 * Map a hostname to an EUI-64 using /etc/eui64 or NIS/YP.
280 eui64_hostton(const char *hostname, struct eui64 *id)
301 if (yp_match(yp_domain, "eui64.byname", hostname,
302 strlen(hostname), &result, &resultlen)) {
312 if (strcmp(hostname, local_host) == 0) {