Lines Matching defs:hostname
66 * Parse a string of text containing an ethernet address and hostname and
70 ether_line(const char *l, struct ether_addr *e, char *hostname)
75 &o[4], &o[5], hostname);
138 * Map an ethernet address to a hostname. Use either /etc/ethers or NIS/YP.
141 ether_ntohost(char *hostname, const struct ether_addr *e)
177 strcpy(hostname, local_host);
188 * Map a hostname to an ethernet address using /etc/ethers or NIS/YP.
191 ether_hostton(const char *hostname, struct ether_addr *e)
212 if (yp_match(yp_domain, "ethers.byname", hostname,
213 strlen(hostname), &result, &resultlen)) {
222 if (!strcmp(hostname, local_host)) {