[Snort-devel] [PATCH] spo_xml.c

Peter Moore peter at ...799...
Sun Nov 4 23:49:01 EST 2001


for BeOS BONE
BeOS has it's own send_data which is used for the message loop.
there'll be a change in spo_xml.h as well.

snort-1.8.2->diff -u spo_xml.c.orig spo_xml.c
--- spo_xml.c.orig      Wed Oct 24 12:16:58 2001
+++ spo_xml.c   Mon Nov  5 02:25:19 2001
@@ -516,7 +516,11 @@

     if(d->count >= MAX_QUEUE)
     {
-        send_data(d);
+#ifdef BEOS
+        send_xml_data(d);
+#else
+               send_data(d);
+#endif
         flush_data(d);
     }

@@ -537,7 +541,12 @@
  * Returns: void function
  *
  */
+// BeOS has a system send_data in OS.h
+#ifdef BEOS
+void send_xml_data(XmlData *d)
+#else
 void send_data(XmlData *d)
+#endif
 {
     char * output;
     char * ptr;
@@ -1780,7 +1789,11 @@
     printf(XMLMOD":LogXmlExit\n");
 #endif

-    send_data(d);
+#ifdef BEOS
+       send_xml_data(d);
+#else
+       send_data(d);
+#endif
     flush_data(d);
     if((d->host == NULL) || (!d->port) || (d->protocol == NULL))
     {
@@ -1811,7 +1824,11 @@
     printf(XMLMOD":LogXmlRestart\n");
 #endif

-    send_data(d);
+#ifdef BEOS
+       send_xml_data(d);
+#else
+       send_data(d);
+#endif
     flush_data(d);





More information about the Snort-devel mailing list