[Snort-devel] Missing addition for WELF logging with my previous email

Bradley A. Plank bplank at ...2952...
Mon Dec 10 09:58:06 EST 2007


Index: src/util.c
===================================================================
@@ -707,7 +707,12 @@
     {
         vsnprintf(buf, STD_BUF, format, ap);
         buf[STD_BUF] = '\0';
-        syslog(LOG_DAEMON | LOG_NOTICE, "%s", buf);
+
+#ifdef FEATURE_B_PLANK
+	syslog(LOG_SECURITY | LOG_NOTICE, "<WELF>msg=\"IPS: %s\" type=mgmt",
buf);
+#else
+	syslog(LOG_DAEMON | LOG_NOTICE, "%s", buf);
+#endif /* FEATURE_B_PLANK */
     }
     else
     {






More information about the Snort-devel mailing list