diff options
Diffstat (limited to 'canohost.c')
-rw-r--r-- | canohost.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/canohost.c b/canohost.c index 5d345eb27..6e6a04505 100644 --- a/canohost.c +++ b/canohost.c | |||
@@ -12,21 +12,21 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "includes.h" | 14 | #include "includes.h" |
15 | RCSID("$OpenBSD: canohost.c,v 1.26 2001/04/18 14:15:00 markus Exp $"); | 15 | RCSID("$OpenBSD: canohost.c,v 1.27 2001/06/23 15:12:17 itojun Exp $"); |
16 | 16 | ||
17 | #include "packet.h" | 17 | #include "packet.h" |
18 | #include "xmalloc.h" | 18 | #include "xmalloc.h" |
19 | #include "log.h" | 19 | #include "log.h" |
20 | #include "canohost.h" | 20 | #include "canohost.h" |
21 | 21 | ||
22 | void check_ip_options(int socket, char *ipaddr); | 22 | static void check_ip_options(int, char *); |
23 | 23 | ||
24 | /* | 24 | /* |
25 | * Return the canonical name of the host at the other end of the socket. The | 25 | * Return the canonical name of the host at the other end of the socket. The |
26 | * caller should free the returned string with xfree. | 26 | * caller should free the returned string with xfree. |
27 | */ | 27 | */ |
28 | 28 | ||
29 | char * | 29 | static char * |
30 | get_remote_hostname(int socket, int reverse_mapping_check) | 30 | get_remote_hostname(int socket, int reverse_mapping_check) |
31 | { | 31 | { |
32 | struct sockaddr_storage from; | 32 | struct sockaddr_storage from; |
@@ -140,7 +140,7 @@ get_remote_hostname(int socket, int reverse_mapping_check) | |||
140 | * exit here if we detect any IP options. | 140 | * exit here if we detect any IP options. |
141 | */ | 141 | */ |
142 | /* IPv4 only */ | 142 | /* IPv4 only */ |
143 | void | 143 | static void |
144 | check_ip_options(int socket, char *ipaddr) | 144 | check_ip_options(int socket, char *ipaddr) |
145 | { | 145 | { |
146 | u_char options[200]; | 146 | u_char options[200]; |
@@ -202,7 +202,7 @@ get_canonical_hostname(int reverse_mapping_check) | |||
202 | * Returns the remote IP-address of socket as a string. The returned | 202 | * Returns the remote IP-address of socket as a string. The returned |
203 | * string must be freed. | 203 | * string must be freed. |
204 | */ | 204 | */ |
205 | char * | 205 | static char * |
206 | get_socket_address(int socket, int remote, int flags) | 206 | get_socket_address(int socket, int remote, int flags) |
207 | { | 207 | { |
208 | struct sockaddr_storage addr; | 208 | struct sockaddr_storage addr; |
@@ -293,7 +293,7 @@ get_remote_name_or_ip(u_int utmp_len, int reverse_mapping_check) | |||
293 | 293 | ||
294 | /* Returns the local/remote port for the socket. */ | 294 | /* Returns the local/remote port for the socket. */ |
295 | 295 | ||
296 | int | 296 | static int |
297 | get_sock_port(int sock, int local) | 297 | get_sock_port(int sock, int local) |
298 | { | 298 | { |
299 | struct sockaddr_storage from; | 299 | struct sockaddr_storage from; |
@@ -323,7 +323,7 @@ get_sock_port(int sock, int local) | |||
323 | 323 | ||
324 | /* Returns remote/local port number for the current connection. */ | 324 | /* Returns remote/local port number for the current connection. */ |
325 | 325 | ||
326 | int | 326 | static int |
327 | get_port(int local) | 327 | get_port(int local) |
328 | { | 328 | { |
329 | /* | 329 | /* |