Commit Graph

696 Commits (d7958f7983937f48f9f5a5ade0c6f2960ec2f993)

Author SHA1 Message Date
Pablo Rincon c6c7742464 Added support at Flowints for keywords isset and notset 15 years ago
Pablo Rincon a8d7b71490 First version of flowints 15 years ago
Gurvinder Singh 1b39e602d0 fixed port info 15 years ago
Gerardo Iglesias 991d421394 Changed printf's to logging API functions 15 years ago
Pablo Rincon e26833be3f Changing mutex/spinlocks/conditions naming types 15 years ago
Victor Julien 406ee2ce70 Use new threading calls in htp code. 15 years ago
Pablo Rincon 769022f4be Adding support for Mac OS X, FreeBSD, centrailizing mutex/spins/conditions in a macro API, and some unittests 15 years ago
Victor Julien 4cae27522d Fix http module warnings. 15 years ago
Gurvinder Singh 2d6cf71d37 added htp unit test 15 years ago
Gurvinder Singh 07f7ba55b8 initial support for HTP module init 15 years ago
Victor Julien 6e9b582be6 Fixup rebase typo. 15 years ago
Gurvinder Singh c1e485cc44 app layer error handling 15 years ago
root 43fb771268 smb2 work 15 years ago
root 0f5f82efee smb2 work 15 years ago
root 74667e697a better smb parsing 15 years ago
Victor Julien 2213ff933f Compile fix. 15 years ago
Brian Rectanus 44083b6505 Fixed warning in detect-content. 15 years ago
Gurvinder Singh 91407e0938 fixed DetectByteTest bug 15 years ago
Pablo Rincon 6206ffb530 Adding bidirectional operator support and unittests 15 years ago
Breno Silva c552ccbd93 PCRE O Modifier 15 years ago
Victor Julien 574bcea09d initial version of better error checking/handling in the app layer code 16 years ago
Victor Julien 09dd7889a1 TLS: small updates to the tls parser
- small updates to the TLS parser after merging Gurvinders TLS work with my work.
16 years ago
Victor Julien 2cfa284999 Fix app layer detect to actually work. 16 years ago
Victor Julien a1d33e2d0b Compilation fixes after merge. 16 years ago
Victor Julien 7cda445c49 Add unitttest. 16 years ago
Victor Julien f1f7df0766 First iteration of doing app layer detection. 16 years ago
Victor Julien f31d8e0444 TLS no inspect: fixes and cleanups
- use byte extraction functions for getting the msg length
 - cleanup the parsing routines for multiple msgs
 - add unittests for multimsg payloads
