Commit Graph

3178 Commits (bff2866aedf8912fe00da933a0546a9b9a54f195)
 

Author SHA1 Message Date
Victor Julien e874a5a3de Fix error in per packet detection engine profiling. 13 years ago
Victor Julien 3f94b12007 Minor stream optimization. 13 years ago
Victor Julien b9e5202f3c Make fast.log use finer grained locking, move protocol lookup outside of the lock. 13 years ago
Victor Julien b8e741de9e Minor optimizations to unified2 and fast.log. 13 years ago
Victor Julien 3d6b51a8c4 Small compile fix. 13 years ago
Anoop Saldanha b6c0d9e926 update util-print.c to use new print macro 13 years ago
Anoop Saldanha 090d098114 provide generic macro to buffer data using snprintf 13 years ago
Anoop Saldanha 95ea105a15 update util-print.c to use snprintf 13 years ago
Anoop Saldanha 23b64c5c08 restructure http logging to use fine grained locking 13 years ago
Victor Julien 40fcae3aa0 Minor unittest fixes to make Coverity happy. 13 years ago
Victor Julien 5c397e3a53 flow: add missing unlocks for rare error condition at flow shut down. 13 years ago
Victor Julien 31b673718c host: convert use_cnt to a atomic var (like in flow). 13 years ago
Victor Julien a39529db5d ipv6: fix routing header parsing leading to rejection of valid packets. 13 years ago
Victor Julien 374947c354 ipv6: properly deal with packets containing a FH header that has offset 0 and no more frags flag set. 13 years ago
Victor Julien 92e7a7d254 ipv6: fix detection engine using the originals IPv6 header's nxt hdr value instead of the upper layer one. 13 years ago
Victor Julien 073ce64786 Fix parsing of tcp-pkt and tcp-stream sigs, add unittest. 13 years ago
Anoop Saldanha c22755fec5 fix cppcheck analyzer warnings - bug 439 13 years ago
Anoop Saldanha 081b0e05a2 restructure disabling receive threads. Introduce new flag to indicate that threads have finised running 13 years ago
Eric Leblond 91f42b6f41 pcap: fix "work by luck" code. 13 years ago
Eric Leblond d8d9b0983f af_packet: misc improvements.
Improve block count and only copy snaplen length to avoid overflow.
13 years ago
Victor Julien 0a80e362aa Fix some minor clang scan-build warnings. 13 years ago
Victor Julien 4ebb6b7fae nfq: switch locking code to macro's to lock profiling can track the exact lock locations. 13 years ago
Victor Julien 06d7fb5428 Fix CUDA build from a release tarball. 13 years ago
Anoop Saldanha fea6a426a5 cleanup killing threads. As a consequence fixes invalid read/writes in tmqh flow 13 years ago
Anoop Saldanha f0e4578640 cleanup junk code in flow qh 13 years ago
Victor Julien bf4ab2f7e1 Fix misc issues picked up by coccinelle. 13 years ago
Anoop Saldanha a8095bd8d6 fix compiler warnings 13 years ago
Victor Julien af4e480163 Fix __WORDSIZE redeclaration warning on Windows builds. 13 years ago
Jason Ish 105173939b Implement single, autofp and workers run modes for DAG interfaces. Includes multiple interface support.
Remove auto mode due to bad performance.
13 years ago
Victor Julien 8e064001c3 Fix compilation of atomic api spinlocked fallback code. 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
Anoop Saldanha b2455b6afa cuda pb tm should be in a thread of its own + pkt_acq should be as free as possible 13 years ago
Anoop Saldanha 2995867328 b2g cuda up, compiling and running 13 years ago
Anoop Saldanha f1863370a5 clean log pcap 13 years ago
Anoop Saldanha 6392202872 restructure log pcap to use a different setup, which is resilient to thread failure/restarts 13 years ago
Anoop Saldanha fd21b83f3e don't return TM failure on failing to remove log file 13 years ago
Anoop Saldanha 4bc907414b init every new pf instance in log pcap 13 years ago
Victor Julien cfd4d07dd0 host: convert host hash to use lookup3.c 13 years ago
Victor Julien c10370907a flow: make flow use lookup3.c hashing algorithm. Improves hash table distribution. 13 years ago
Victor Julien 20c08ca47b hash: add lookup3.c by Bob Jenkins
Found here:
http://burtleburtle.net/bob/hash/doobs.html
http://burtleburtle.net/bob/c/lookup3.c

From the file header:

lookup3.c, by Bob Jenkins, May 2006, Public Domain.

These are functions for producing 32-bit hashes for hash table lookup.
hashword(), hashlittle(), hashlittle2(), hashbig(), mix(), and final()
are externally useful functions.  Routines to test the hash are included
if SELF_TEST is defined.  You can use this free for any purpose.  It's in
the public domain.  It has no warranty.
13 years ago
Victor Julien 19a7e7f395 flow: create a flow lock macro API, implement it for mutex and rwlocks. Mutex remains the default. 13 years ago
Xavier Lange fea5e68a7b Include conf_test in special cases for unset RUNMODE 13 years ago
Xavier Lange 1d774dae61 Make conf_test local. Simplify if/else to if. 13 years ago
Xavier Lange 1ae10b9a42 Do not spawn threads for conf test 13 years ago
Xavier Lange eaacc5d0fe Added conf_test flag and behavior 13 years ago
Victor Julien 22349f863b file magic: don't disable inspecting magic for both directions if files in only one direction don't need magic. 13 years ago
Victor Julien ba4613aef1 Add host section to stock yaml. 13 years ago
Victor Julien f4b542d703 Enforce memcap limit before allocating hash table in host and flow engines. 13 years ago
Victor Julien bd66a4bba9 Fix typo in spm prototype declaration. 13 years ago
Anoop Saldanha 4d192a6881 update all spm algos to use 16 bit pattern lengths. Should compress a lot of tables 13 years ago