summaryrefslogtreecommitdiff
path: root/canohost.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-01-30 09:19:34 +1100
committerDamien Miller <djm@mindrot.org>2001-01-30 09:19:34 +1100
commitd83ff35d66e11978e0b821ecbfa07011ddcb8868 (patch)
treeb4c757a1a9acd2a1acd074a00fce71b30ff2ee48 /canohost.h
parent5e953217f13b340d8a5fbcd771a1dbaf43354f20 (diff)
- (djm) OpenBSD CVS Sync:
- markus@cvs.openbsd.org 2001/01/29 12:42:35 [canohost.c canohost.h channels.c clientloop.c] add get_peer_ipaddr(socket), x11-fwd in ssh2 requires ipaddr, not DNS
Diffstat (limited to 'canohost.h')
-rw-r--r--canohost.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/canohost.h b/canohost.h
index ba04c59f5..982ec5949 100644
--- a/canohost.h
+++ b/canohost.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: canohost.h,v 1.2 2001/01/29 01:58:15 niklas Exp $ */ 1/* $OpenBSD: canohost.h,v 1.3 2001/01/29 19:42:35 markus Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -25,12 +25,13 @@ char *get_remote_hostname(int socket);
25const char *get_canonical_hostname(void); 25const char *get_canonical_hostname(void);
26 26
27/* 27/*
28 * Returns the remote IP address as an ascii string. The value need not be 28 * Returns the IP-address of the remote host as a string. The returned
29 * freed by the caller. 29 * string must not be freed.
30 */ 30 */
31const char *get_remote_ipaddr(void); 31const char *get_remote_ipaddr(void);
32 32
33/* Returns the port number of the peer of the socket. */ 33/* Returns the ipaddr/port number of the peer of the socket. */
34char * get_peer_ipaddr(int socket);
34int get_peer_port(int sock); 35int get_peer_port(int sock);
35 36
36/* Returns the port number of the remote/local host. */ 37/* Returns the port number of the remote/local host. */