]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixed build and tweaked tips
authorRuss Combs <rucombs@cisco.com>
Tue, 6 May 2014 16:43:58 +0000 (12:43 -0400)
committerRuss Combs <rucombs@cisco.com>
Tue, 6 May 2014 16:43:58 +0000 (12:43 -0400)
doc/tips.txt
src/codecs/basic/cd_tcp.cc
src/codecs/basic/cd_udp.cc

index 6fa0651dfd095247cd5e978c01e8b1f0d46b1bf1..8b0d369cee6a7eb82e0710eee72e64d47cfab4e1 100644 (file)
@@ -2,6 +2,11 @@ The following pointers will help you get started:
 
 === Using git
 
+* for help do:
+
+    git --help
+    git <command> --help
+
 * create a git repo called Snort++ in your working directory:
 
     git clone /nfs/home/rcombs/Snort++
index 184bb0cd9d9fbff84e44b6f52f7bc1518eb003d2..9a17d28275777cf35df0231e032d2b06caa07138 100644 (file)
@@ -308,11 +308,7 @@ bool TcpCodec::decode(const uint8_t *raw_pkt, const uint32_t len,
         codec_events::decoder_event(p, DECODE_TCP_BAD_URP);
 
     p->proto_bits |= PROTO_BIT__TCP;
-
-    if (ScIgnoreTcpPort(p->sp) || ScIgnoreTcpPort(p->dp))
-        p->packet_flags |= PKT_IGNORE;
-    else
-        TCPMiscTests(p);
+    TCPMiscTests(p);
     
     return true;
 }
index e975f2ce4169be6d55d04fa51b97c0078f6cc9de..61317182a7787739ba1d02d152ced0e1d956ccc7 100644 (file)
@@ -241,15 +241,6 @@ bool UdpCodec::decode(const uint8_t *raw_pkt, const uint32_t len,
 //    p->data = (uint8_t *) (raw_pkt + udp::header_len());
 //    p->dsize = uhlen - udp::header_len(); // length validated above
     p->proto_bits |= PROTO_BIT__UDP;
-
-    /*  Drop packet if we ignore this port  */
-    if (ScIgnoreUdpPort(p->sp) || ScIgnoreUdpPort(p->dp))
-    {
-        /*  Ignore all preprocessors for this packet */
-        p->packet_flags |= PKT_IGNORE;
-        return true;
-    }
-
     UDPMiscTests(p);
 
     if (teredo::is_teredo_port(p->sp) ||