git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ticket 37. In the TariffChangeIsAllowed() function return "" added and
[stg.git]
/
projects
/
stargazer
/
plugins
/
capture
/
nfqueue
/
nfqueue.h
diff --git
a/projects/stargazer/plugins/capture/nfqueue/nfqueue.h
b/projects/stargazer/plugins/capture/nfqueue/nfqueue.h
index 02452bb87f6e2f8781d3c53323f275c5d1bed20f..27198073cfc255951df2b920f852e55481d8f6ac 100644
(file)
--- 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 ADMINS;
class TRAFFCOUNTER;
class SETTINGS;
+class RAW_PACKET;
class TRAFFCOUNTER;
class TRAFFCOUNTER;
+struct nfq_handle;
+struct nfq_q_handle;
+
class NFQ_CAP : public PLUGIN {
public:
NFQ_CAP();
class NFQ_CAP : public PLUGIN {
public:
NFQ_CAP();
@@
-47,7
+51,7
@@
public:
int Start();
int Stop();
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; }
bool IsRunning() { return isRunning; }
void SetSettings(const MODULE_SETTINGS & s) { settings = s; }
@@
-58,6
+62,8
@@
public:
uint16_t GetStartPosition() const { return 40; }
uint16_t GetStopPosition() const { return 40; }
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);
private:
NFQ_CAP(const NFQ_CAP & rvalue);
NFQ_CAP & operator=(const NFQ_CAP & rvalue);
@@
-71,6
+77,11
@@
private:
bool isRunning;
MODULE_SETTINGS settings;
bool isRunning;
MODULE_SETTINGS settings;
+ size_t queueNumber;
+
+ struct nfq_handle * nfqHandle;
+ struct nfq_q_handle * queueHandle;
+
TRAFFCOUNTER * traffCnt;
PLUGIN_LOGGER logger;
TRAFFCOUNTER * traffCnt;
PLUGIN_LOGGER logger;