Victor Julien
298289f43f
Let flow:only_stream and flow:no_stream set the require packet and require stream flags. Toss out sigs with conflicting settings. Rename flow:stream_only to flow:only_stream. Fixes #261 .
13 years ago
Victor Julien
c04f45ccb9
Add tcp-pkt and tcp-stream 'protocols' to force a signature to inspect only packet or stream data.
13 years ago
Victor Julien
2c62b50ed5
Fix 2 compiler warnings.
13 years ago
Mike Pomraning
cfced01641
Use strlcpy
13 years ago
Mike Pomraning
b5c11bd9fa
Document new "filetype" argument for 'fast', 'http-log', etc.
13 years ago
Mike Pomraning
914b10a8e6
Touch up Makefile for SCConfLogOpenGeneric.
13 years ago
Mike Pomraning
dfec9c0f6a
Switch 'fast', 'http-log', 'drop' and 'alert-debug' to SCConfLogOpenGeneric.
13 years ago
Mike Pomraning
dec34afa40
SCConfLogOpenGeneric() abstraction for regular and AF_UNIX logs.
...
util-logopenfile.[ch] implements the abstraction; util-error.[ch]
modified to include a socket-specific error code; output.h adds a
default filetype for logs ("regular").
13 years ago
Victor Julien
a1cb769205
Switch log-file module to use new absolute path detection code.
13 years ago
Victor Julien
4cbaeb408c
Add functions to determine whether a path is absolute or relative.
13 years ago
Victor Julien
a397599fbb
file extraction: add waldo option to file log module. This will store the last used file_id so extracted files won't get overwritten is Suricata is restarted.
13 years ago
Victor Julien
effe01ae7b
Add Init and DeInit calls to the thread module API.
13 years ago
Eric Leblond
7fb78a0ff6
Fix compilation warning.
13 years ago
Victor Julien
08f3ef7685
Reshuffle version printing so -V prints it only once.
13 years ago
Eric Leblond
1bebb9831d
logging: don't display debug message before setting params.
13 years ago
Eric Leblond
05f562fdc3
logging: use SCLogDebug instead of printf
...
This patch uses SCLogDebug instead of printf to enable filtering
of the log message by the log filtering option.
13 years ago
Eric Leblond
9545a56426
ipfw: suppress poll before sendto
...
Calling poll before using sendto seems a bit overkill.
13 years ago
Eric Leblond
6f1b40dd4b
ipfw: don't use socket lock in 'worker' mode
...
This patch is the IPFW version of NFQ latest patch.
13 years ago
Eric Leblond
58855494c1
nfq: do not use mutex in 'worker' mode
...
Using a mutex on the queue handle is not necessary in 'worker' mode
as there is no concurrent access to it.
13 years ago
Eric Leblond
ef3951d914
runmode: export running mode
...
This will permit to put some optimisation in different components.
This is done via the RunmodeGetActive() function.
13 years ago
Victor Julien
c908574545
Use strtoul instead of strtol for sid parsing. Fixes parsing of really large sid numbers. Fixes #393 .
13 years ago
Victor Julien
c1a40447c1
IP Only cleanup: make most functions static. Add error message on address parsing issues.
13 years ago
Victor Julien
e0cf2ccb91
Fix invalid direction error message.
13 years ago
Victor Julien
801f92f705
Disable the drop.log in the default config.
13 years ago
Eric Leblond
db19680794
pcap: fix auto runmode
...
This patch fixes initialization of a pointer. The lack of it was
causing an invalid interface value to be given to suricata (in
the case no interface was given on the command line).
Reported-by: Delta Yeh <delta.yeh@gmail.com>
13 years ago
Eric Leblond
3d558bf06f
pcre: compile jit by default if available.
13 years ago
Victor Julien
5a769c02ee
Stream engine: handling packets with ACK|CWR.
13 years ago
Anoop Saldanha
999c34111e
bug #341 - support for urilen check on both norm and raw buffers
13 years ago
Victor Julien
158d72e7f3
file-inspection: inspect new files in same tx but opposite direction as well.
13 years ago
Victor Julien
a6e75aff21
file-extraction: improve handling of complex multipart bodies.
13 years ago
Victor Julien
4eda31df4d
file inspection: unset new file available flag when appropriate, prevents duplicate alerts.
13 years ago
Chris Wakelin
2aa04add54
Fix PF_RING BPF filter availability check
13 years ago
Victor Julien
fbe7ba411e
Add md5 to reference.config.
13 years ago
Victor Julien
c0cd2c8596
Update Changelog to reflect changes in 1.1.1 and 1.2beta1.
13 years ago
Anoop Saldanha
6e2c921037
indentation fixes for ac-gfbs
13 years ago
Anoop Saldanha
2eb3aff0af
Further improve compression for ac-gfbs. Character codes shifted to 8 bits from 16/32 bits
13 years ago
Victor Julien
0712300a1c
Remove stream BUG_ON's that could fire on TCP session reuse.
13 years ago
Anoop Saldanha
0cde8072f4
fix ffr shutdown segv. We need to supply stream TV the the stream engine
13 years ago
Anoop Saldanha
5620844f7d
ac-gfbs fix output presence combination with mod table
13 years ago
Anoop Saldanha
153f2ad3eb
ac-gfbs update. Minor improvement of compression for state 0. Improves performance
13 years ago
Anoop Saldanha
c6cd59bda4
Update ac-gfbs with some rearrangement. Increased performance from 4-10%
13 years ago
Anoop Saldanha
e18cf72c13
fix bug in size parsing API. Pass the string returned by pcre_get_substring and not the passed arg. Also use strtod. Solves usage issues on windows
13 years ago
Victor Julien
842b01cc9c
Remove duplicate sys/prctl.h configure check. Wrap another include in HAVE_SYS_PRCTL_H.
13 years ago
Eileen Donlon
aaa5a78dfe
Moved prctl.h check to configure
13 years ago
deltay
37dc83d411
ignore signal SIGPIPE and SIGSYS
13 years ago
Victor Julien
c2c539942b
Rework the way the http parser can tell the de_state to reset it's file section on arrival of new files in the same tx. Fixes a dead lock in the auto runmode.
13 years ago
Victor Julien
679b8ec1ba
Fix filestore match code not expecting NULL file ptr.
13 years ago
Steve Grubb
a65eb59c41
Add relro flags to libhtp
...
Hello,
The main suricata program can detect and use relro/bind now linker flags. But
the directive is per linked object. This means that while the app has
protection, its code segment containing libhtp does not. The patch below passes
the configure option to libhtp and let's it make use of the compiler's
security protection.
Signed-off-by: Steve Grubb <sgrubb@redhat.com>
13 years ago
Victor Julien
18d79c4215
file store: respect flowbits and other keywords
...
The filestore keyword until now flagged a file, tx or ssn for storage as soon
as the keyword was inspected. This happens before flowbits and some other
keywords, so files were stored that weren't supposed to.
This patch makes the filestore keyword fill an array in the detect engine
thread ctx. Then if the full signature matches, a post-match filestore
function makes the store final.
13 years ago
Victor Julien
7173256754
Fix compiler warnings in a couple of unittests.
13 years ago