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