From 54955962d2b2660b5aaede52557333f608d293a6 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 2 Jul 1996 19:42:29 +0000 Subject: * nss/nss_files/files-ethers.c (ntohost): Fix db key. --- nss/nss_files/files-ethers.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nss') diff --git a/nss/nss_files/files-ethers.c b/nss/nss_files/files-ethers.c index 70f7d07..290d931 100644 --- a/nss/nss_files/files-ethers.c +++ b/nss/nss_files/files-ethers.c @@ -64,8 +64,10 @@ DB_LOOKUP (hostton, 1 + strlen (name), (".%s", name), break; }, const char *name) -DB_LOOKUP (ntohost, 7, ("=%c%c%c%c%c%c", - addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]), +DB_LOOKUP (ntohost, 18, ("=%x:%x:%x:%x:%x:%x", + addr->ether_addr_octet[0], addr->ether_addr_octet[1], + addr->ether_addr_octet[2], addr->ether_addr_octet[3], + addr->ether_addr_octet[4], addr->ether_addr_octet[5]), { if (memcmp (&result->e_addr, addr, sizeof (struct ether_addr)) == 0) -- cgit v1.1