From: Russ Combs Date: Tue, 6 May 2014 16:43:58 +0000 (-0400) Subject: fixed build and tweaked tips X-Git-Tag: 3.0.0-233~1530 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0020fe1e2a6cc2df00d382a1b9150dec3d49d14;p=thirdparty%2Fsnort3.git fixed build and tweaked tips --- diff --git a/doc/tips.txt b/doc/tips.txt index 6fa0651df..8b0d369ce 100644 --- a/doc/tips.txt +++ b/doc/tips.txt @@ -2,6 +2,11 @@ The following pointers will help you get started: === Using git +* for help do: + + git --help + git --help + * create a git repo called Snort++ in your working directory: git clone /nfs/home/rcombs/Snort++ diff --git a/src/codecs/basic/cd_tcp.cc b/src/codecs/basic/cd_tcp.cc index 184bb0cd9..9a17d2827 100644 --- a/src/codecs/basic/cd_tcp.cc +++ b/src/codecs/basic/cd_tcp.cc @@ -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; } diff --git a/src/codecs/basic/cd_udp.cc b/src/codecs/basic/cd_udp.cc index e975f2ce4..61317182a 100644 --- a/src/codecs/basic/cd_udp.cc +++ b/src/codecs/basic/cd_udp.cc @@ -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) ||