X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9a060830dcc1d1ae3e557b56e937fb2966dd6337..0d3126b51031578f051af3f38ed73b8e4e6a18bf:/projects/stargazer/plugins/capture/nfqueue/nfqueue.h?ds=sidebyside diff --git a/projects/stargazer/plugins/capture/nfqueue/nfqueue.h b/projects/stargazer/plugins/capture/nfqueue/nfqueue.h index 45342be0..fe40bc50 100644 --- a/projects/stargazer/plugins/capture/nfqueue/nfqueue.h +++ b/projects/stargazer/plugins/capture/nfqueue/nfqueue.h @@ -35,6 +35,7 @@ class TARIFFS; class ADMINS; class TRAFFCOUNTER; class SETTINGS; +struct RAW_PACKET; class TRAFFCOUNTER; @@ -50,7 +51,7 @@ 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; } @@ -61,7 +62,7 @@ public: uint16_t GetStartPosition() const { return 40; } uint16_t GetStopPosition() const { return 40; } - void Process(const RAW_PACKET & packet) { traffCnt->Process(packet); } + void Process(const RAW_PACKET & packet); private: NFQ_CAP(const NFQ_CAP & rvalue); @@ -76,6 +77,8 @@ private: bool isRunning; MODULE_SETTINGS settings; + size_t queueNumber; + struct nfq_handle * nfqHandle; struct nfq_q_handle * queueHandle;