Victor Julien
6d8aa6829d
Remove unused variable.
13 years ago
Anoop Saldanha
b164247fb8
Changed my email address to anoopsaldanha@gmail.com from my current one - Should have been an amend over my previous commit, but that commit's pushed out
13 years ago
Anoop Saldanha
f514b141ce
fix ipv6 header setup in pseudo pkt creation
13 years ago
Victor Julien
416b463c51
file-data: add more unittests
13 years ago
Victor Julien
296ce8b5f9
file-data: make bytejump, bytetest, byteextract and isdataat work better with file_data.
13 years ago
Victor Julien
077970051e
file-data: implement relative pcre support.
13 years ago
Victor Julien
07e560b137
file-data: initial file_data support
...
Support file_data for: content, pcre (relative), byte_test, byte_jump,
byte_extract, isdataat.
File_data support is handled at signature parsing time, all matches
occurring after the file_data in the rule are converted to http_server_body
matches.
Content matches relative to the file_data are converted. Within to depth,
distance to offset. Relative to the start of the body buffer.
13 years ago
Victor Julien
7adac3048d
file-data: create initial keyword registration.
13 years ago
Anoop Saldanha
420befb180
Changed my email address to anoopsaldanha at gmail dot com from my current one
13 years ago
Victor Julien
fa0152fa80
Shrink signature flags field to 32 bits.
13 years ago
Victor Julien
dd9da1a56f
Merge all http mpm related signature flags into a single set: SIG_FLAG_MPM_HTTP and SIG_FLAG_MPM_HTTP_NEG.
13 years ago
Victor Julien
d5ed28b065
Remove SIG_FLAG_MPM flag.
13 years ago
Victor Julien
fe48920514
Remove per sgh mpm_streamcontent_maxlen variable. It was checked but never set.
13 years ago
Victor Julien
4992f7c417
Remove SIG_FLAG_MPM_URI flag. It was checked but never set.
13 years ago
Victor Julien
2650551192
Rename signature init flags to indicate they are init flags.
13 years ago
Victor Julien
6ebd71545b
Fix signature flag definitions on 32 bit.
13 years ago
Victor Julien
291ddd95f2
Detection engine -- mpm
...
Each signature is in one mpm ctx at max, but there were 3 separate
id's in use: packet, stream, http. Merged them all into one.
Could shrink the SignatureHeader structure with 8 bytes because of this,
should lead to better caching performance.
13 years ago
Victor Julien
7db72bce75
Optimize detection engine prefiltering logic.
13 years ago
Victor Julien
89f83e714c
Introduce http_server_body keyword.
...
The http_server_body content modifier modifies the previous content to inspect
the normalized (dechunked, unzipped) http_server_body. The workings are similar
to http_client_body. Additionally, a new pcre flag was introduced "/S".
To facilitate this change the signature flags field was changed to be 64 bit.
13 years ago
Eric Leblond
6e7a8f38bf
ipfw: Add support for autofp and worker runmode
...
This patch convert ipfw code to the PcktAcqLoop API and
rework the running mode to use the running mode wrapper
already used by NFQ.
13 years ago
Eric Leblond
c1ad64b333
ips: update copyright date and author list.
13 years ago
Eric Leblond
d4cbc7c38c
ipfw: funnier to manage capability in running code.
13 years ago
Eric Leblond
f1cb4da442
ipfw: fix indentation of the file.
...
I will have to work a lot on this one. It will be easier with a
correct indentation.
13 years ago
Eric Leblond
acc9634106
nfq: add some comments about possible evolution
13 years ago
Eric Leblond
9ca7257279
nfq: suppress unused functions.
13 years ago
Eric Leblond
58b20359a7
nfq: add worker runmode support.
13 years ago
Eric Leblond
aee2e3ddd6
nfq: Add autofp mode support
13 years ago
Eric Leblond
115c3499d2
nfq: factorize auto mode
13 years ago
Eric Leblond
70c574fb63
runmode: Add support for IPS running mode
...
This patch adds the 'auto', 'autofp' and 'worker' runmode for
IPS. It provides a set of ready-to-use functions that can be
used by NFQ and IPFW to implement this running mode.
13 years ago
Eric Leblond
5cfdd7594f
util-device: Modify function name.
...
This patch modifies LiveBuildQueueList name to LiveBuildDeviceList
to have a consistent naming accross function. It also adds a
doxygen comment to add author and description of util-device.c
file.
13 years ago
Eric Leblond
7096e11ab5
af-packet: simplify code.
13 years ago
Eric Leblond
5cec22ac37
threads: Add sanity check.
13 years ago
Eileen Donlon
327fd048a0
Fixed coredump windows compile issue
13 years ago
Eric Leblond
6c55af847b
'auto' running mode does not support 'threads' var.
...
This patch modifies the RunModeSetLiveCaptureAuto() prototype to
be able to detect that a 'threads' variable (telling how much
threads must listen to one socket in IDS mode) has been used
in the configuration file. It then print a warning message
if this is the case.
13 years ago
Victor Julien
6f0ca120d1
Make sure existing log-pcap and unified2-alert 'limit' settings don't break.
13 years ago
Victor Julien
678213c9f4
Fix ParseSizeString return code and a compiler warning.
13 years ago
Anoop Saldanha
4b8ebb5c53
set default response body limit for specific http server conf
13 years ago
Anoop Saldanha
6240131a4e
updates to accomodate master rebase
13 years ago
Anoop Saldanha
7c9d1b80fd
Update size parsing API with new calls for returing u8, u16, u32 and u64 values. Make updates in the codebase to use these new calls
13 years ago
Anoop Saldanha
52b37fef3e
Update yaml size params to use kb, mb, gb to indicate size, in place of raw bytes
13 years ago
Anoop Saldanha
e0c13434ef
bug 333 - support new Size Parsing API. Update various conf params inside the engine to use this API to parse sizes in the format xxx <-just the no represents bytes, xxxkb <- kilobytes, xxxmb <- megabytes, xxxgb <- gigabytes, where xxx is a \d+
13 years ago
Eileen Donlon
79e0299643
Fixed coredump compile problems on bsd, windows
13 years ago
Anoop Saldanha
b970273163
fix broken unittest
13 years ago
Anoop Saldanha
651f91e4de
fix setting pseudo packet from this commit:
...
commit 259e022f721a7c3a70c26447b1cf730bb8a1f6cd
Author: Anoop Saldanha <poonaatsoc@gmail.com>
Date: Sun Dec 4 13:20:43 2011 +0530
fix setting ipv4 header in pseudo packet
13 years ago
Anoop Saldanha
d40fb5b933
Remove unnecessary flow NULL check
13 years ago
Anoop Saldanha
8533cd2cdf
fix mapping of tcp states to flow_established and flow_closed. Improves accuracy
13 years ago
Anoop Saldanha
cc7db6315c
Move setting packet iponly flags from decode section to stream section
13 years ago
Anoop Saldanha
eaf15911e7
fix setting ipv4 header in pseudo packet
13 years ago
Victor Julien
322779fb23
flow engine: release flow lock earlier in flow kill/prune process. Minor cleanups.
13 years ago
Victor Julien
5401764697
flow engine: minor cleanup.
13 years ago