16 years ago
Gurvinder Singh a16e7b7455 tls no reassembly support 16 years ago
Victor Julien 54b9663cd1 TCP streams: support falling back to 3WHS when we were led to believe we were in 4WHS mode. Add unittests. 16 years ago
Victor Julien 2af6ed0c8c Support newly reported 4WHS TCP setup. 16 years ago
William Metcalf af13665684 failing unit test where fast_pattern rule and non-fast_pattern rule inspect same payload 16 years ago
Anoop Saldanha 45acb64a61 Bug fix for fast_pattern - bug #8 16 years ago
Victor Julien 5c3bbb8d61 Time handling: improve time handling in unittests
- make sure before each unittest is run the time is reset
- add functions to set the time to current time and increment the time
- convert alert-unified* Rotate tests to use them
- convert time based counters to use them
- use GetTime instead of gettimeofday for creating the unified* filenames
16 years ago
Pablo Rincon a64af4adca Forgot to add this file 16 years ago
Pablo Rincon 15855e11f3 Fixing alert unified log file rotation. Adding unittests 16 years ago
Victor Julien 746d12071e Fix merge artifacts. 16 years ago
William Metcalf 0db1d01b0c port space negation notification 16 years ago
Gurvinder Singh 3f23f52c52 Fixed FlowTest01 and StreamReassemblyTest30 16 years ago
Gurvinder Singh d2765511ce async stream handling support 16 years ago
William Metcalf 88497ec539 detect-dsize regex doxygen logging subsys changes 16 years ago
Anoop Saldanha bb8a84d967 todo comment update for address and port parsing 16 years ago
Victor Julien 621c8dd921 Make sure we don't sleep to test time lapses, we can modify the engine's time internally for that. 16 years ago
Anoop Saldanha 30a7ea2141 adapted counters to use util-time.[ch] 16 years ago
Anoop Saldanha c8b423578a Updates for counters time based patch 16 years ago
Anoop Saldanha 8beef4a9fc stats upgrade. Added interval counters to the decoder module 16 years ago
Anoop Saldanha ceb7e495ae refactoring perf stats code 16 years ago
Victor Julien fdf8943dfb Remove a few commented out code lines. 16 years ago
Anoop Saldanha 8c9df4cd6b modifications to PatternMatchPreprarePopulateMpm to fasten fast_pattern processing 16 years ago
Anoop Saldanha bb5bd91045 Support to get the last sigmatch of a particular type. To be used for content and its modifiers 16 years ago
Anoop Saldanha 7a10ddc07b Fixes for the fast-pattern tests and a couple of other minor changes 16 years ago
Anoop Saldanha 6ca5dbc9e9 Support fast_pattern modifier keyword for content 16 years ago
Victor Julien 07bcc8cc9a Fix signatures with ports and/or addresses but without sigmatches. 16 years ago
Victor Julien 50b2e381e0 Set the DETECT_CONTENT_WITHIN_NEXT and DETECT_CONTENT_DISTANCE_NEXT flags on content chunks if appropriate. 16 years ago
Victor Julien a004724aea Add some debugging code 16 years ago
Victor Julien dd232fcd6e Fix debug compilation 16 years ago
Anoop Saldanha 1c7ac13c25 Support for negated content 16 years ago
Victor Julien 6346d1ddcf Add function name printing to the default output while we're still in development. 16 years ago
Victor Julien 0aaf603317 Fix another case where distance/within checks didn't fully work as expected. 16 years ago
Pablo Rincon ce3abca399 Adding some unittests (one of them dodoesn't work but should) 16 years ago
Pablo Rincon 84411f73c3 Commeting out a unittest. 16 years ago
Pablo Rincon 9a3c21fbf3 Updating real unittests. Small fix on TestWithinDistanceOffsetDepth to skip to the next DETECT_CONTENT SigMatch. Adding some checks on within/distance setups. 16 years ago
Victor Julien 241db64dd7 Fix a few memory issues. 16 years ago
Pablo Rincon 7e4377224a Small fix at detect-parse.c, need to continue with MatchTest05 16 years ago
Pablo Rincon f233f9fa31 Adding detect_content chunks handling for max_pattern_length and unittests. Updating modifiers to use it. 16 years ago
Victor Julien 981ca859cb Fixes for distance and within content modifiers. 16 years ago
William Metcalf 884b1034b4 failed unittest for within distance 16 years ago
Victor Julien 171edda02a Fix compilation of address and port error messages in debug mode. 16 years ago
Anoop Saldanha dc44700ce5 Support vars lookup from conf file. Current patch support address and port group vars lookup 16 years ago
Victor Julien 951b4d5cf4 Fix within in some corner cases and add some more tests. 16 years ago
Anoop Saldanha 204aca4431 Support host os flavour retrieval functions with raw network addresses 16 years ago
Anoop Saldanha 96614c60f2 change the netmask to uint8_t for the ip handling part of the radix tree and also use 255 instead of -1 to indicate the absence of a netblock 16 years ago
Anoop Saldanha 3f91af89a2 Added comments to the the Host OS API test 16 years ago
Anoop Saldanha 22771d5f52 Updated doxygen comment for host os function 16 years ago
Anoop Saldanha 7dbc117b37 Host OS Table API. Modifications also make to the radix tree to handle netblocks 16 years ago
Victor Julien 4f2164677a - Fix pattern matchers b2g and b3g not being able to deal with a single pattern of the max pattern length (32 bytes by default).
- Fix the setting of the correct pattern matcher when it was set in the detection ctx.
- Add tests for the fixes.
16 years ago
Victor Julien f2a388ac8d Cleanup comments. 16 years ago
Victor Julien 34d44266fd Create reputation.h 16 years ago
William Metcalf 258cac889a silence pfring compiler warning 16 years ago
Victor Julien d6be6ceb19 Fixup artifact from automatic renames: rename DetectAddresssHead to DetectAddressHead. 16 years ago
Victor Julien e5b990a8ab Fixup siggroup merge artifacts. 16 years ago
Anoop Saldanha 78db80ea15 Unittests and style fix for detect-engine-siggroup.[ch] 16 years ago
Victor Julien 83d1e283bb Improve message on test expected to fail at this point. 16 years ago
Pablo Rincon 0df58406ee Adding Unittests, doxygen comments, coding style, logging support 16 years ago
Victor Julien cc442f1772 Fixup flow bits sig tests to work with the changes to the pattern matchers. 16 years ago
Breno Silva 6d1eb3e728 FlowBits Unit Tests 16 years ago
Breno Silva 2dee4cec13 FlowBits Unit Tests 16 years ago
Victor Julien c5dd31868d Small detect engine proto cleanups. 16 years ago
Gurvinder Singh 34e526d853 TTL macros suppport 16 years ago
Gurvinder Singh 90fea03af5 added comments and some minor changes 16 years ago
Gurvinder Singh cacbf31aad support for ttl keyword 16 years ago
Victor Julien deb511f51a Fix a compiler warning on Ubuntu 9.10 gcc 4.4.1 in the pattern matchers where the size of the thread ctx can be optimized to 0. 16 years ago
Victor Julien 8b8e2fef2d Fix msg parsing. 16 years ago
William Metcalf e458b2a26e detct-msg changes and unittests 16 years ago
William Metcalf f217370ac7 fixed for invalid netmask being set to 0 16 years ago
Victor Julien de8caa7964 Rename DetectAddressGroup* to DetectAddress* 16 years ago
Victor Julien 13dca5e8ce Cleanup of address functions. 16 years ago
Victor Julien 3c7a038477 Further memory cleanups. Split out init only vars out of the sig group head. 16 years ago
Victor Julien 32e51e5e5a Replace sgh refcnt by a flag. 16 years ago
Victor Julien 91d14964b6 Fixup formatting on the smb code. 16 years ago
William Metcalf 5fc3005103 added check for full al_parser_table 16 years ago
root f3e3d3873f fix smb and dcerpc unit tests 16 years ago
Kirby Kuehl ecaa701bdf smb and dcerpc work 16 years ago
Victor Julien bf72331849 Fix compilation warning in conf test. 16 years ago
Jason Ish ec9fa7b0a7 Files missed in last commit.
Update Conf API to allow direct access to nodes.

    A configuration node is now a tailq head and a tailq entry.  This allows us to build
    n-ary type trees to build something DOM like.

    Properly process lists so a list of rule files (for example) can be loaded.
16 years ago
Jason Ish d39a291427 Refactor yaml loader so we can load strings or files. 16 years ago
William Metcalf 4175206417 unittest regex changes and fixes 16 years ago
Victor Julien 2d0e9658f8 Speed up per sgh content maxlen calc. Remove mpm ptrs from mpm ctx. Add unittests testing the detection engine internals. 16 years ago
Victor Julien e4c98c562c Merge DetectAddressData and DetectAddressGroup 16 years ago
Victor Julien 15ab5d7003 More engine init memleaks fixed. HashListTable remove function fixed. 16 years ago
Victor Julien 7a7bb7a390 Get rid of global mpm_ctx. 16 years ago
Victor Julien fbe87a3ad5 Bunch of mostly unittest related memleak fixes. 16 years ago
Victor Julien 227cc082a1 Fix small memleak at engine init. 16 years ago
Gurvinder Singh 02fb39b913 detect-engine-proto unit tests and comments 16 years ago
Gurvinder Singh f2213b066f fast track stream handling and its unitests 16 years ago
Brian Rectanus b796541e57 Ack/Seq Keywords part 2 16 years ago
Brian Rectanus ed30067bd7 Ack/Seq Keywords 16 years ago
Victor Julien 56e45e0c16 Fix warning free compilation of defrag. Fix a missing variable initialization that cause a segv in the unittests. 16 years ago
Jason Ish e0b9e85230 Break out checksum fixup code to make the license separation more clear. 16 years ago
Victor Julien 97c991f75b Remove unused var and fix compilation with DEBUG enabled. 16 years ago
Jamie 0dc471db9c looking inside ICMP packets 16 years ago
Brian Rectanus ec6c5258b6 Sameip Keyword 16 years ago
Breno Silva f9b422bba7 FlagBits fix
Signed-off-by: Brian Rectanus <brectanu@gmail.com>
16 years ago
Victor Julien 4fb4dd59e4 Detect errors in the spin locks which somehow seems to fix some deadlocking withing valgrind. 16 years ago
Victor Julien 32830ff43d Small layout fix. 16 years ago
Pablo Rincon 06c382a44d Addapting to SCLogDebug 16 years ago
Pablo Rincon 292a7e47ef ICMPv6 Decoder and unittests 16 years ago
William Metcalf 7fb28ce5b6 fixes to mimic snort escape behavior in msg 16 years ago
Breno Silva a48ddc46b7 Flags janitor 16 years ago
Breno Silva 8f8de0e56f Unit test 60c fix 16 years ago
Anoop Saldanha bfc8200768 Fix for the broken test from logging module 16 years ago
William Metcalf 24b27136cc various unittest fixes for detect-engine-sigorder 16 years ago
Jason Ish 097a77e9fd Bug 6
Add a new command line option, --list-unittests to list all registered unit tests then exit.  If -U is supplied, the regex will be respected.
16 years ago
Victor Julien f76a740fe2 Small layout fix. 16 years ago
Victor Julien b470e7b40f Fixup merge artifact. 16 years ago
Breno Silva 15a8f34d36 Gid Keyword
Signed-off-by: Brian Rectanus <brectanu@gmail.com>
16 years ago
Breno Silva 6100a7f610 FragBits Keyword
Signed-off-by: Brian Rectanus <brectanu@gmail.com>
16 years ago
Anoop Saldanha 6858192660 Added a NULL check inside ConfGet() 16 years ago
Anoop Saldanha a767a28c70 fix for the test bug in the logging module 16 years ago
William Metcalf 0d13505f0e change debug code around to use global log dir 16 years ago
Victor Julien 43a50c538b Change default log settings to be more development friendly. Breaks one test. 16 years ago
Victor Julien d4733e3a76 Move pcre test out of detect.c 16 years ago
William Metcalf 86380b9d45 split out pcre parsing fixed some errors 16 years ago
Victor Julien 4dbcf5fbac Add support for moving detection tests outside of detect.c and move the 'id' tests to it's own file. 16 years ago
Pablo Rincon 1a983fd316 Adding id keyword and unittests 16 years ago
Victor Julien 085b7a3c0e Move unittests away from detect.c 16 years ago
Breno Silva 97a8778aa4 Signature Flags Keyword
Signed-off-by: Brian Rectanus <brectanu@gmail.com>
16 years ago
Breno Silva 7dc985aa4e Signature Flags Keyword
Signed-off-by: Brian Rectanus <brectanu@gmail.com>
16 years ago
Victor Julien 4e848796d8 Use correct free function in DetectPortParseInsertString. 16 years ago
Anoop Saldanha 0815ed7c9e Some refactoring of the code, error handling done 16 years ago
Brian Rectanus e2fc2545f2 ip_proto cleanup and fix mem leak. 16 years ago
Victor Julien 8c747380ae Fixup ip_proto keyword. 16 years ago
Victor Julien f58f437997 re-add unittests that were removed to prevent a git merge mess. 16 years ago
Brian Rectanus e28647032d Add ip_proto support. 16 years ago
Victor Julien f70c026340 Prepare for merging ipproto patch. 16 years ago
Anoop Saldanha fbc4d11ed4 Some code refactoring 16 years ago
Gurvinder Singh 4edcc530ec fixed unified alert2 ecode and removed printfs 16 years ago
Gurvinder Singh e7952b1331 some changes in threading constants 16 years ago
Gurvinder Singh ec75946e21 one more change 16 years ago
Gurvinder Singh 7ff38a7081 fixed thread issue 16 years ago
Gurvinder Singh 40b8afdd56 support for thread exit constants 16 years ago
Gurvinder Singh 48c94bbf03 initial thread code support 16 years ago
Gurvinder Singh 47eb168713 added a small comment 16 years ago
Gurvinder Singh 7b56b4314b unittest packet payload inspection 16 years ago
Gurvinder Singh 70b53a0293 fixed the ispayload inspecting func 16 years ago
Gurvinder Singh 78697ce502 avoid pm invocation 16 years ago
Gurvinder Singh a991ab0a19 added sigmatch payload flag 16 years ago
Gurvinder Singh 88fbfb3e65 fix an issue 16 years ago
Gurvinder Singh 892ace6b37 stream flag function made public 16 years ago
Gurvinder Singh 7895748606 add unit test for no stream reassembly 16 years ago
Gurvinder Singh 71da019734 some minor changes 16 years ago
Gurvinder Singh 94674c58f3 unit tests for no packet & payload inspection 16 years ago
Gurvinder Singh bbb385422d function to set packet flags 16 years ago
Gurvinder Singh cc0b4f7181 initial version to support detection byepass 16 years ago
Jamie a914c4e2bf check that the encapsulated packet is correctly parsed 16 years ago
Victor Julien 804da19a36 Fix flowbits match being unable to deal with a packet without a flow. 16 years ago
William Metcalf 67e6cf21ae verify valid port range 16 years ago
Victor Julien 5ffb7a7bd7 Add a few more tests for portrange validation. 16 years ago
Victor Julien 927685928c Fix segv in unified2 unittests. 16 years ago
Victor Julien fce06d2800 Fix unified2 tests relying on each other. 16 years ago
Breno Silva c43319c337 Regular expression for UnitTests
Signed-off-by: Brian Rectanus <brectanu@gmail.com>
16 years ago
Anoop Saldanha 590adbb3e8 Radix Tree modifications 16 years ago
Anoop Saldanha 3c21df69d2 Radix Tree structure for the engine 16 years ago
Anoop Saldanha bc42aebdd5 Logging module optimization changes 16 years ago
Victor Julien ff018d4b43 Strange fix for issue where signals seemed to be ignored in some cases. 16 years ago
Victor Julien 4914d8d903 Small stream fixes. 16 years ago
Victor Julien 970db6fdd8 Fix merge artifact and add new logging init code to pfring runmodes as well. 16 years ago
Pablo Rincon Crespo 93077a0fee Updating tests fo unified2 with LogFileCtx 16 years ago
Pablo Rincon Crespo a84cc38bc9 Preparing multithreading support for alert modules and logfilectx 16 years ago
William Metcalf 69e57e5e23 remove invalid dir from pcre + unit test 16 years ago
Victor Julien 968d8df12b More logging API usage. Changed logging macro's slightly so the vars inside them won't conflict with vars used by the calling function. 16 years ago
Victor Julien bcc5bbef93 Yet more logging api usage changes. 16 years ago
Victor Julien 91bc83e5c6 More logging API usage changes. 16 years ago
Anoop Saldanha b3a7f4c015 Update for the logging module and symbol renaming 16 years ago
Victor Julien 3a28171fbd Another round of logging api usage updates. 16 years ago
Victor Julien f4acd5a27e First batch of fixes for new debug and logging API usage. 16 years ago
Anoop Saldanha 157d5e8113 Implementation of the logging module 16 years ago
Anoop Saldanha f658ffbc9c Order the signatures based on certain rule parameters like actions, flowbits, flowvar, pktvar, priority etc 16 years ago
Victor Julien 4cc24fe463 Improve the handling of addresses and ports. Properly detect !any, other full negation. Fix [80:!80] syntax errors being undetected. 16 years ago
Victor Julien ea1fe0cf61 Set signal handlers after the unittests so we can kill the test runs with ctrl-c. 16 years ago
William Metcalf 3cf1be8710 invalid negation unittests added 16 years ago