summaryrefslogtreecommitdiff
path: root/canohost.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-04-16 11:18:38 +1000
committerDamien Miller <djm@mindrot.org>2000-04-16 11:18:38 +1000
commit4af51306d9a51459a5bef922df1037f876ae51fe (patch)
tree09ecfc215fce82345a3259f8a0f384b9a67906f0 /canohost.c
parent5d1705ecf9bd3216dc99a84242bcdf2e7297d307 (diff)
- OpenBSD CVS updates.
[ssh.1 ssh.c] - ssh -2 [auth.c channels.c clientloop.c packet.c packet.h serverloop.c] [session.c sshconnect.c] - check payload for (illegal) extra data [ALL] - whitespace cleanup
Diffstat (limited to 'canohost.c')
-rw-r--r--canohost.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/canohost.c b/canohost.c
index a11d66392..1b5790929 100644
--- a/canohost.c
+++ b/canohost.c
@@ -1,20 +1,20 @@
1/* 1/*
2 * 2 *
3 * canohost.c 3 * canohost.c
4 * 4 *
5 * Author: Tatu Ylonen <ylo@cs.hut.fi> 5 * Author: Tatu Ylonen <ylo@cs.hut.fi>
6 * 6 *
7 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 7 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
8 * All rights reserved 8 * All rights reserved
9 * 9 *
10 * Created: Sun Jul 2 17:52:22 1995 ylo 10 * Created: Sun Jul 2 17:52:22 1995 ylo
11 * 11 *
12 * Functions for returning the canonical host name of the remote site. 12 * Functions for returning the canonical host name of the remote site.
13 * 13 *
14 */ 14 */
15 15
16#include "includes.h" 16#include "includes.h"
17RCSID("$Id: canohost.c,v 1.8 2000/03/11 09:45:41 damien Exp $"); 17RCSID("$Id: canohost.c,v 1.9 2000/04/16 01:18:40 damien Exp $");
18 18
19#include "packet.h" 19#include "packet.h"
20#include "xmalloc.h" 20#include "xmalloc.h"
@@ -265,7 +265,7 @@ get_sock_port(int sock, int local)
265 265
266/* Returns remote/local port number for the current connection. */ 266/* Returns remote/local port number for the current connection. */
267 267
268int 268int
269get_port(int local) 269get_port(int local)
270{ 270{
271 /* 271 /*
@@ -279,13 +279,13 @@ get_port(int local)
279 return get_sock_port(packet_get_connection_in(), local); 279 return get_sock_port(packet_get_connection_in(), local);
280} 280}
281 281
282int 282int
283get_peer_port(int sock) 283get_peer_port(int sock)
284{ 284{
285 return get_sock_port(sock, 0); 285 return get_sock_port(sock, 0);
286} 286}
287 287
288int 288int
289get_remote_port() 289get_remote_port()
290{ 290{
291 return get_port(0); 291 return get_port(0);