void nbPacketCapture::Stop()
{
	m_netVMHandle->Stop();
	m_nvmIsRunning= false;
	DELETE_PTR(m_netVMHandle);
	DELETE_PTR(m_netPEHandle);
}
Esempio n. 2
0
void DeleteElementMap(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementMapBase *NetPDLElement= (struct _nbNetPDLElementMapBase *) NetPDLElementBase;

	// Let's check the field type
	switch(NetPDLElement->FieldType)
	{
	case nbNETPDL_ID_FIELD_MAP_XML_PI:
		DeleteElementMapXMLPI(NetPDLElementBase); break;
	//case nbNETPDL_ID_FIELD_MAP_XML_PI_ATTR:
	case nbNETPDL_ID_FIELD_MAP_XML_DOCTYPE:
		DeleteElementMapXMLDoctype(NetPDLElementBase); break;
	case nbNETPDL_ID_FIELD_MAP_XML_ELEMENT:
		DeleteElementMapXMLElement(NetPDLElementBase); break;
	//case nbNETPDL_ID_FIELD_MAP_XML_ELEMENT_ATTR:
	default:
		// Several nbNETPDL_ID_* missing; nothing to delete, here?
		break;
	}

	DELETE_PTR(NetPDLElement->Name);
	DELETE_PTR(NetPDLElement->LongName);
	DELETE_PTR(NetPDLElement->ShowTemplateName);

	DELETE_PTR(NetPDLElement->RefName);

	free(NetPDLElement);
}
nbPacketCapture::~nbPacketCapture()
{
	Stop();
	DELETE_PTR(m_srcNetDevice);
	DELETE_PTR(m_dstNetDevice);
	DELETE_PTR(m_byteCodeHandle);
};
Esempio n. 4
0
nbNetVmPortRemoteAdapter::~nbNetVmPortRemoteAdapter()
{
    DELETE_PTR(Host);
    DELETE_PTR(Port);
    DELETE_PTR(AuthToken1);
    DELETE_PTR(AuthToken2);
    DELETE_PTR(AuthToken3);
}
Esempio n. 5
0
PhysicalNestLoopJoin::NestLoopJoinContext::~NestLoopJoinContext() {
  DELETE_PTR(block_for_asking_);
  DELETE_PTR(block_stream_iterator_);
  DELETE_PTR(buffer_stream_iterator_);
  for (int i = 0; i < join_condi_.size(); ++i) {
    DELETE_PTR(join_condi_[i]);
  }
  join_condi_.clear();
}
Esempio n. 6
0
void DeleteElementBlock(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementBlock *NetPDLElement= (struct _nbNetPDLElementBlock *) NetPDLElementBase;

	DELETE_PTR(NetPDLElement->Name);
	DELETE_PTR(NetPDLElement->LongName);
	DELETE_PTR(NetPDLElement->ShowSumTemplateName);

	free(NetPDLElement);
}
Esempio n. 7
0
void DeleteElementCfieldDynamic(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementCfieldDynamic *NetPDLElement= (struct _nbNetPDLElementCfieldDynamic *) NetPDLElementBase;

	DELETE_PTR(NetPDLElement->NamesList);

	DELETE_PTR(NetPDLElement->PatternRegularExpression);
	if (NetPDLElement->PatternPCRECompiledRegExp)
		pcre_free(NetPDLElement->PatternPCRECompiledRegExp);
}
Esempio n. 8
0
PhysicalNestLoopJoin::~PhysicalNestLoopJoin() {
  DELETE_PTR(state_.child_left_);
  DELETE_PTR(state_.child_right_);
  //  DELETE_PTR(state_.input_schema_left_);
  //  DELETE_PTR(state_.input_schema_right_);
  //  for (int i = 0; i < state_.join_condi_.size(); ++i) {
  //    DELETE_PTR(state_.join_condi_[i]);
  //  }
  //  state_.join_condi_.clear();
}
Esempio n. 9
0
void DeleteElementLookupKeyData(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementLookupKeyData *NetPDLElement= (struct _nbNetPDLElementLookupKeyData *) NetPDLElementBase;

	DELETE_PTR(NetPDLElement->Mask);

	FreeExpression(NetPDLElement->ExprTree);
	DELETE_PTR(NetPDLElement->ExprString);

	free(NetPDLElement);
}
Esempio n. 10
0
void DeleteElementMapXMLElement(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementMapXMLElement *NetPDLElement= (struct _nbNetPDLElementMapXMLElement *) NetPDLElementBase;

	DELETE_PTR(NetPDLElement->XMLElementRegularExpression);
	if (NetPDLElement->XMLElementPCRECompiledRegExp)
		pcre_free(NetPDLElement->XMLElementPCRECompiledRegExp);

	DELETE_PTR(NetPDLElement->NamespaceString);
	DELETE_PTR(NetPDLElement->HierarcyString);
}
Esempio n. 11
0
void DeleteElementAssignLookupTable(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementAssignLookupTable *NetPDLElement= (struct _nbNetPDLElementAssignLookupTable *) NetPDLElementBase;

	DELETE_PTR(NetPDLElement->TableName);
	DELETE_PTR(NetPDLElement->FieldName);

	FreeExpression(NetPDLElement->ExprTree);
	DELETE_PTR(NetPDLElement->ExprString);

	free(NetPDLElement);
}
Esempio n. 12
0
void DeleteElementCfieldDelimited(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementCfieldDelimited *NetPDLElement= (struct _nbNetPDLElementCfieldDelimited *) NetPDLElementBase;

 	DELETE_PTR(NetPDLElement->BeginRegularExpression);
	if (NetPDLElement->BeginPCRECompiledRegExp)
		pcre_free(NetPDLElement->BeginPCRECompiledRegExp);

 	DELETE_PTR(NetPDLElement->EndRegularExpression);
	if (NetPDLElement->EndPCRECompiledRegExp)
		pcre_free(NetPDLElement->EndPCRECompiledRegExp);
}
Esempio n. 13
0
void Settings_Destroy( thread_Settings *mSettings) {
    DELETE_ARRAY( mSettings->mHost      );
    DELETE_ARRAY( mSettings->mLocalhost );
    DELETE_ARRAY( mSettings->mFileName  );
    DELETE_ARRAY( mSettings->mOutputFileName );
    DELETE_PTR( mSettings );
} // end ~Settings
Esempio n. 14
0
/*
 * client_spawn is responsible for creating a Client class
 * and launching the client. It is provided as a means for
 * the C thread subsystem to launch the client C++ object.
 */
