Eric Leblond
8be92fdd99
SCTP support: add parsing of sctp
...
This patch adds support of SCTP in all part of the code in charge
of decoding packets.
15 years ago
Victor Julien
477bc1d050
Set DROP flag on a packet in addition to the REJECT flags. This makes sure we not only send a reject, but also drop the offending packet. Closes #248 .
15 years ago
Victor Julien
addab7b5ee
Don't test the several packet detection checks against pseudo packets as the matches would not be meaningful anyway. Prevents a segv in the csum detection.
15 years ago
Eric Leblond
d0faa6c96e
Fix some spacing.
...
This trivial patch fixes some indentation problems.
Signed-off-by: Eric Leblond <eric@regit.org>
15 years ago
Victor Julien
25f5589078
First round of adding 'stream events'. Basic stream tracking events added.
15 years ago
Victor Julien
2849d2b1d3
Initial code for stream 'inline' mode: packets that are (partly) overlapping with already accepted packets (meaning in the streams seg list) are rewritten to make sure they contain the exact same data.
15 years ago
Victor Julien
f606621e8c
Fix the pseudo packet having the wrong proto set, causing massive fp's. Flag packets to be part of the established phase of a tcp session, so we won't prematurely inspect the app layer state.
15 years ago
Victor Julien
61a9936d55
Inspect a pseudo packet upon receiving a RST so that we are sure both sides of the TCP session are inspected.
15 years ago
Eric Leblond
e802e1ed16
Modify Packet structure and prepare accessor.
...
This patch modifies decode.c and decode.h to avoid the usage
by default of a bigger than 65535 bytes array in Packet structure.
The idea is that the packet are mainly under 1514 bytes size and
a bigger size must be supported but should not be the default.
If the packet length is bigger than DFLT_PACKET_SIZE then the
data are stored in a dynamically allocated part of the memory.
To ease the modification of the rest of the code, functions to
access and set the payload/length in a Packet have been introduced.
The default packet size can be set at runtime via the default-packet-size
configuration variable.
15 years ago
Victor Julien
1112e103a8
Disable DBG_PERF by default except for when DEBUG is enabled.
15 years ago
Anoop Saldanha
88d94b136d
Support for reference.config file
15 years ago
Victor Julien
fc248ca7a1
Many small performance updates.
15 years ago
Victor Julien
57b098e98c
Add padding to commonly used data structures.
15 years ago
Pablo Rincon
5c43db85ce
Drop streams on inline mode when a drop rule match from a reassembled stream and/or app layer inspection
15 years ago
Pablo Rincon
70bda6506d
Fix for bug 180 (check proto specified at the IP hdr)
15 years ago
Victor Julien
1fb11e939a
Improve configure messages. Make sure CUDA doesn't try to process packets that are too big.
15 years ago
Victor Julien
e14331cbb2
Fix PACKET_RECYCLE not cleaning all of the packet.
15 years ago
Victor Julien
3c1ae607cf
Fix cuda compilation.
15 years ago
Anoop Saldanha
33f4beb0bc
batching of packets support for cuda b2g mpm. Supported for both 32 and 64 bit platforms
15 years ago
Victor Julien
017b95f9ef
More thoroughly cleanup a Packet when we recycle it. Fixes a corner case where we'd have a invalid tcp packet but p->proto would still say IPPROTO_TCP because of a previous run. Fixes bug #187 .
15 years ago
Victor Julien
580b09c2b8
Make sure we inspect all outstanding reassembled stream chunks (smsg) if the stream is shutting down. Make sure to do inspect signatures that use dsize against the tcp packet payload, even if that payload was already added to the stream. Likewise, the dsize signatures are not inspected against the reassembled stream.
15 years ago
Victor Julien
a3ff0e7210
Don't scan TCP packet payload if it was added to the stream. Inspect the tcp stream with the correct packet. Should fix #184 and #185 .
15 years ago
Pablo Rincon
eed0ef6e69
Adding tag keyword support
15 years ago
Victor Julien
6519a86ec7
Move packet pool to ringbuffer, update packet pool api and ringbuffer api. Remove memset usage from PACKET_RECYCLE, add proper cleanup macros.
15 years ago
Victor Julien
37442a8a84
Prefilter signatures before fully scanning them.
15 years ago
Pablo Rincon
8cc525c939
UDP support at AppLayer message handling
15 years ago
Victor Julien
fdd0f3939e
Reduce size of event bit array in the packet structure.
15 years ago
Anoop Saldanha
f4120ff5d5
wrap multi line macros in do while
15 years ago
William Metcalf
2eef905c07
GPL and Copyright header updates.
15 years ago
Victor Julien
b8641f300d
Rename asn1 files, fix an invalid free, fix improper init of vars in one unittest.
15 years ago
Pablo Rincon
3fa3229e01
ASN1 decoder and keyword implementation
15 years ago
Victor Julien
bb685751d9
Fix NFQ receive/verdict race condition in cases where the packetpool is empty.
15 years ago
Victor Julien
e741bd0202
Cleanup packet recycling code. Fix issues in the packet tunnel/pseudo code.
15 years ago
Victor Julien
19584d0416
Fix tunneled and defrag reassembled packets with the new pending limits.
15 years ago
Victor Julien
46831e0f8f
Fix signature grouping bug for protocols without ports. Add debugging code.
15 years ago
Victor Julien
7a427ec7f4
Switch to pattern id based results checking in the mpm. Move app layer proto detection towards a more signature based approach.
15 years ago
Victor Julien
a372c1d14e
Fix/workaround a strange detection issue.
15 years ago
Pablo Rincon
1238668961
Adding actions order and suport for rule action "pass"
15 years ago
Victor Julien
b90ebc1ce5
Add a packet count var for pcap file mode to the Packet structure to ease debugging.
15 years ago
William Metcalf
ce01927515
Import of GPLv2 Header 050410
15 years ago
Victor Julien
be5b547803
Convert DecodeSetNoPayloadInspectionFlag and DecodeSetNoPacketInspectionFlag to macro's.
15 years ago
Victor Julien
fe7ece997a
Different approach to the reference keyword. Lots of cleanups, bug fixes in reference keyword code and tests.
15 years ago
Breno Silva
89baf93a40
Reference Support
15 years ago
Victor Julien
dd846c9b0e
Remove all search code from the pattern matchers, cleanup mpm api, remove unused http code, more cleanups.
16 years ago
Anoop Saldanha
8cf60d6645
Changed the way cuda dispatcher passes back results. Now each detection thread has it's own queue to which the dispatcher can pump packets back to the detect thread. Also, with cuda enabled and a non-cuda mpm being used, we won't create a dispatcher and instead call the b2g scan/search funtions directly instead of using the dispatcher.
16 years ago
Anoop Saldanha
c26e92733d
handle the cuda cleanup at shutdown. should get rid of any errors from the call to SigGroupCleanup
16 years ago
Anoop Saldanha
41e6735b92
mpm b2g cuda support added
16 years ago
Breno Silva
b02bb6b6b4
VLAN Support
16 years ago
Jason Ish
e87d4f8a28
Split the defrag counters into ipv4 and ipv6.
16 years ago
Jason Ish
6b562f7aa6
Issue 82 - fragment counters. - number of fragments - number reassembled - number of timeouts
16 years ago