[Snort-devel] little diff on snort v2.6.3 debug on

rmkml rmkml at ...879...
Mon Apr 2 14:27:18 EDT 2007


Hi,

Please review all change,

First change :
diff -u -r1.1 dynamic-preprocessors/smtp/snort_smtp.c
@@ -924,7 +924,7 @@
      u_int16_t i = 0;

  #ifdef DEBUG
-    p->payload[p->payload_size - 1] = '\0';
+    p->payload[p->payload_size + 1] = '\0';


Second change (little) :
+++ preprocessors/spp_stream4.c 2007/03/23 09:01:56
@@ -4641,7 +4641,7 @@
          return 0;

      DEBUG_WRAP(DebugMessage(DEBUG_STREAM_STATE,
-                "Dropping packet data at seq %X, len %d\n",
+                "Dropping packet data at seq 0x%X, len %d\n",


Third change (little) :
+++ preprocessors/spp_stream4.c 2007/03/23 09:01:56
@@ -4662,7 +4662,7 @@
  static void AddSpd(Stream *s, StreamPacketData *prev, StreamPacketData *new)
  {
      DEBUG_WRAP(DebugMessage(DEBUG_STREAM_STATE,
-                "Adding packet data at seq %X, len %d\n",
+                "Adding packet data at seq 0x%X, len %d\n",


Four change (why added g ?) :
+++ preprocessors/spp_stream4.c 2007/03/23 09:01:56
@@ -5394,7 +5394,7 @@
      sfPerf.sfBase.iStreamFlushes++;

      DEBUG_WRAP(DebugMessage(DEBUG_STREAM, "FlushStream Entered:"
-                "last_ack(%u) base_seq(%u) pkt_count(%u)\ng",
+                "last_ack(%u) base_seq(%u) pkt_count(%u)\n",


Five change (why ip_dst dont print ip ?) :
+++ preprocessors/spp_stream4.c 2007/03/23 09:01:56
@@ -6153,7 +6153,7 @@
                  "Built packet to %s from %s with %u byte payload, "
                  "Direction: %s\n",
                  inet_ntoa(stream_pkt->iph->ip_src),
-                stream_pkt->iph->ip_dst,
+                inet_ntoa(stream_pkt->iph->ip_dst),


Please Credits to Crusoe Researches (rmkml at ...879...)

Regards
Rmkml




More information about the Snort-devel mailing list