X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/13121b693bd98a04532195b9631b862b6136b3c7..f5ea2a9375e9fb6fc8dc0720395e761ddd3c11c0:/projects/stargazer/plugins/capture/ether_freebsd/ether_cap.h diff --git a/projects/stargazer/plugins/capture/ether_freebsd/ether_cap.h b/projects/stargazer/plugins/capture/ether_freebsd/ether_cap.h index b51cc56d..b9150b8d 100644 --- a/projects/stargazer/plugins/capture/ether_freebsd/ether_cap.h +++ b/projects/stargazer/plugins/capture/ether_freebsd/ether_cap.h @@ -35,8 +35,7 @@ #include "stg/os_int.h" #include "stg/plugin.h" #include "stg/module_settings.h" - -extern "C" PLUGIN * GetPlugin(); +#include "stg/logger.h" #define BUFF_LEN (128) @@ -99,18 +98,21 @@ public: int Start(); int Stop(); - int Reload() { return 0; } + int Reload(const MODULE_SETTINGS & /*ms*/) { return 0; } bool IsRunning() { return isRunning; } void SetSettings(const MODULE_SETTINGS & s) { settings = s; } int ParseSettings(); 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: + BPF_CAP(const BPF_CAP & rvalue); + BPF_CAP & operator=(const BPF_CAP & rvalue); + static void * Run(void *); int BPFCapOpen(); int BPFCapOpen(BPF_DATA * bd); @@ -132,6 +134,8 @@ private: MODULE_SETTINGS settings; TRAFFCOUNTER * traffCnt; + + PLUGIN_LOGGER logger; }; //-----------------------------------------------------------------------------