#include "util-error.h"
#include "util-debug.h"
+#include "util-ip.h"
#include "util-radix-tree.h"
-#include "util-host-os-info.h"
#include "util-unittest.h"
#include "suricata-common.h"
#include "threads.h"
return NULL;
}
- SCRadixChopIPAddressAgainstNetmask((uint8_t *)ipv4_addr, netmask_value, 32);
+ MaskIPNetblock((uint8_t *)ipv4_addr, netmask_value, 32);
/* Be careful with the mutex */
SCMutexLock(&rep_ctx->reputationIPV4_lock);
return NULL;
}
- SCRadixChopIPAddressAgainstNetmask((uint8_t *)ipv6_addr, netmask_value, 128);
+ MaskIPNetblock((uint8_t *)ipv6_addr, netmask_value, 128);
/* Be careful with the mutex */
SCMutexLock(&rep_ctx->reputationIPV6_lock);