summaryrefslogtreecommitdiffhomepage
path: root/session.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-12-23 17:00:15 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-12-23 17:00:15 +0000
commit9d4318370418b66796d370cb1fa05d49c28920b0 (patch)
treeed87ba82226d3eddce366b14a29d71464ebe4921 /session.h
parente7677a5e8ddaa4787659a1a9e5320369c94564e4 (diff)
Log the IP along with auth success/fail attempts
--HG-- extra : convert_revision : 25eab43bd46e931fd4afecec49c22b9311062099
Diffstat (limited to 'session.h')
-rw-r--r--session.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/session.h b/session.h
index 629dc65..1d5ebb4 100644
--- a/session.h
+++ b/session.h
@@ -48,7 +48,7 @@ void session_identification();
/* Server */
-void svr_session(int sock, int childpipe, char *remotehost);
+void svr_session(int sock, int childpipe, char *remotehost, char *addrstring);
void svr_dropbear_exit(int exitcode, const char* format, va_list param);
void svr_dropbear_log(int priority, const char* format, va_list param);
@@ -180,6 +180,9 @@ struct serversession {
* svr-chansession.c for details */
struct exitinfo lastexit;
+ /* The numeric address they connected from, used for logging */
+ char * addrstring;
+
};
typedef enum {