|
|
@ -155,7 +155,7 @@ static int DetectIPRepMatch (DetectEngineThreadCtx *det_ctx, Packet *p,
|
|
|
|
uint8_t val = 0;
|
|
|
|
uint8_t val = 0;
|
|
|
|
|
|
|
|
|
|
|
|
SCLogDebug("rd->cmd %u", rd->cmd);
|
|
|
|
SCLogDebug("rd->cmd %u", rd->cmd);
|
|
|
|
switch(rd->cmd) {
|
|
|
|
switch (rd->cmd) {
|
|
|
|
case IPRepCmdAny:
|
|
|
|
case IPRepCmdAny:
|
|
|
|
val = GetHostRepSrc(p, rd->cat, version);
|
|
|
|
val = GetHostRepSrc(p, rd->cat, version);
|
|
|
|
if (val == 0)
|
|
|
|
if (val == 0)
|
|
|
@ -213,7 +213,6 @@ static int DetectIPRepMatch (DetectEngineThreadCtx *det_ctx, Packet *p,
|
|
|
|
|
|
|
|
|
|
|
|
int DetectIPRepSetup (DetectEngineCtx *de_ctx, Signature *s, const char *rawstr)
|
|
|
|
int DetectIPRepSetup (DetectEngineCtx *de_ctx, Signature *s, const char *rawstr)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
DetectIPRepData *cd = rs_detect_iprep_parse(rawstr);
|
|
|
|
DetectIPRepData *cd = rs_detect_iprep_parse(rawstr);
|
|
|
|
if (cd == NULL) {
|
|
|
|
if (cd == NULL) {
|
|
|
|
SCLogError("\"%s\" is not a valid setting for iprep", rawstr);
|
|
|
|
SCLogError("\"%s\" is not a valid setting for iprep", rawstr);
|
|
|
@ -241,7 +240,6 @@ error:
|
|
|
|
void DetectIPRepFree (DetectEngineCtx *de_ctx, void *ptr)
|
|
|
|
void DetectIPRepFree (DetectEngineCtx *de_ctx, void *ptr)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
DetectIPRepData *fd = (DetectIPRepData *)ptr;
|
|
|
|
DetectIPRepData *fd = (DetectIPRepData *)ptr;
|
|
|
|
|
|
|
|
|
|
|
|
if (fd == NULL)
|
|
|
|
if (fd == NULL)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|