if (nfq_get_payload(nfqData, &payload) < 0 || payload == NULL)
return id;
-RAW_PACKET packet;
+STG::RawPacket packet;
memcpy(&packet.rawPacket, payload, sizeof(packet.rawPacket));
}
-extern "C" Plugin* GetPlugin()
+extern "C" STG::Plugin* GetPlugin()
{
static NFQ_CAP plugin;
return &plugin;
nfqHandle(NULL),
queueHandle(NULL),
traffCnt(NULL),
- logger(PluginLogger::get("cap_nfqueue"))
+ logger(STG::PluginLogger::get("cap_nfqueue"))
{
}
//-----------------------------------------------------------------------------
return NULL;
}
//-----------------------------------------------------------------------------
-void NFQ_CAP::Process(const RAW_PACKET & packet)
+void NFQ_CAP::Process(const STG::RawPacket & packet)
{
-traffCnt->Process(packet);
+traffCnt->process(packet);
}