log ip addresses. - Factor out the common code in login.c and login_pam.c into common.c - Always log a login event - Check passed in sockaddr against the one from getpeername(2).