1 /* $NetBSD: canohost.h,v 1.3 2009/12/27 01:40:47 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 16 const char *get_canonical_hostname(int); 17 const char *get_remote_ipaddr(void); 18 const char *get_remote_name_or_ip(u_int, int); 19 20 char *get_peer_ipaddr(int); 21 int get_peer_port(int); 22 char *get_local_ipaddr(int); 23 char *get_local_name(int); 24 25 int get_remote_port(void); 26 int get_local_port(void); 27 int get_sock_port(int, int); 28 void clear_cached_addr(void); 29