Commit Graph

132 Commits (e0bfcb7dde055ed1667bedffec65e7972ba9afef)

Author SHA1 Message Date
Victor Julien d8356c5ebd Windows build and other misc fixes. 13 years ago
Eric Leblond ac092197b4 autotools: pthread deps is needed on ubuntu.
It is weird but adding pthread in needed on ubuntu 1204.
13 years ago
Eric Leblond dbf5d79e43 pfring: follow API change
As pointed out in issue #459, pf_ring API has changed. Since
5.4.0 release pf_ring_open has one less argument.
13 years ago
Eric Leblond e2bf0fab35 OpenBSD: setup specific place for magic file.
This patch fixes the path to the default magic file on OpenBSD.
13 years ago
Eric Leblond 59057e542e Openbsd: Fix some warning related to inline usage.
gcc on OpenBSD does not support C99 inline functions. This patch
modify the build system to handle this. It also change the order
of declaration of some functions to avoid to use them before
declaring them as inline.
13 years ago
Victor Julien 25360e14b2 Don't enable UNITTESTS in AF_PACKET detection. 13 years ago
Eric Leblond 6784ec536d Fix OpenBSD compilation. 13 years ago
Jason Ish 573f31b271 Fix linking with libdag 13 years ago
Eric Leblond ac2d13d62b Improve check of min requirement for AF_PACKET.
As pointed out by #416, AF_PACKET detection support was not accurate
enough. This patch improves the check by doing a verification of
the availability of the feature level needed to build AF_PACKET.
We need TPACKET_V2 which is available after 2.6.27.
13 years ago
Victor Julien d908e707d7 profiling: add per lock location profiling
Add profiling per lock location in the code. Accounts how often a
lock is requested, how often it was contended, the max number of
ticks spent waiting for it, avg number of ticks waiting for it and
the total ticks for that location.

Added a new configure flag --enable-profiling-locks to enable this
feature.
13 years ago
Victor Julien 4a186bcf1d Fix invalid declaration of enable_nss and enable_nspr in configure.in. 13 years ago
Victor Julien 89cee0ad49 Add libnss/libnspr support output to configure. Clean up configure.in. 13 years ago
Victor Julien 90422c9f5e Do not assume the include dir for nspr to be nspr. On F16 it's nspr4. 13 years ago
Victor Julien 860971eca0 Misc afpacket changes. 13 years ago
Victor Julien 697e9e660f Config should be set up in sysconfdir/suricata. Add reference to oinkmaster guide. 13 years ago
Victor Julien 73a1b97267 Improve config details overview at the end of configure. 13 years ago
Eric Leblond b2ebd4a138 build: enable af-packet by default 13 years ago
Eric Leblond ef46345792 Add sexy information messages to configure output. 13 years ago
Eric Leblond 5ea1b1d15e Fix PCRE-JIT message 13 years ago
Eric Leblond 25804f5aa8 Add install-conf command to build system.
This patch adds support for customisation of suricata.yaml and
automatic download of emerging threat GPL rules. By running
'make install-full' after 'make install', files necessary to run
suricata are copied in the configuration directory and the latest
ruleset is downloaded and installed. Suricata can then be run
without files edition.
This patch has a special treatment for the windows build which
requires some different paths.
suricata.yaml is also updated to load all rules files provided by
emergingthreat ruleset.
13 years ago
Victor Julien 337f7861a4 Make sure that if not built against libnss, we still compile. Only no md5 for you then\! 13 years ago
Victor Julien 69b3df96fb Initial on the fly MD5 calculation for extracted files using libnss. 13 years ago
Victor Julien 1d9f6ff8f2 Initial Napatech support by Randy Caldejon / nPulse. 13 years ago
Victor Julien 18d458870f 1.3 branch has opened 13 years ago
Victor Julien 80fb33c651 Fix libhtp htp_tx_get_response_headers_raw 'detection' for bundled libhtp. 13 years ago
Victor Julien 227d6e058c Make sure new rule and doc files are part of the dist. 13 years ago
Victor Julien 5886ef8249 Don't print error about missing git repo if building from tarball. Don't define REVISION in that case. 13 years ago
Victor Julien 1ac6054c23 Clean up configure check for htp_tx_get_response_headers_raw. Misc changes. 13 years ago
Anoop Saldanha 4acd5a04e6 Enable http raw response header inspection only if libhtp supports raw response header buffering which should be available post 0.2.6 13 years ago
Eric Leblond 3d558bf06f pcre: compile jit by default if available. 13 years ago
Chris Wakelin 2aa04add54 Fix PF_RING BPF filter availability check 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
Victor Julien f4a6f4b293 Add libmagic detection, linking and a basic API. 13 years ago
Eric Leblond 43ffd779f8 autotools: add libpcap dependencyto pfring for checks.
PF_RING seems to depend on pcap if bfp filter is activated. For this
reason, not having the dependency during configure test causes a
failure in feature detection.
14 years ago
Eric Leblond 0ac1cabf2a autotools: fix problem of pfring configuration. 14 years ago
deltay d5e254d504 Add pfring bpf filter, require pfring >= 5.1 14 years ago
Victor Julien fb76561b09 Set version to 1.2dev to reflect we're in the 1.2 branch. 14 years ago
Victor Julien c484b7a59e Bump version to 1.1 (final) 14 years ago
Victor Julien 9f0e3f7c85 Bump version to 1.1rc1. 14 years ago
Eric Leblond 391d813c82 Remove unified1 output module. 14 years ago
Victor Julien c0bc83458c Bump version to 1.1beta3. 14 years ago
Eric Leblond 50ddd2df43 Restore old barnyard2 support.
Some old version of barnyard2 were needing a workaround in the
packet header building. THis patch introduces a enable-old-barnyard2
configure flag which can be used to restore this behaviour.
14 years ago
William Metcalf 3b3f5816bf You spin me right round baby, right round like a rotating packet capture right round. Oh, also log file size counters are now uint64_t 14 years ago
Victor Julien 3d396e8b1e Update PCRE JIT code to support official JIT implementation in pcre-8.20-RC1. 14 years ago
Eric Leblond 5656e34459 Fix compilation on FreeBSD 8.2
FreeBSD has a recent version of autotools which induces some issues.
This patch fixes it by improving headers detection code in configure.in.
14 years ago
Eric Leblond e80b30c082 af-packet: finalize code
This patch handles the end of AF_PACKET socket support work. It
provides conditional compilation, autofp and single runmode.

It also adds a 'defrag' option which is used to activate defrag
support in kernel to avoid rx_hash computation in flow mode to fail
due to fragmentation.

This patch contains some fixes by Anoop Saldanha, and incorporate
change following review by Anoop Saldanha and Victor Julien.

AF_PACKET support is only build if the --enable-af-packet flag is
given to the configure command line. Detection of code availability
is also done: a check of the existence of AF_PACKET in standard
header is done. It seems this variable is Linux specific and it
should be enough to avoid compilation of AF_PACKET support on other
OSes.
Compilation does not depend on up-to-date headers on the system. If
none are present, wemake our own declaration of FANOUT variables. This
will permit compilation of the feature for system where only the kernel
has been updated to a version superior to 3.1.
14 years ago
Eric Leblond c45d898572 af-packet: basic support for AF_PACKET socket
This patch provides basic support for AF_PACKET socket. It is
completed by a subsequent patches prodiding extended features
and bugfixes.
14 years ago
William 6408febaec Only check for PF_RING if we enable PF_RING. 14 years ago
William 1099093e0f Support for PF_RING versions where packet passed as a reference and version 4.7.1 where pfring_enable_ring now seems to be required. 14 years ago