version 1.114, 2016/03/07 19:02:43 |
version 1.115, 2016/06/15 00:40:40 |
|
|
hints.ai_socktype = SOCK_STREAM; |
hints.ai_socktype = SOCK_STREAM; |
if (getaddrinfo(name, NULL, &hints, &aitop) != 0) { |
if (getaddrinfo(name, NULL, &hints, &aitop) != 0) { |
logit("reverse mapping checking getaddrinfo for %.700s " |
logit("reverse mapping checking getaddrinfo for %.700s " |
"[%s] failed - POSSIBLE BREAK-IN ATTEMPT!", name, ntop); |
"[%s] failed.", name, ntop); |
return strdup(ntop); |
return strdup(ntop); |
} |
} |
/* Look for the address from the list of addresses. */ |
/* Look for the address from the list of addresses. */ |
|
|
if (ai == NULL) { |
if (ai == NULL) { |
/* Address not found for the host name. */ |
/* Address not found for the host name. */ |
logit("Address %.100s maps to %.600s, but this does not " |
logit("Address %.100s maps to %.600s, but this does not " |
"map back to the address - POSSIBLE BREAK-IN ATTEMPT!", |
"map back to the address.", ntop, name); |
ntop, name); |
|
return strdup(ntop); |
return strdup(ntop); |
} |
} |
return strdup(name); |
return strdup(name); |