void client_spawn( thread_Settings *thread ) {
    Client *theClient = NULL;
#ifdef SAME_TCP
    thread_Settings *next = NULL;
#endif

    //start up the client
    theClient = new Client( thread );

    // Let the server know about our settings
    theClient->InitiateServer();

    // Run the test
    theClient->Run();


    DELETE_PTR( theClient );

#ifdef SAME_TCP
    Settings_GenerateServerSettings( thread, &next );
    if ( next != NULL ) {
	server_spawn (next);
    }
#endif
}
Esempio n. 15
0
void DeleteElementFieldmatch(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementFieldmatch *NetPDLElement= (struct _nbNetPDLElementFieldmatch *) NetPDLElementBase;

	FreeExpression(NetPDLElement->MatchExprTree);
	DELETE_PTR(NetPDLElement->MatchExprString);
}
Esempio n. 16
0
void DeleteElementCfieldXML(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementCfieldXML *NetPDLElement= (struct _nbNetPDLElementCfieldXML *) NetPDLElementBase;

	FreeExpression(NetPDLElement->SizeExprTree);
	DELETE_PTR(NetPDLElement->SizeExprString);
}
Esempio n. 17
0
void DeleteElementCfieldTLV(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementCfieldTLV *NetPDLElement= (struct _nbNetPDLElementCfieldTLV *) NetPDLElementBase;

	FreeExpression(NetPDLElement->ValueExprTree);
	DELETE_PTR(NetPDLElement->ValueExprString);
}
Esempio n. 18
0
void DeleteElementIncludeBlk(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementIncludeBlk *NetPDLElement= (struct _nbNetPDLElementIncludeBlk *) NetPDLElementBase;

	DELETE_PTR(NetPDLElement->IncludedBlockName);

	free(NetPDLElement);
}
Esempio n. 19
0
void DeleteElementMapXMLDoctype(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementMapXMLDoctype *NetPDLElement= (struct _nbNetPDLElementMapXMLDoctype *) NetPDLElementBase;

	DELETE_PTR(NetPDLElement->XMLDoctypeRegularExpression);
	if (NetPDLElement->XMLDoctypePCRECompiledRegExp)
		pcre_free(NetPDLElement->XMLDoctypePCRECompiledRegExp);
}
Esempio n. 20
0
void DeleteElementKeyData(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementKeyData *NetPDLElement= (struct _nbNetPDLElementKeyData *) NetPDLElementBase;

	DELETE_PTR(NetPDLElement->Name);

	free(NetPDLElement);
}
Esempio n. 21
0
void DeleteElementFieldPattern(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementFieldPattern *NetPDLElement= (struct _nbNetPDLElementFieldPattern *) NetPDLElementBase;

 	DELETE_PTR(NetPDLElement->PatternRegularExpression);
	if (NetPDLElement->PatternPCRECompiledRegExp)
		pcre_free(NetPDLElement->PatternPCRECompiledRegExp);
}
Esempio n. 22
0
void DeleteElementCfieldHdrline(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementCfieldHdrline *NetPDLElement= (struct _nbNetPDLElementCfieldHdrline *) NetPDLElementBase;

 	DELETE_PTR(NetPDLElement->SeparatorRegularExpression);
	if (NetPDLElement->SeparatorPCRECompiledRegExp)
		pcre_free(NetPDLElement->SeparatorPCRECompiledRegExp);
}
Esempio n. 23
0
bool PhysicalNestLoopJoin::Close(SegmentExecStatus *const exec_status) {
  InitExpandedStatus();
  DestoryAllContext();
  DELETE_PTR(block_buffer_);
  state_.child_left_->Close(exec_status);
  state_.child_right_->Close(exec_status);
  return true;
}
Esempio n. 24
0
void DeleteElementLookupTable(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementLookupTable *NetPDLElement= (struct _nbNetPDLElementLookupTable *) NetPDLElementBase;

	DELETE_PTR(NetPDLElement->Name);

	free(NetPDLElement);
}
// Given the root, this clears the signal linked list
void tagSMSGENTRY::vClearSignalList(sSIGNALS* psSignals)
{
    sSIGNALS* psCurrSignal = psSignals;

    while (NULL != psCurrSignal)
    {
        sSIGNALS* psSignalNext = psCurrSignal->m_psNextSignalList;
        psCurrSignal->m_psNextSignalList = NULL;
        if (NULL != psCurrSignal->m_oSignalIDVal)
        {
            psCurrSignal->m_oSignalIDVal->vClearNext();
            DELETE_PTR(psCurrSignal->m_oSignalIDVal);
        }
        DELETE_PTR(psCurrSignal);
        psCurrSignal = psSignalNext;
    } // while (NULL != psCurrSignal)
}
Esempio n. 26
0
void DeleteElementFieldTokenWrapped(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementFieldTokenWrapped *NetPDLElement= (struct _nbNetPDLElementFieldTokenWrapped *) NetPDLElementBase;

	DELETE_PTR(NetPDLElement->BeginTokenString);
	DELETE_PTR(NetPDLElement->EndTokenString);

 	DELETE_PTR(NetPDLElement->BeginRegularExpression);
	if (NetPDLElement->BeginPCRECompiledRegExp)
		pcre_free(NetPDLElement->BeginPCRECompiledRegExp);

 	DELETE_PTR(NetPDLElement->EndRegularExpression);
	if (NetPDLElement->EndPCRECompiledRegExp)
		pcre_free(NetPDLElement->EndPCRECompiledRegExp);

	DELETE_PTR(NetPDLElement->BeginOffsetExprString);
	if (NetPDLElement->BeginOffsetExprTree)
		FreeExpression(NetPDLElement->BeginOffsetExprTree);

	DELETE_PTR(NetPDLElement->EndOffsetExprString);
	if (NetPDLElement->EndOffsetExprTree)
		FreeExpression(NetPDLElement->EndOffsetExprTree);

	DELETE_PTR(NetPDLElement->EndDiscardExprString);
	if (NetPDLElement->EndDiscardExprTree)
		FreeExpression(NetPDLElement->EndDiscardExprTree);
}
Esempio n. 27
0
SoftSlot::~SoftSlot() {
  FREE_PTR(dbPath);
  FREE_PTR(userPIN);
  FREE_PTR(soPIN);
  FREE_PTR(tokenLabel);
  DELETE_PTR(nextSlot);
  FREE_PTR(hashedUserPIN);
  FREE_PTR(hashedSOPIN);
}
Esempio n. 28
0
void DeleteElementCase(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementCase *NetPDLElement= (struct _nbNetPDLElementCase *) NetPDLElementBase;

	DELETE_PTR(NetPDLElement->ValueString);
	FREE_PTR(NetPDLElement->ShowString);

	free(NetPDLElement);
}
Esempio n. 29
0
void DeleteElementExitWhen(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementExitWhen *NetPDLElement= (struct _nbNetPDLElementExitWhen *) NetPDLElementBase;

	FreeExpression(NetPDLElement->ExitExprTree);
	DELETE_PTR(NetPDLElement->ExitExprString);

	free(NetPDLElement);
}
Esempio n. 30
0
void DeleteElementVariable(struct _nbNetPDLElementBase *NetPDLElementBase)
{
struct _nbNetPDLElementVariable *NetPDLElement= (struct _nbNetPDLElementVariable *) NetPDLElementBase;

	FREE_PTR(NetPDLElement->Name);
	DELETE_PTR(NetPDLElement->InitValueString);

	free(NetPDLElement);
}