]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Now using the common functions
authorDuarte Silva <development@serializing.me>
Tue, 30 Jul 2013 15:16:41 +0000 (16:16 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 29 Aug 2013 15:04:30 +0000 (17:04 +0200)
- Removed some non printable ANSI characters
- Removed unecessary include

src/reputation.c

index 63417b52d499d8fbefb6cea2deda4fc12f133cdf..5832bb36f91abb482232df7bfcdd8bd6752b40b1 100644 (file)
@@ -27,8 +27,8 @@
 
 #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"
@@ -802,7 +802,7 @@ Reputation *SCReputationAddIPV4Data(uint8_t *ipv4addr, int netmask_value, Reputa
             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);
@@ -1072,7 +1072,7 @@ Reputation *SCReputationAddIPV6Data(uint8_t *ipv6addr, int netmask_value, Reputa
             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);