Snort mailing list archives
v1.7 syslog.c Win32 conversion error - Incorrect date parameters
From: Rich Adamson <radamson () routers com>
Date: Mon, 28 May 2001 11:52:37 -0600
Problem: The Win32 version of Snort does not properly insert the date into the syslog message. Resolution: The "%h %e %T" format string used in Unix systems is not supported in Win32 systems. The format string "%b %d %X" produces the correct results. The following code should be changed within the syslog.c module for supporting the Win32 version of snort. (The change is based on v1.7 source code.) /* Win32 uses different formating characters then Unix */ #ifdef WIN32 prlen = strftime(p, tbuf_left, "%b %d %X ", localtime(&now)); #else prlen = strftime(p, tbuf_left, "%h %e %T ", localtime(&now)); #endif DEC(); Rich _______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: http://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users
Current thread:
- v1.7 syslog.c Win32 conversion error - Incorrect date parameters Rich Adamson (May 28)
- Re: v1.7 syslog.c Win32 conversion error - Incorrect date parameters Michael Davis (May 28)