Logo Search packages:      
Sourcecode: hlbr version File versions  Download package

int InitTestTCPListContent (  ) 

Set up the TCP ListContent test

Returns:
TRUE if successful or FALSE in case of failure

Definition at line 157 of file test_tcp_listcontent.c.

References TCPListContentAddNode(), TestTCPListContent(), and TestTCPListContentFinishedSetup().

                             {
      int   TestID;

#ifdef DEBUGPATH
      printf("In InitTestTCPListContent\n");
#endif

      InitJTree(&TCPListContentTree, FALSE);

      TestID=CreateTest("TCPListContent");
      if (TestID==TEST_NONE) return FALSE;
      
      if (!BindTestToDecoder(TestID, "TCP")){
            printf("Failed to Bind to TCP\n");
            return FALSE;
      } 
      
      snprintf(Globals.Tests[TestID].ShortName, MAX_NAME_LEN, "listcontent");
      Globals.Tests[TestID].AddNode=TCPListContentAddNode;
      Globals.Tests[TestID].TestFunc=TestTCPListContent;
      Globals.Tests[TestID].FinishedSetup=TestTCPListContentFinishedSetup;
      
      TCPDecoderID=GetDecoderByName("TCP");

      return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index