7 #include "module_settings.h"
11 #define PAYLOAD_LEN (96)
19 extern "C" PLUGIN * GetPlugin();
21 //-----------------------------------------------------------------------------
22 class IPQ_CAP :public PLUGIN {
27 void SetUsers(USERS *) {}
28 void SetTariffs(TARIFFS *) {}
29 void SetAdmins(ADMINS *) {}
30 void SetTraffcounter(TRAFFCOUNTER * tc) { traffCnt = tc; }
31 void SetStore(STORE *) {}
32 void SetStgSettings(const SETTINGS *) {}
36 int Reload() { return 0; }
37 bool IsRunning() { return isRunning; }
39 void SetSettings(const MODULE_SETTINGS &) {}
40 int ParseSettings() { return 0; }
41 const std::string & GetStrError() const { return errorStr; }
42 const std::string GetVersion() const;
43 uint16_t GetStartPosition() const { return 10; }
44 uint16_t GetStopPosition() const { return 10; }
47 static void * Run(void *);
50 int IPQCapRead(void * buffer, int blen);
52 struct ipq_handle * ipq_h;
53 mutable std::string errorStr;
60 TRAFFCOUNTER * traffCnt;
61 unsigned char buf[BUFSIZE];