Lines Matching refs:addrlen
303 int addrlen = (flags & F_IPV6) ? IN6ADDRSZ : INADDRSZ; in cache_scan_free() local
305 int addrlen = INADDRSZ; in cache_scan_free() local
323 memcmp(&crecp->addr.addr, addr, addrlen) == 0) in cache_scan_free()
584 int addrlen = (prot == F_IPV6) ? IN6ADDRSZ : INADDRSZ; in cache_find_by_addr() local
586 int addrlen = INADDRSZ; in cache_find_by_addr() local
607 memcmp(&crecp->addr.addr, addr, addrlen) == 0) in cache_find_by_addr()
638 memcmp(&ans->addr.addr, addr, addrlen) == 0) in cache_find_by_addr()
644 static void add_hosts_entry(struct crec *cache, struct all_addr *addr, int addrlen, in add_hosts_entry() argument
655 if (memcmp(&lookup->addr.addr, addr, addrlen) == 0) in add_hosts_entry()
678 memcmp(&lookup->addr.addr, addr, addrlen) == 0) in add_hosts_entry()
689 memcpy(&cache->addr.addr, addr, addrlen); in add_hosts_entry()
760 int atnl, addrlen = 0, addr_dup; in read_hostsfile() local
779 addrlen = INADDRSZ; in read_hostsfile()
785 addrlen = IN6ADDRSZ; in read_hostsfile()
792 addrlen = INADDRSZ; in read_hostsfile()
804 if (saved_flags == flags && memcmp(&addr, &saved_addr, addrlen) == 0) in read_hostsfile()
842 add_hosts_entry(cache, &addr, addrlen, flags, index, addr_dup); in read_hostsfile()
849 add_hosts_entry(cache, &addr, addrlen, flags, index, addr_dup); in read_hostsfile()