xref: /freebsd/crypto/openssh/canohost.h (revision 076ad2f836d5f49dc1375f1677335a48fe0d4b82)
1*076ad2f8SDag-Erling Smørgrav /* $OpenBSD: canohost.h,v 1.12 2016/03/07 19:02:43 djm Exp $ */
21e8db6e2SBrian Feldman 
31e8db6e2SBrian Feldman /*
41e8db6e2SBrian Feldman  * Author: Tatu Ylonen <ylo@cs.hut.fi>
51e8db6e2SBrian Feldman  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
61e8db6e2SBrian Feldman  *                    All rights reserved
71e8db6e2SBrian Feldman  *
81e8db6e2SBrian Feldman  * As far as I am concerned, the code I have written for this software
91e8db6e2SBrian Feldman  * can be used freely for any purpose.  Any derived versions of this
101e8db6e2SBrian Feldman  * software must be clearly marked as such, and if the derived work is
111e8db6e2SBrian Feldman  * incompatible with the protocol description in the RFC file, it must be
121e8db6e2SBrian Feldman  * called by a name other than "ssh" or "Secure Shell".
131e8db6e2SBrian Feldman  */
141e8db6e2SBrian Feldman 
15*076ad2f8SDag-Erling Smørgrav #ifndef _CANOHOST_H
16*076ad2f8SDag-Erling Smørgrav #define _CANOHOST_H
171e8db6e2SBrian Feldman 
18ae1f160dSDag-Erling Smørgrav char		*get_peer_ipaddr(int);
19ae1f160dSDag-Erling Smørgrav int		 get_peer_port(int);
20ae1f160dSDag-Erling Smørgrav char		*get_local_ipaddr(int);
21ae1f160dSDag-Erling Smørgrav char		*get_local_name(int);
22*076ad2f8SDag-Erling Smørgrav int		get_local_port(int);
231e8db6e2SBrian Feldman 
24*076ad2f8SDag-Erling Smørgrav #endif /* _CANOHOST_H */
255e8dbd04SDag-Erling Smørgrav 
265e8dbd04SDag-Erling Smørgrav void		 ipv64_normalise_mapped(struct sockaddr_storage *, socklen_t *);
27