Changeset 34 for trunk/src/template.c

Show
Ignore:
Timestamp:
04/25/07 17:05:21 (16 years ago)
Author:
andreu
Message:

bug on bad reading of routers configuration file fixed
bug on wrong sampled value fixed
in tool, we add a supervisor script shell

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/template.c

    r30 r34  
    149149             || badFieldLength == 1  
    150150             || (badFieldCount == 1)) { 
    151           fprintf(stderr,"\n IP: %lu.%lu.%lu.%lu, %d,%d\n", 
    152                   cr->IpAddress>>24, 
    153                   cr->IpAddress<<8>>24, 
    154                   cr->IpAddress<<16>>24, 
    155                   cr->IpAddress<<24>>24, 
    156                   badFieldNumber, 
    157                   badFieldLength 
    158                   ); 
    159           fprintf (stderr, "\n cTFSPtr->templateFlowSetId: %hu\n",  
    160                    cTFSPtr->templateFlowSetId); 
     151/*        fprintf(stderr,"\n IP: %lu.%lu.%lu.%lu, %d,%d\n", */ 
     152/*                cr->IpAddress>>24, */ 
     153/*                cr->IpAddress<<8>>24, */ 
     154/*                cr->IpAddress<<16>>24, */ 
     155/*                cr->IpAddress<<24>>24, */ 
     156/*                badFieldNumber, */ 
     157/*                badFieldLength */ 
     158/*                ); */ 
     159/*        fprintf (stderr, "\n cTFSPtr->templateFlowSetId: %hu\n",  */ 
     160/*                 cTFSPtr->templateFlowSetId); */ 
    161161          while ( ((*offV9))> (index)){ 
    162162            buffer2[1]= *(buf+index); index++; 
    163163            buffer2[0]= *(buf+index); index++; 
    164164            tmp = *((unsigned short*)&buffer2); 
    165             fprintf (stderr, " %hu ", tmp); 
     165/*          fprintf (stderr, " %hu ", tmp); */ 
    166166          } 
    167167          syslog (LOG_INFO,  
    168168                  "in new template: field nb gt 89, field lg gt 16 or too many fields, bad template definition possibility"); 
    169           fprintf(stderr,  
    170                   "\n in new template function: too many fields, bug collector or wrong template def \n");  
     169/*        fprintf(stderr,  */ 
     170/*                "\n in new template function: too many fields, bug collector or wrong template def \n");  */ 
    171171          ptpltmp = cTFSPtr; 
    172172          if (ptpltmp->prev == NULL) { 
     
    260260            buffer2[0]= *(buf+index); index++; 
    261261            tmp = *((unsigned short*)&buffer2); 
    262             fprintf (stderr, " %hu ", tmp); 
     262/*          fprintf (stderr, " %hu ", tmp); */ 
    263263          } 
    264264          syslog (LOG_INFO,  
    265265                  "in update template function: too many fields, bug collector or wrong template def in template update"); 
    266           fprintf(stderr, 
    267                   "\nin update template function: too many fields, bug collector or wrong template def in template update\n"); 
     266/*        fprintf(stderr, */ 
     267/*                "\nin update template function: too many fields, bug collector or wrong template def in template update\n"); */ 
    268268          ptpltmp = cTFSPtr; 
    269269          if (ptpltmp->prev == NULL) {