FileAnalysis: refactor add/remove/stop BIFs, add BOF triggers/fields.

The add_action, remove_action, and stop BIFs now go through a queue to
ensure that modifications are made at well-defined times and don't end
up invalidating loop iterators.
This commit is contained in:
Jon Siwek 2013-02-28 17:19:16 -06:00
parent 691622b3aa
commit 720858fb36
13 changed files with 517 additions and 169 deletions

View file

@ -41,8 +41,6 @@ Action* DataEvent::Instantiate(RecordVal* args, Info* info)
bool DataEvent::DeliverChunk(const u_char* data, uint64 len, uint64 offset)
{
Action::DeliverChunk(data, len, offset);
if ( ! chunk_event ) return true;
val_list* args = new val_list;
@ -56,8 +54,6 @@ bool DataEvent::DeliverChunk(const u_char* data, uint64 len, uint64 offset)
bool DataEvent::DeliverStream(const u_char* data, uint64 len)
{
Action::DeliverStream(data, len);
if ( ! stream_event ) return true;
val_list* args = new val_list;