| 645 | |
| 646 | |
| 647 | struct hostent* rev_resolvehost(struct ip_addr *ip) |
| 648 | { |
| 649 | if (dnscache_fetch_func != NULL) { |
| 650 | return own_gethostbyaddr((char*)(ip)->u.addr, (ip)->len, (ip)->af); |
| 651 | } else |
| 652 | return gethostbyaddr((char*)(ip)->u.addr, (ip)->len, (ip)->af); |
| 653 | } |
| 654 | |
| 655 | /*! \brief checks if ip is in host(name) and ?host(ip)=name? |
| 656 | * ip must be in network byte order! |
no test coverage detected