summaryrefslogtreecommitdiffstats
path: root/squark-auth-ip.c
diff options
context:
space:
mode:
Diffstat (limited to 'squark-auth-ip.c')
-rw-r--r--squark-auth-ip.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/squark-auth-ip.c b/squark-auth-ip.c
index 6993e85..602969b 100644
--- a/squark-auth-ip.c
+++ b/squark-auth-ip.c
@@ -141,7 +141,7 @@ int main(int argc, char **argv)
if (running < 0) {
struct authdb_entry entry;
void *token;
- char buf1[64], buf2[64];
+ char buf1[64], buf2[64], buf3[64];
if (ipaddr.any.sa_family == AF_UNSPEC) {
fprintf(stderr, "IP-address not specified\n");
@@ -176,6 +176,7 @@ int main(int argc, char **argv)
"Soft block mask: %016llx\n"
"Hard block mask: %016llx\n"
"Login time: %s"
+ "Last activity time: %s"
"Override time: %s",
ip.ptr,
entry.p.login_name,
@@ -187,8 +188,9 @@ int main(int argc, char **argv)
entry.p.mac_address[5],
entry.p.block_categories,
entry.p.hard_block_categories,
- entry.u.login_time ? ctime_r(&entry.u.login_time, buf1) : "<none>\n",
- entry.u.override_time ? ctime_r(&entry.u.override_time, buf2) : "<none>\n");
+ entry.p.login_time ? ctime_r(&entry.p.login_time, buf1) : "<none>\n",
+ entry.last_activity_time ? ctime_r(&entry.last_activity_time, buf2) : "<none>\n",
+ entry.override_time ? ctime_r(&entry.override_time, buf3) : "<none>\n");
break;
case DO_LOGOUT:
if (authdb_check_login(token, &entry, username, now))