MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / rev_resolvehost

Function rev_resolvehost

resolve.c:647–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645
646
647struct 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!

Callers 2

fix_socketFunction · 0.85
check_ip_addressFunction · 0.85

Calls 1

own_gethostbyaddrFunction · 0.85

Tested by

no test coverage detected