canohost.h 843 B

123456789101112131415161718192021222324252627
  1. /* $OpenBSD: canohost.h,v 1.12 2016/03/07 19:02:43 djm Exp $ */
  2. /*
  3. * Author: Tatu Ylonen <ylo@cs.hut.fi>
  4. * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  5. * All rights reserved
  6. *
  7. * As far as I am concerned, the code I have written for this software
  8. * can be used freely for any purpose. Any derived versions of this
  9. * software must be clearly marked as such, and if the derived work is
  10. * incompatible with the protocol description in the RFC file, it must be
  11. * called by a name other than "ssh" or "Secure Shell".
  12. */
  13. #ifndef _CANOHOST_H
  14. #define _CANOHOST_H
  15. char *get_peer_ipaddr(int);
  16. int get_peer_port(int);
  17. char *get_local_ipaddr(int);
  18. char *get_local_name(int);
  19. int get_local_port(int);
  20. #endif /* _CANOHOST_H */
  21. void ipv64_normalise_mapped(struct sockaddr_storage *, socklen_t *);