Changeset 69 for trunk/src/rules_mgmt.c

Show
Ignore:
Timestamp:
04/09/08 08:27:30 (15 years ago)
Author:
andreu
Message:

In rules definition, we add the selection possibility of field '4' (Transport protocol)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/rules_mgmt.c

    r55 r69  
    467467      tmp->fieldType = ft; 
    468468      tmp->value = NULL; 
    469       if ((ft==25) || (ft==7) || (ft==11) || (ft==10) || (ft==14) ){ 
     469      if ((ft==16) || (ft==17) || (ft==25) || (ft==7) || (ft==11) || (ft==10) || (ft==14) ){ 
    470470          tmp->value = addValue(tmp->value, operatorToNumber, value); 
    471471      } else if ((ft==1)){ 
     
    475475      } else if ( (ft==27) || (ft==28) || (ft==62) || (ft==63) ){ 
    476476          tmp->value = addV6Address(tmp->value, operatorToNumber, value); 
    477       } else if ( (ft==60) || (ft==46) ){ 
     477      } else if ( (ft==60) || (ft==46) || (ft==4) ) { 
    478478          tmp->value = addCValue(tmp->value, operatorToNumber, value); 
    479479      } else {