canohost.h revision 1.1.1.2
1/*	$NetBSD: canohost.h,v 1.1.1.2 2009/12/27 01:06:50 christos Exp $	*/
2/* $OpenBSD: canohost.h,v 1.11 2009/05/27 06:31:25 andreas Exp $ */
3
4/*
5 * Author: Tatu Ylonen <ylo@cs.hut.fi>
6 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
7 *                    All rights reserved
8 *
9 * As far as I am concerned, the code I have written for this software
10 * can be used freely for any purpose.  Any derived versions of this
11 * software must be clearly marked as such, and if the derived work is
12 * incompatible with the protocol description in the RFC file, it must be
13 * called by a name other than "ssh" or "Secure Shell".
14 */
15
16const char	*get_canonical_hostname(int);
17const char	*get_remote_ipaddr(void);
18const char	*get_remote_name_or_ip(u_int, int);
19
20char		*get_peer_ipaddr(int);
21int		 get_peer_port(int);
22char		*get_local_ipaddr(int);
23char		*get_local_name(int);
24
25int		 get_remote_port(void);
26int		 get_local_port(void);
27int		 get_sock_port(int, int);
28void		 clear_cached_addr(void);
29