void PCAPExporterFile::receive(Packet* packet)
{
	writePCAP(packet);
	
	statBytesForwarded += packet->data_length;
	statPktsForwarded++;
}
/**
 * Writes a packet into the pipe
 */
void PCAPExporterPipe::receive(Packet* packet)
{
	if (onRestart){
		 DPRINTF("Dropping incoming packet, as attached process is not ready");
		 return;
	}
	if(fifoReaderPid == 0){
		 msg(MSG_VDEBUG, "fifoReaderPid = 0...this might happen during reconfiguration");
		 return;
	}
	writePCAP(packet);
	statPktsForwarded++;
}
void PCAPExporterFile::receive(Packet* packet)
{
    writePCAP(packet);
}