]> git.stg.codes - stg.git/blobdiff - stargazer/plugins/capture/nfqueue/nfqueue.cpp
pcktSize -> packetSize
[stg.git] / stargazer / plugins / capture / nfqueue / nfqueue.cpp
index d4ac8f8f9ac4f8f46c55a6bc82bf18069463836c..3c79c1b1c2f0376f5c771ff3278cbf7d1e069a0d 100644 (file)
@@ -60,7 +60,7 @@ unsigned char * payload = NULL;
 if (nfq_get_payload(nfqData, &payload) < 0 || payload == NULL)
     return id;
 
 if (nfq_get_payload(nfqData, &payload) < 0 || payload == NULL)
     return id;
 
-RAW_PACKET packet;
+STG::RawPacket packet;
 
 memcpy(&packet.rawPacket, payload, sizeof(packet.rawPacket));
 
 
 memcpy(&packet.rawPacket, payload, sizeof(packet.rawPacket));
 
@@ -73,7 +73,7 @@ return nfq_set_verdict(queueHandle, id, NF_ACCEPT, 0, NULL);
 
 }
 
 
 }
 
-extern "C" Plugin* GetPlugin()
+extern "C" STG::Plugin* GetPlugin()
 {
     static NFQ_CAP plugin;
     return &plugin;
 {
     static NFQ_CAP plugin;
     return &plugin;
@@ -93,7 +93,7 @@ NFQ_CAP::NFQ_CAP()
       nfqHandle(NULL),
       queueHandle(NULL),
       traffCnt(NULL),
       nfqHandle(NULL),
       queueHandle(NULL),
       traffCnt(NULL),
-      logger(PluginLogger::get("cap_nfqueue"))
+      logger(STG::PluginLogger::get("cap_nfqueue"))
 {
 }
 //-----------------------------------------------------------------------------
 {
 }
 //-----------------------------------------------------------------------------
@@ -240,7 +240,7 @@ dc->isRunning = false;
 return NULL;
 }
 //-----------------------------------------------------------------------------
 return NULL;
 }
 //-----------------------------------------------------------------------------
-void NFQ_CAP::Process(const RAW_PACKET & packet)
+void NFQ_CAP::Process(const STG::RawPacket & packet)
 {
 {
-traffCnt->Process(packet);
+traffCnt->process(packet);
 }
 }