version 1.47, 2005/11/03 13:38:29 |
version 1.48, 2005/12/28 22:46:06 |
|
|
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 " |
"failed - POSSIBLE BREAKIN ATTEMPT!", name); |
"failed - POSSIBLE BREAK-IN ATTEMPT!", name); |
return xstrdup(ntop); |
return xstrdup(ntop); |
} |
} |
/* Look for the address from the list of addresses. */ |
/* Look for the address from the list of addresses. */ |
|
|
if (!ai) { |
if (!ai) { |
/* 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 BREAKIN ATTEMPT!", |
"map back to the address - POSSIBLE BREAK-IN ATTEMPT!", |
ntop, name); |
ntop, name); |
return xstrdup(ntop); |
return xstrdup(ntop); |
} |
} |