summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/ssh.h
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2000-06-26 05:44:23 +0000
committergreen <green@FreeBSD.org>2000-06-26 05:44:23 +0000
commit9bccae4f2e267ca62056b16d55b797317a3060a6 (patch)
treee7fa8720c8c45d3a71b8303040261663e3c13769 /crypto/openssh/ssh.h
parent1f6b02c5a30aeb0ad40e2c490bd13805890ab99c (diff)
downloadFreeBSD-src-9bccae4f2e267ca62056b16d55b797317a3060a6.zip
FreeBSD-src-9bccae4f2e267ca62056b16d55b797317a3060a6.tar.gz
Make rate limiting work per-listening-socket. Log better messages than
before for this, requiring a new function (get_ipaddr()). canohost.c receives a $FreeBSD$ line. Suggested by: Niels Provos <niels@OpenBSD.org>
Diffstat (limited to 'crypto/openssh/ssh.h')
-rw-r--r--crypto/openssh/ssh.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/openssh/ssh.h b/crypto/openssh/ssh.h
index 8024f51..bdc54a2 100644
--- a/crypto/openssh/ssh.h
+++ b/crypto/openssh/ssh.h
@@ -364,6 +364,11 @@ char *get_remote_hostname(int socket);
const char *get_canonical_hostname(void);
/*
+ * Returns the local IP address as an ascii string.
+ */
+const char *get_ipaddr(int socket);
+
+/*
* Returns the remote IP address as an ascii string. The value need not be
* freed by the caller.
*/
OpenPOWER on IntegriCloud