[Snort-devel] snort 1.9 cvs

Phil Wood cpw at ...86...
Wed May 15 11:18:04 EDT 2002


I noticed that you removed util.h from some files (like sp_tcp_seq_check.c).
This could cause a problem down the line if you decide to convert printf's
to something like LogMessage:

--- sp_tcp_seq_check.c  Mon May 13 20:14:07 2002
+++ xxx.c       Wed May 15 18:08:33 2002
@@ -85,7 +85,7 @@
 {
     if(protocol != IPPROTO_TCP)
     {
-        fprintf(stderr, "ERROR Line %s (%d): TCP Options on non-TCP rule\n", file_name, file_line);
+        LogMessage ( "ERROR Line %s (%d): TCP Options on non-TCP rule\n", file_name, file_line);
         exit(1);
     }

Later,

Phil




More information about the Snort-devel mailing list