X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a9c940996bac5c61168f06ef61bc20225fb7a65e..ed482e49fcd8341061473ff39e683a951b84da20:/projects/stargazer/plugins/capture/ether_freebsd/ether_cap.h?ds=inline diff --git a/projects/stargazer/plugins/capture/ether_freebsd/ether_cap.h b/projects/stargazer/plugins/capture/ether_freebsd/ether_cap.h index 8f7e1f2f..76785ed2 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) @@ -106,9 +105,9 @@ public: 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); @@ -135,6 +134,8 @@ private: MODULE_SETTINGS settings; TRAFFCOUNTER * traffCnt; + + PLUGIN_LOGGER logger; }; //-----------------------------------------------------------------------------