Commit Graph

6294 Commits (9119007d007de07a61075f4d466926b1698e25cf)

Author SHA1 Message Date
Victor Julien a88359dcf0 detect: get proper legacy custom values. Issue #1804 10 years ago
Victor Julien 5c974f92a8 livedev: shorten devname at registration 10 years ago
Victor Julien b673e14411 afl: fix various --afl-* options 10 years ago
Victor Julien e76b334f8d http body: fix compression tests 10 years ago
Victor Julien 5ec885e451 http: set of response body decompress limit
This is a per personality setting.
10 years ago
Victor Julien ed7dc0c6b3 unittest: minor cleanup 10 years ago
Victor Julien b313f8ca7b http: update compression mismatch test 10 years ago
Andreas Herz 36e4126227 detect-filemagic: fix heap-use-after-free
This fixes the heap-use-after-free issue with sm being freed without
being removed from the signature (s) list. Move the protocol check for
rules with filemagic before the alloc and make the error log more
precise.
10 years ago
Victor Julien a309598721 netmap: work around mtu error on iface+ settings 10 years ago
Victor Julien 648a69759b netmap: don't set more than 1 thread on sw ring 10 years ago
Victor Julien 86d44cea96 netmap: code cleanup 10 years ago
Victor Julien b5633b9bfd affinity: small cleanups to output & code 10 years ago
Victor Julien 5f9de1e734 affinity: rename detect -> worker set internall 10 years ago
Victor Julien 723e90a174 affinity: rename detect-cpu-set to worker-cpu-set
Add fallback for existing configs.
10 years ago
Victor Julien 570b9d06e0 affinity: remove unused settings
These were never referenced to in the code so they can be removed.

Add bypass to config parser in case the settings are still in old
yamls.
10 years ago
Victor Julien bdc2c6e9ce affinity: type cleanup 10 years ago
Victor Julien 2aac437927 output: reduce verbosity on info level 10 years ago
Victor Julien 4c663bb143 netmap: don't check for offloading twice 10 years ago
Victor Julien 2beb39469b netmap: output cleanup 10 years ago
Victor Julien b3bf7a5729 output: introduce config and perf output levels
Goal is to reduce info output
10 years ago
Victor Julien cc2ed783c5 output: improve notice and warning/error color handling 10 years ago
Victor Julien e11753e3f2 profiling: fix minor compiler warning 10 years ago
Victor Julien 4369161b92 netmap: get offloading settings and warn if needed
Add FreeBSD lookup function and use the existing code on Linux.
10 years ago
Victor Julien a8a918545b netmap: get correct RSS queues on Linux as well 10 years ago
Victor Julien d861bf100b netmap: reduce verbosity at startup 10 years ago
Victor Julien d58d02fed5 netmap: handle missing config with better defaults
Default to 'threads: auto' which uses RSS RX count when no config
has been created for a interface.
10 years ago
Victor Julien f446577412 netmap: implement 'threads: auto'
Add until function for retrieving RSS RX count from netmap. Use the
RSS count to create the threads.
10 years ago
Victor Julien d39e5754e6 instance: use enum for runmode 10 years ago
Victor Julien 2412681eff instance: memset to 0 before use 10 years ago
Eric Leblond 4defc5acc2 util-ioctcl: increase header size
Headers can contain VLAN or Qing so we need to increase the value
returned by GetIfaceMaxHWHeaderLength.
10 years ago
Andreas Herz ed561c73a5 suricata: fix double packet processing threads
With the additional ParseInterfacesList the packet processing threads
were doubled since the Interface was included twice unless the device
was passed via the commandline with af-packet=IF.
The additonal ParseInterfacesList isn't necessary so remove it again
10 years ago
Victor Julien 371113e21e ac-ks: don't allow use on big-endian 10 years ago
Victor Julien 181f67ff97 flow-worker: small cleanups 10 years ago
Victor Julien 72d3ea6552 detect: make pattern matcher messages less verbose 10 years ago
Victor Julien 36535cbc61 yaml: remove conf_filename global
conf_filename was a global pointer to the filename of the yaml.

Move into SCInstance. This reduces it's scope and cleans up the code.
10 years ago
Victor Julien 4b9a62d1fe profiling: fix compilation if libjansson is missing 10 years ago
Victor Julien 661d7c1d09 pfring: cleanup 10 years ago
Victor Julien 6f7740807d pfring: improve profiling
Reset packet profiling after pfring_recv. The packet was taken from
the packet pool before this call. The packet will already have it's
start ticks initialized. To avoid including ticks while pfring_recv
waits for traffic, reset the ticks right after it.
10 years ago
Victor Julien c9159892c7 profiling: allow packet profiling to be reset 10 years ago
Eric Leblond 291af719c6 coverity: fix CID 1362014
Error handling was not correct regarding ring buffer memory
handling.
10 years ago
Victor Julien 9f7ba07153 af-packet: use better defaults if config is missing 10 years ago
Victor Julien 093ecf4798 logging: clean up at shutdown 10 years ago
Victor Julien c1f679d3f3 flow worker: move UDP app-layer into main function
This way it's more clean what happens and we can profile it.
10 years ago
Victor Julien e09643c396 flow worker: profiling
Previously the detect and stream code lived in their own thread
modules. This meant profiling showed their cost as part of the
thread module profiling logic. Now that only the flow worker is
a thread module this no longer works.

This patch introduces profiling for the 3 current flow worker
steps: flow, stream, detect.
10 years ago
Victor Julien 48771c1acf debug: fix compiler warnings 10 years ago
Victor Julien 7dfdcdc770 thread modules: remove unused id's 10 years ago
Victor Julien a8f257e05f detect: no longer a thread module
Like stream, detect is now invoked directly by the FlowWorker.
10 years ago
Victor Julien 4a96820320 stream-tcp: more cleanups 10 years ago
Victor Julien 8b06badbcf stream-tcp: no longer register as a thread module
Now that the FlowWorker handles the TCP Stream directly, having
the TCP engine as a thread module is no longer needed.

This patch removes the registration.
10 years ago
Victor Julien eec66c7b4f smtp: improve thread data use
The SMTP app layer used a thread local data structure for the mpm in
reply parsing, but it only used a pmq. The MpmThreadCtx was actually
global. Until now this wasn't really noticed because non of the mpm's
used the thread ctx.

Hyperscan does use it however.

This patch creates a new structure SMTPThreadCtx, which contains both
the pmq and the mpm thread ctx. It's passed directly to the reply
parsing function instead of storing a pointer to it in the SMTPState.

Additionally fix a small memory leak warning wrt the smtp global mpm
state.
10 years ago