Lines Matching defs:hostname
65 * Parse a string of text containing an ethernet address and hostname and
69 ether_line(const char *l, struct ether_addr *e, char *hostname)
74 &o[4], &o[5], hostname);
137 * Map an ethernet address to a hostname. Use either /etc/ethers or NIS/YP.
140 ether_ntohost(char *hostname, const struct ether_addr *e)
176 strcpy(hostname, local_host);
187 * Map a hostname to an ethernet address using /etc/ethers or NIS/YP.
190 ether_hostton(const char *hostname, struct ether_addr *e)
211 if (yp_match(yp_domain, "ethers.byname", hostname,
212 strlen(hostname), &result, &resultlen)) {
221 if (!strcmp(hostname, local_host)) {