Changeset 55 for trunk/src

Show
Ignore:
Timestamp:
09/10/07 15:47:51 (16 years ago)
Author:
andreu
Message:

addadd the comparaison with fields 10 and 14 (snmp index)

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/dataFlowSet.c

    r54 r55  
    261261#endif 
    262262#ifdef CRIHAN 
     263              /* FIXME : add this two following bloc in the case N = 4 */ 
    263264              if (pftmp->fieldType==10){ 
    264265                ipFirstCache.inSnmp = *((unsigned short*)&buffer2); 
     266                if ( (((RuleDefPtr)(*(myPtrs->rulesAddressPtr+pos)))->value->stor.svalue)  
     267                     == (*((unsigned short*)&buffer2)) 
     268                     ) 
     269                  { 
     270                    ((RuleDefPtr)(*(myPtrs->rulesAddressPtr+pos)))->check = 1; 
     271                  } 
    265272              } 
    266273              if (pftmp->fieldType==14){ 
    267274                ipFirstCache.outSnmp = *((unsigned short*)&buffer2); 
     275                if ( (((RuleDefPtr)(*(myPtrs->rulesAddressPtr+pos)))->value->stor.svalue)  
     276                     == (*((unsigned short*)&buffer2)) 
     277                     ) 
     278                  { 
     279                    ((RuleDefPtr)(*(myPtrs->rulesAddressPtr+pos)))->check = 1; 
     280                  } 
    268281              } 
    269282              if (pftmp->fieldType==7){ 
  • trunk/src/rules_mgmt.c

    r54 r55  
    467467      tmp->fieldType = ft; 
    468468      tmp->value = NULL; 
    469       if ((ft==25) || (ft==7) || (ft==11) ){ 
     469      if ((ft==25) || (ft==7) || (ft==11) || (ft==10) || (ft==14) ){ 
    470470          tmp->value = addValue(tmp->value, operatorToNumber, value); 
    471471      } else if ((ft==1)){