Mercurial > dropbear
diff svr-session.c @ 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 | 3be7ae2e8dfa 740e782679be |
line wrap: on
line diff
--- a/svr-session.c Wed Dec 22 15:37:50 2004 +0000 +++ b/svr-session.c Thu Dec 23 17:00:15 2004 +0000 @@ -74,7 +74,8 @@ NULL /* Null termination is mandatory. */ }; -void svr_session(int sock, int childpipe, char* remotehost) { +void svr_session(int sock, int childpipe, + char* remotehost, char *addrstring) { struct timeval timeout; @@ -83,6 +84,7 @@ /* Initialise server specific parts of the session */ svr_ses.childpipe = childpipe; + svr_ses.addrstring = addrstring; svr_authinitialise(); chaninitialise(svr_chantypes); svr_chansessinitialise();