Snort mailing list archives
Re: v1.7 syslog.c Win32 conversion error - Incorrect date parameters
From: "Michael Davis" <mike () datanerds net>
Date: Mon, 28 May 2001 23:13:47 -0500
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks for the catch, however, since spo_alert_syslog got updated I removed this part of the code and when 1.8 is released this should work properly. Thanks for the bug report though! Thanks, Michael Davis Chief Technical Officer Data Nerds, LLC. http://www.datanerds.net - ----- Original Message ----- From: "Rich Adamson" <radamson () routers com> To: "Snort Developers Postings" <snort-devel () lists sourceforge net>; "Snort Users Postings" <snort-users () lists sourceforge net> Sent: Monday, May 28, 2001 12:52 PM Subject: v1.7 syslog.c Win32 conversion error - Incorrect date parameters
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
-----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com> iQA/AwUBOxMh+viUqZ9dnoKsEQLBWACcDcAYyfO6hyfb/DcUoEgImwt/YlUAn2z/ xuEFbjCgwOPCgW8MyiOT6txa =LkZq -----END PGP SIGNATURE----- _______________________________________________ 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)
