//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
-extern "C" Plugin* GetPlugin()
+extern "C" STG::Plugin* GetPlugin()
{
-static PCAP_CAP plugin;
-return &plugin;
+ static PCAP_CAP plugin;
+ return &plugin;
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
: nonstop(false),
isRunning(false),
traffCnt(NULL),
- logger(PluginLogger::get("pcap_cap"))
+ logger(STG::PluginLogger::get("pcap_cap"))
{
}
//-----------------------------------------------------------------------------
if (eth->ether_type != 0x8)
return;
-RAW_PACKET ip;
+STG::RawPacket ip;
memcpy(&ip.rawPacket, packet + 14, sizeof(ip.rawPacket));
-traffCnt->Process(ip);
+traffCnt->process(ip);
}