1197679Sdes/* $OpenBSD: canohost.h,v 1.11 2009/05/27 06:31:25 andreas Exp $ */ 276259Sgreen 376259Sgreen/* 476259Sgreen * Author: Tatu Ylonen <ylo@cs.hut.fi> 576259Sgreen * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 676259Sgreen * All rights reserved 776259Sgreen * 876259Sgreen * As far as I am concerned, the code I have written for this software 976259Sgreen * can be used freely for any purpose. Any derived versions of this 1076259Sgreen * software must be clearly marked as such, and if the derived work is 1176259Sgreen * incompatible with the protocol description in the RFC file, it must be 1276259Sgreen * called by a name other than "ssh" or "Secure Shell". 1376259Sgreen */ 1476259Sgreen 1592555Sdesconst char *get_canonical_hostname(int); 1692555Sdesconst char *get_remote_ipaddr(void); 1792555Sdesconst char *get_remote_name_or_ip(u_int, int); 1876259Sgreen 1992555Sdeschar *get_peer_ipaddr(int); 2092555Sdesint get_peer_port(int); 2192555Sdeschar *get_local_ipaddr(int); 2292555Sdeschar *get_local_name(int); 2376259Sgreen 2492555Sdesint get_remote_port(void); 2592555Sdesint get_local_port(void); 26192595Sdesint get_sock_port(int, int); 27197679Sdesvoid clear_cached_addr(void); 28146998Sdes 29146998Sdesvoid ipv64_normalise_mapped(struct sockaddr_storage *, socklen_t *); 30