summaryrefslogtreecommitdiff
path: root/canohost.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-04-09 20:59:48 +1000
committerDamien Miller <djm@mindrot.org>2003-04-09 20:59:48 +1000
commit996acd2476d9d34b18bb4f99012ea0927458f418 (patch)
tree1420f273ae5395fc0adc9aa25dcd44fe821884a6 /canohost.c
parent5f16a5ee4e35d36e72f8f72fb2334087cb2ea680 (diff)
*** empty log message ***
Diffstat (limited to 'canohost.c')
-rw-r--r--canohost.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/canohost.c b/canohost.c
index 941db23b6..21a7eba85 100644
--- a/canohost.c
+++ b/canohost.c
@@ -81,7 +81,7 @@ get_remote_hostname(int socket, int verify_reverse_mapping)
81 NULL, 0, NI_NAMEREQD) != 0) { 81 NULL, 0, NI_NAMEREQD) != 0) {
82 /* Host name not found. Use ip address. */ 82 /* Host name not found. Use ip address. */
83#if 0 83#if 0
84 log("Could not reverse map address %.100s.", ntop); 84 logit("Could not reverse map address %.100s.", ntop);
85#endif 85#endif
86 return xstrdup(ntop); 86 return xstrdup(ntop);
87 } 87 }
@@ -111,7 +111,7 @@ get_remote_hostname(int socket, int verify_reverse_mapping)
111 hints.ai_family = from.ss_family; 111 hints.ai_family = from.ss_family;
112 hints.ai_socktype = SOCK_STREAM; 112 hints.ai_socktype = SOCK_STREAM;
113 if (getaddrinfo(name, NULL, &hints, &aitop) != 0) { 113 if (getaddrinfo(name, NULL, &hints, &aitop) != 0) {
114 log("reverse mapping checking getaddrinfo for %.700s " 114 logit("reverse mapping checking getaddrinfo for %.700s "
115 "failed - POSSIBLE BREAKIN ATTEMPT!", name); 115 "failed - POSSIBLE BREAKIN ATTEMPT!", name);
116 return xstrdup(ntop); 116 return xstrdup(ntop);
117 } 117 }
@@ -126,7 +126,7 @@ get_remote_hostname(int socket, int verify_reverse_mapping)
126 /* If we reached the end of the list, the address was not there. */ 126 /* If we reached the end of the list, the address was not there. */
127 if (!ai) { 127 if (!ai) {
128 /* Address not found for the host name. */ 128 /* Address not found for the host name. */
129 log("Address %.100s maps to %.600s, but this does not " 129 logit("Address %.100s maps to %.600s, but this does not "
130 "map back to the address - POSSIBLE BREAKIN ATTEMPT!", 130 "map back to the address - POSSIBLE BREAKIN ATTEMPT!",
131 ntop, name); 131 ntop, name);
132 return xstrdup(ntop); 132 return xstrdup(ntop);
@@ -166,7 +166,7 @@ check_ip_options(int socket, char *ipaddr)
166 for (i = 0; i < option_size; i++) 166 for (i = 0; i < option_size; i++)
167 snprintf(text + i*3, sizeof(text) - i*3, 167 snprintf(text + i*3, sizeof(text) - i*3,
168 " %2.2x", options[i]); 168 " %2.2x", options[i]);
169 log("Connection from %.100s with IP options:%.800s", 169 logit("Connection from %.100s with IP options:%.800s",
170 ipaddr, text); 170 ipaddr, text);
171 packet_disconnect("Connection from %.100s with IP options:%.800s", 171 packet_disconnect("Connection from %.100s with IP options:%.800s",
172 ipaddr, text); 172 ipaddr, text);