Show
Ignore:
Timestamp:
08/30/07 00:53:49 (15 years ago)
Author:
andreu
Message:

ticket #11 and add generic conf in conf/rules.txt & tool/check.sh

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tags/REL-0.0.11beta/trunk/src/dataFlowSet.c

    r42 r44  
    173173      cpt++; 
    174174      j = 0; 
    175       pos = (pftmp->fieldType)*10+j; 
     175      pos = (pftmp->fieldType)*MAX_RULES_PER_FIELD+j; 
    176176      field_size = (int) pftmp->fieldLength; 
    177177       
    178178      /* special case: check yes on all flows from one router (phantom field nb 0) */ 
    179       while ( ((RuleDefPtr)(*(myPtrs->rulesAddressPtr+j))) != NULL ) {   
     179      /* FIXME : this code is repeated, perhaps past before */ 
     180      while ( ((RuleDefPtr)(*(myPtrs->rulesAddressPtr+j))) != NULL ) { 
    180181        if  ( (((RuleDefPtr)(*(myPtrs->rulesAddressPtr+j)))->value->stor.lvalue) 
    181182              == myPtrs->pcktPtr->ipH->srcAdd ) 
     
    834835            /* NEW transfert type */ 
    835836            for ( ; tmpRL; tmpRL=tmpRL->next){ 
    836               if (tmpRL->id == tmpRuleList->id){ 
     837              if (tmpRL->id == tmpRuleList->id){         
    837838                s = sendMessage(tmpRL->host->sockId, myMsg.text, sizeof(myMsg.text), 
    838839                                tmpRL->host->hostAddressPtr); 
     
    844845          } /* end if check */ 
    845846          tmpRuleList = tmpRuleList->next; 
     847          tmpRL = myPtrs->rulesListPtr; /* ticket #11 */ 
    846848          secondPftmp = tmp->lastField; 
    847849        } /* end while tmpRuleList */