X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/1acd024a6ba46ab0d9f9c25c089f79a4cba93f25..389821ffc3891259fb41b2e9fe9b6f891ff24aa6:/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 02452bb8..87124784 100644 --- a/projects/stargazer/plugins/capture/nfqueue/nfqueue.h +++ b/projects/stargazer/plugins/capture/nfqueue/nfqueue.h @@ -35,9 +35,13 @@ class TARIFFS; class ADMINS; class TRAFFCOUNTER; class SETTINGS; +class RAW_PACKET; class TRAFFCOUNTER; +struct nfq_handle; +struct nfq_q_handle; + class NFQ_CAP : public PLUGIN { public: NFQ_CAP(); @@ -58,6 +62,8 @@ public: uint16_t GetStartPosition() const { return 40; } uint16_t GetStopPosition() const { return 40; } + void Process(const RAW_PACKET & packet); + private: NFQ_CAP(const NFQ_CAP & rvalue); NFQ_CAP & operator=(const NFQ_CAP & rvalue); @@ -71,6 +77,11 @@ private: bool isRunning; MODULE_SETTINGS settings; + size_t queueNumber; + + struct nfq_handle * nfqHandle; + struct nfq_q_handle * queueHandle; + TRAFFCOUNTER * traffCnt; PLUGIN_LOGGER logger;