#include "detect.h"
#include "detect-parse.h"
#include "detect-engine.h"
+#include "detect-engine-buffer.h"
#include "detect-engine-mpm.h"
#include "detect-engine-prefilter.h"
#include "detect-ipaddr.h"
{
/* store list id. Content, pcre, etc will be added to the list at this
* id. */
- s->init_data->list = g_src_ipaddr_buffer_id;
+ if (SCDetectBufferSetActiveList(de_ctx, s, g_src_ipaddr_buffer_id) < 0)
+ return -1;
return 0;
}
{
/* store list id. Content, pcre, etc will be added to the list at this
* id. */
- s->init_data->list = g_dest_ipaddr_buffer_id;
+ if (SCDetectBufferSetActiveList(de_ctx, s, g_dest_ipaddr_buffer_id) < 0)
+ return -1;
return 0;
}