Commit Graph

14 Commits (99d5bf4e68adf640b4dbd14aea64acfb1d374002)

Author SHA1 Message Date
Jason Ish 3c5d8e65d4 hostbits: use new unittest macros 10 years ago
Jason Ish c4945607e3 hostbits: fail parse on unexpected trailing data
Address issue https://redmine.openinfosecfoundation.org/issues/1889
for hostbits. This involves updating the regular expresssion
to capture any trailing data as the regex already keeps
spaces out of the name.

A unit test was converted to new macros to find out which
line it was failing at after updating regex.
10 years ago
Victor Julien e67ae0f174 detect keywords: use parse regex util func 11 years ago
Jason Ish 796dd5223b tests: no longer necessary to provide successful return code
1 pass, 0 is fail.
11 years ago
Jason Ish 26fc5682ad hostbits: ignore leading and trailing white space
Ignore leading and trailing space around the name and
direction tokens.
11 years ago
Victor Julien 1a83fee5f5 xbits: fix coverity warnings
Switch statement would contain NOALERT even though this was
unreachable.
12 years ago
Victor Julien 00d6298666 host: handle timeout
Set expiration for regular hostbits keyword.
12 years ago
Victor Julien 67dd5c0430 host: implement hostbits/xbits expire 12 years ago
Victor Julien 57d93cbcfe hostbits: prepare for xbits integration 12 years ago
Victor Julien dea8dda3c1 vars: redo var name <-> idx handling
Can't use sm type anymore as multiple var carriers (host/flow/etc) will
all have xbits.
12 years ago
Victor Julien 4c6d564211 hostbits: unittest cleanups 12 years ago
Victor Julien 2cb0df7cf9 hostbits: allow for src/dst parameter
By default, the hostbit checks the 'src' host. By adding the dst option
the dst host is used instead.
12 years ago
Victor Julien be725a5ba2 hostbits: add more tests, include sigorder 12 years ago
Victor Julien 5c880377ae detect: hostbits keyword
Per host bit similar to 'flowbits'.

Initial code that uses just the 'src' ip for the operations.
12 years ago