X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/13121b693bd98a04532195b9631b862b6136b3c7..c5e15915403aa57b2ba7aeaf5c1d3985a6e373e4:/projects/stargazer/plugins/capture/ether_linux/ether_cap.h?ds=sidebyside diff --git a/projects/stargazer/plugins/capture/ether_linux/ether_cap.h b/projects/stargazer/plugins/capture/ether_linux/ether_cap.h index c03a6066..8dfb6c04 100644 --- a/projects/stargazer/plugins/capture/ether_linux/ether_cap.h +++ b/projects/stargazer/plugins/capture/ether_linux/ether_cap.h @@ -32,6 +32,7 @@ #include "stg/plugin.h" #include "stg/module_settings.h" +#include "stg/logger.h" class USERS; class TARIFFS; @@ -39,8 +40,6 @@ class ADMINS; class TRAFFCOUNTER; class SETTINGS; -extern "C" PLUGIN * GetPlugin(); - class TRAFFCOUNTER; //----------------------------------------------------------------------------- @@ -58,16 +57,18 @@ public: int ParseSettings() { return 0; } const std::string & GetStrError() const { return errorStr; } - const std::string GetVersion() const; - uint16_t GetStartPosition() const { return 10; } - uint16_t GetStopPosition() const { return 10; } + std::string GetVersion() const; + uint16_t GetStartPosition() const { return 40; } + uint16_t GetStopPosition() const { return 40; } private: + ETHER_CAP(const ETHER_CAP & rvalue); + ETHER_CAP & operator=(const ETHER_CAP & rvalue); + static void * Run(void *); int EthCapOpen(); int EthCapClose(); int EthCapRead(void * buffer, int blen, char ** iface); - bool WaitPackets(int sd) const; mutable std::string errorStr; @@ -77,6 +78,8 @@ private: int capSock; TRAFFCOUNTER * traffCnt; + + PLUGIN_LOGGER logger; }; //-----------------------------------------------------------------------------