Changeset 54 for trunk/src/rules_mgmt.c

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

add the comparaison with fields 7 and 11 (ports)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/rules_mgmt.c

    r53 r54  
    467467      tmp->fieldType = ft; 
    468468      tmp->value = NULL; 
    469       if ((ft==25)){ 
     469      if ((ft==25) || (ft==7) || (ft==11) ){ 
    470470          tmp->value = addValue(tmp->value, operatorToNumber, value); 
    471471      } else if ((ft==1)){ 
     
    651651    }    
    652652    tmp->valueLength = 4; 
    653     tmp->stor.lvalue = (unsigned short) atoi(value); 
     653    tmp->stor.lvalue = (unsigned long) atol(value); 
    654654    tmp->next = vPtr; 
    655655  }