Common subdirectories: arpwatch-2.1a13/lbl and arpwatch-2.1a13-betterbogon/lbl Common subdirectories: arpwatch-2.1a13/linux-include and arpwatch-2.1a13-betterbogon/linux-include diff -u arpwatch-2.1a13/util.c arpwatch-2.1a13-betterbogon/util.c --- arpwatch-2.1a13/util.c Thu Jul 6 12:46:13 2006 +++ arpwatch-2.1a13-betterbogon/util.c Thu Jul 6 14:06:14 2006 @@ -67,7 +67,8 @@ dosyslog(register int p, register char *s, register u_int32_t a, register u_char *ea, register u_char *ha) { - char xbuf[64]; + char xbuf[64], stime[32]; + time_t t; /* No report until we're initialized */ if (initializing) @@ -81,8 +82,11 @@ (void)strcat(xbuf, ")"); } + t = time(NULL); + strftime(stime,32,"%Y/%m/%d-%T",localtime(&t)) ; + if (debug) - fprintf(stderr, "%s: %s %s %s\n", prog, s, intoa(a), xbuf); + fprintf(stderr, "%s %s %s %s\n", stime, s, intoa(a), xbuf); else syslog(p, "%s %s %s", s, intoa(a), xbuf); }