xref: /openssh-portable/canohost.h (revision 95767262)
1*95767262Sdjm@openbsd.org /* $OpenBSD: canohost.h,v 1.12 2016/03/07 19:02:43 djm Exp $ */
236579d3dSBen Lindstrom 
3226cfa03SBen Lindstrom /*
4226cfa03SBen Lindstrom  * Author: Tatu Ylonen <ylo@cs.hut.fi>
5226cfa03SBen Lindstrom  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6226cfa03SBen Lindstrom  *                    All rights reserved
7226cfa03SBen Lindstrom  *
8226cfa03SBen Lindstrom  * As far as I am concerned, the code I have written for this software
9226cfa03SBen Lindstrom  * can be used freely for any purpose.  Any derived versions of this
10226cfa03SBen Lindstrom  * software must be clearly marked as such, and if the derived work is
11226cfa03SBen Lindstrom  * incompatible with the protocol description in the RFC file, it must be
12226cfa03SBen Lindstrom  * called by a name other than "ssh" or "Secure Shell".
13226cfa03SBen Lindstrom  */
14226cfa03SBen Lindstrom 
15*95767262Sdjm@openbsd.org #ifndef _CANOHOST_H
16*95767262Sdjm@openbsd.org #define _CANOHOST_H
17f15a3865SBen Lindstrom 
1816ae3d0dSBen Lindstrom char		*get_peer_ipaddr(int);
1916ae3d0dSBen Lindstrom int		 get_peer_port(int);
2016ae3d0dSBen Lindstrom char		*get_local_ipaddr(int);
2116ae3d0dSBen Lindstrom char		*get_local_name(int);
22*95767262Sdjm@openbsd.org int		get_local_port(int);
23226cfa03SBen Lindstrom 
24*95767262Sdjm@openbsd.org #endif /* _CANOHOST_H */
252fba9930SDarren Tucker 
262fba9930SDarren Tucker void		 ipv64_normalise_mapped(struct sockaddr_storage *, socklen_t *);