Mercurial > dropbear
diff session.h @ 158:364a75cfebab
Log the IP along with auth success/fail attempts
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 23 Dec 2004 17:00:15 +0000 |
parents | 8c2b3506f112 |
children | 2c5741e4b855 |
line wrap: on
line diff
--- a/session.h Wed Dec 22 15:37:50 2004 +0000 +++ b/session.h Thu Dec 23 17:00:15 2004 +0000 @@ -48,7 +48,7 @@ /* 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 @@ * svr-chansession.c for details */ struct exitinfo lastexit; + /* The numeric address they connected from, used for logging */ + char * addrstring; + }; typedef enum {