]> git.stg.codes - stg.git/blobdiff - projects/stargazer/traffcounter_impl.cpp
ASN.1 sources moved to library
[stg.git] / projects / stargazer / traffcounter_impl.cpp
index 424cc09468f949b5ed5c13b87a8a2c1b4eea2b1b..237799f5e22a56fc083419ff2aadb9726dd0508c 100644 (file)
@@ -37,6 +37,7 @@
 #include <csignal>
 #include <cassert>
 #include <cstdio> // fopen and similar
+#include <cstdlib> // strtol
 
 #include "stg/common.h"
 #include "stg/locker.h"
@@ -57,7 +58,8 @@ tcp = 0, udp, icmp, tcp_udp, all
 
 //-----------------------------------------------------------------------------
 TRAFFCOUNTER_IMPL::TRAFFCOUNTER_IMPL(USERS_IMPL * u, const std::string & fn)
-    : WriteServLog(GetStgLogger()),
+    : TRAFFCOUNTER(),
+      WriteServLog(GetStgLogger()),
       rulesFileName(fn),
       monitoring(false),
       users(u),