version 1.38, 2003/09/23 20:17:11 |
version 1.39, 2004/03/31 21:58:47 |
|
|
cleanup_exit(255); |
cleanup_exit(255); |
} |
} |
|
|
|
if (from.ss_family == AF_INET) |
|
check_ip_options(socket, ntop); |
|
|
if (getnameinfo((struct sockaddr *)&from, fromlen, ntop, sizeof(ntop), |
if (getnameinfo((struct sockaddr *)&from, fromlen, ntop, sizeof(ntop), |
NULL, 0, NI_NUMERICHOST) != 0) |
NULL, 0, NI_NUMERICHOST) != 0) |
fatal("get_remote_hostname: getnameinfo NI_NUMERICHOST failed"); |
fatal("get_remote_hostname: getnameinfo NI_NUMERICHOST failed"); |
|
|
if (!use_dns) |
if (!use_dns) |
return xstrdup(ntop); |
return xstrdup(ntop); |
|
|
if (from.ss_family == AF_INET) |
|
check_ip_options(socket, ntop); |
|
|
|
debug3("Trying to reverse map address %.100s.", ntop); |
debug3("Trying to reverse map address %.100s.", ntop); |
/* Map the IP address to a host name. */ |
/* Map the IP address to a host name. */ |