Commit Graph

4298 Commits (57ed5dfd32d6bdf40d49a480cebb6c5a2e8aaaae)
 

Author SHA1 Message Date
Anoop Saldanha a44d42b124 Fixes segv inside rule swap under low mem conditions.
We now gracefully exit rule swap on any allocation or other failures.
11 years ago
Anoop Saldanha 8516ba24c9 Rearrange ac state.
Notice a minor speed bump of around 2% on runs.  More updates to follow.
11 years ago
Ken Steele 4b8bb11454 Enable using Tile cycle counter.
The Tile processors all have a cycle counter with a simple interface. Use
that for UtilCpuGetTicks.
11 years ago
Victor Julien 38aaae1fd7 IsRuleReloadSet() shouldn't return an uninitialized value 11 years ago
Eric Leblond 189327981a unittests: fix stream-tcp.c
Lock and recycle fixes for stream-tcp.c
11 years ago
Eric Leblond cd3e32ce19 unittests: some functions needs a flow lock.
In debug validation mode, it is required to call application layer
parsing and other functions with a lock on flow. This patch updates
the code to do so.
11 years ago
Eric Leblond c5bd04f102 unittest: recycle packet before exit
To avoid an issue with flow validation, we need to recycle the packet
before cleaning the flow.
11 years ago
Anoop Saldanha d292f1a529 fix for #915. Fix segv when we send NULL to snprintf. 11 years ago
Eric Leblond c6e8c5bf1f pf_ring: avoid to ask for extended header.
This patch update pf_ring capture to avoid to ask for extended
header. They are only needed when rxonly checksum checks is used
and this is only possible when interface is not a DNA interface.
11 years ago
Victor Julien ff668c2030 Fix Tile compile 11 years ago
Eric Leblond 20ca270dc3 fix pf_ring build 11 years ago
Eric Leblond 2a46f0dae4 suricata: rename SuriInstance to SCInstance. 11 years ago
Eric Leblond 9b422f3a8c suricata: suppress Suri prefix
Suppress Suri prefix in internal function name.
11 years ago
Eric Leblond 18ced653c3 Use a typedef for SuriInstance. 11 years ago
Eric Leblond 2d77e53f2c Add offline flag to SuriInstance and some refactoring 11 years ago
Eric Leblond 34abd818dd Prefix util-conf function with Config 11 years ago
Eric Leblond 7242cb30e7 Move CreateLowercaseTable to GLobalInits 11 years ago
Eric Leblond 02e9851315 Generic code don't need ifdef 11 years ago
Eric Leblond 8c00a963aa Use function for delayed detect setup. 11 years ago
Eric Leblond 4296e5f29e Add functions for elapsed time computation. 11 years ago
Eric Leblond 9d1d08c7a4 Factorize Signature loading 11 years ago
Eric Leblond 20c5683b60 Use function for daemonification and signal handler 11 years ago
Eric Leblond 90aaf55201 set rule_reload as part of SuriInstance 11 years ago
Eric Leblond bb19ce1847 SetBPfString is part of command line parsing 11 years ago
Eric Leblond 1a6983ee19 suricata: use function to print version 11 years ago
Eric Leblond 4f789dbe84 Add function for internal running mode 11 years ago
Eric Leblond d3cb043001 suricata: windows specific in one function 11 years ago
Eric Leblond 4401c048ba Running mode is set earlier so out earlier 11 years ago
Eric Leblond 40a25112a0 kill remaining run_mode usage 11 years ago
Eric Leblond 75fa1e20d7 engine analysis is a running mode 11 years ago
Eric Leblond c0d5ee77f9 get (almost) rid of run_mode variable. 11 years ago
Eric Leblond 80542816cd add internal running mode 11 years ago
Eric Leblond e07fdb20a8 Add SuriInstance structure
To be able to split code in functions in main, we need to pass
information about the current running Suricata to functions.
For that we create a structure to store suricata run parameters.

In this patch it allows to separate command line parsing and to
treat internal running mode in a switch just after command line
parsing.
11 years ago
Eric Leblond 325462d396 Export IsRuleReloadSet and use it. 11 years ago
Eric Leblond 6d9a66d522 unittest: make check use a qa/log dir for logging
This patch is using the qa/log directory to store the output
of the check. In case of success, the directory is deleted.
In case of failure, the directory remains in place.

This should fixes #910.
11 years ago
Eric Leblond 4424f5a231 af-packet: add sanity check in free function 11 years ago
Eric Leblond 8e68b357c7 Suppress Suri prefix. 11 years ago
Eric Leblond 42011e2d32 suricata: function for lowercase table creation 11 years ago
Eric Leblond 132bebb2b2 Simplify code by removing comment 11 years ago
Eric Leblond 07ef1f9837 suricata: add wrapper for interface listing 11 years ago
Eric Leblond 54006de40c Use new function GetLogDirectory() 11 years ago
Eric Leblond 2be7c8aea8 Add util-conf for config util 11 years ago
Eric Leblond 27752818c2 suricata: add some wrapper for config file handling 11 years ago
Eric Leblond b2fa4edd36 move unittest out of suricata.c 11 years ago
Eric Leblond 9a0bf0956b suricata: list cuda cards in separate function 11 years ago
Eric Leblond bed48e3a54 suricata: separate keyword and app layer listing code
The list-keyword and app-layer listing code was spread over all the
init code. This patch introduces a separate file to store non standard
running mode like these ones.
11 years ago
Eric Leblond 135ef0186b runmodes: fix comment 11 years ago
Victor Julien 5a7bf53a6b Storage: rename Init to Alloc to reflect actual functioning. Comment updates. 11 years ago
Victor Julien f06694d0c1 Storage API: add safety check for cases when there is no storage used. 11 years ago
Eric Leblond caf730d988 engine-tag: rename var and add sanity check 11 years ago