Anoop Saldanha
0c94d910e4
Removed FLOW_AL_STREAM_TOSERVER and FLOW_AL_STREAM_TOCLIENT. Use STREAM_TOSERVER and STREAM_TOCLIENT instead
14 years ago
Anoop Saldanha
000ce98cd1
push all proto detection code into their respective app parser register functions for every alproto
14 years ago
Victor Julien
936b34ddf6
Remove minimum init chunk length code, set a default limit of 2560 to the minimum chunk size, allow toclient raw reassembly to start even if toserver hasn't started yet.
15 years ago
Anoop Saldanha
cacf0a9017
disabled sslv23 proto detection which we enabled previously. Although this is right, need to test a couple of things
15 years ago
Anoop Saldanha
8c6d4531ee
sslv23 support with ssl2 record format with version set to 3.0
15 years ago
Gurvinder Singh
8f8b1212af
support for ssl_version keyword
15 years ago
Eric Leblond
66a15e2d6d
Fix some Packet initialisation.
...
This patch fixes Packet initialisation. In some place the pkt field
was not set after a memset used to zero the structure and this could
lead to some problems.
15 years ago
Victor Julien
1d971b53a6
Update all unittests
15 years ago
Eric Leblond
dd038c1906
Modify files to avoid direct pckt payload access
...
This patch implements the needed modification of payload access
in a Packet structure to support the abstraction introduced by
the extended data system.
15 years ago
Victor Julien
fc248ca7a1
Many small performance updates.
15 years ago
Pablo Rincon
76af1b049b
Make malloc errors on initialization stage a fatal error, resulting on a exit() call
15 years ago
Victor Julien
1d73e1fb7e
Small update to the ssh module: fix a valgrind warning and a couple of compiler warnings. Do a few small style updates.
15 years ago
Pablo Rincon
9d7baa7a9f
Adding ssh app layer module with two new keywords: ssh.protoversion and ssh.softwareversion
15 years ago
Victor Julien
1071a53210
Fix unittests after ip_proto keyword change.
15 years ago
Victor Julien
13045683ff
Reenable and fix AlpDetectTestSig5
15 years ago
Pablo Rincon
c6e090f72c
App layer proto specific sigs (use the app layer to match proto)
15 years ago
Kirby Kuehl
c3b9305259
dcerpc udp support
15 years ago
Victor Julien
dce323b1f4
Fix SCondWait -> SCCondWait typo.
15 years ago
Victor Julien
ba12f3c109
Applayer to flow fixes and cleanups.
15 years ago
Pablo Rincon
8cc525c939
UDP support at AppLayer message handling
15 years ago
Victor Julien
6c6e6321fc
Fix HTTP HEAD detection code.
15 years ago
Gurvinder Singh
cda664a8c4
memroy leaks fixes in detection module, app layer and counters
15 years ago
Gurvinder Singh
5fe1dc1d24
support for sslv2/sslv3 their unit tests and better stream no reassembly flag handling
15 years ago
Victor Julien
70b32f7380
First stab at creating a stateful detection engine.
...
Stateful detection for app layer detection keywords, except uricontent. Stores it's partial results in the flow structure. Other modifications:
- Generalize transaction tracking, logging and inspection.
- Adapt http and dcerpc to use the new transaction handling.
- Stream engine now always notifies app layer of a stream eof.
This commit fixes bug #124 .
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
William Metcalf
ce01927515
Import of GPLv2 Header 050410
15 years ago
Victor Julien
e0c2c86342
Make HTTP proto detection more reliable. Add HEAD keyword. Thanks rmkml for the report/request.
15 years ago
Gurvinder Singh
8e444f1772
stream and application layer improvements
16 years ago
Victor Julien
cb8aaa5968
Make sure we only run the app layer proto detection (successfully) once per flow. Solves an issue found by the fuzzer where both flow directions were detected as different protos, messing up the app layer parser.
16 years ago
Victor Julien
ec47f840f3
Remove more scan references.
16 years ago
Victor Julien
1e01fd613c
Remove all references to the scan phase from the pattern matchers and it's api.
16 years ago
Pablo Rincon
25a3a5c6d8
Adding mem wrapper to debug runtime alloc()/free() functions. Fixing some memory leaks.
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
Victor Julien
d281a6b8ac
CUDA build system support & compile fixes
...
- add configure support for CUDA
- make sure all code compiles if CUDA is disabled
- fix compiler warnings
16 years ago
Anoop Saldanha
41e6735b92
mpm b2g cuda support added
16 years ago
Gurvinder Singh
999a200bc9
pattern matcher options support
16 years ago
Victor Julien
ed7762e843
Disable unused jabber proto detection as it made the proto detection code look way more into the stream than without it.
16 years ago
Gurvinder Singh
ed99e73622
bug 78
16 years ago
Victor Julien
7deb4e9f09
Cleanup AppLayerDetectGetProto a bit.
16 years ago
Victor Julien
fd409049cb
First step for proper HTTP CONNECT handling.
16 years ago
Victor Julien
6a53ab9c5a
Stream engine memory handling update
...
The stream engine memory handling needed updating as it didn't scale. Changes:
- pools can now be initialized to size 0, meaning unlimited
- stream engine uses a memcap setting. Sessions, segments and aldata is part
of this, app layer state isn't.
- memory is accounted using a global int that is spinlocked.
- a counter for sessions that have not been picked up because of memcap was
added.
- all reassembly errors are converted to debug msgs.
16 years ago
Victor Julien
c352bff6fb
Remove unused conditional locking code from the app layer parsing code.
16 years ago
Victor Julien
434da6b965
Set no reassembly flags on sessions we don't recognize the protocol for.
16 years ago
Gurvinder Singh
5c8d90afc8
memory leak fixes
16 years ago
Victor Julien
c1283a6628
Fix app layer proto detection code not being thread safe.
16 years ago
Victor Julien
5e8413aeea
Don't scan more of a stream for proto detection than necessary.
16 years ago
Victor Julien
a8116f65c8
Fix packet flags field not being cleared properly when the packet is being reused. Add some debug statements and cleanup some.
16 years ago
Victor Julien
4824868766
Application layer detection improvements
...
- improve locking of application layer handling, making sure that the flow cannot be freed/cleared when the detection engine is still working with it.
- add a check to the app layer detection to make sure that a match function will only inspect an app layer state if it's of the right type.
16 years ago
Pablo Rincon
f2f9b83280
Adding FTP app layer parser and ftpbounce detection at L7
16 years ago
Victor Julien
ecf86f9c23
Rename to Suricata.
16 years ago