//#define CAP_DEBUG 1
-extern "C" Plugin* GetPlugin()
+extern "C" STG::Plugin* GetPlugin()
{
-static ETHER_CAP plugin;
-return &plugin;
+ static ETHER_CAP plugin;
+ return &plugin;
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
isRunning(false),
capSock(-1),
traffCnt(NULL),
- logger(PluginLogger::get("cap_ether"))
+ logger(STG::PluginLogger::get("cap_ether"))
{
}
//-----------------------------------------------------------------------------
struct ETH_IP
{
uint16_t ethHdr[8];
-RAW_PACKET rp;
+STG::RawPacket rp;
char padding[4];
char padding1[8];
};
if (ethIP->ethHdr[7] != 0x8)
continue;
- dc->traffCnt->Process(ethIP->rp);
+ dc->traffCnt->process(ethIP->rp);
}
dc->isRunning = false;