Changeset 120 for trunk

Show
Ignore:
Timestamp:
07/26/10 13:56:35 (13 years ago)
Author:
andreu
Message:

first monitoring web site

Location:
trunk
Files:
33 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/fields_mgmt.c

    r28 r120  
    3535  FieldPtr tmp = pf; 
    3636  for (; tmp; tmp=tmp->next) { 
    37     fprintf(file, "(%hu,%hu) ", tmp->fieldType, tmp->fieldLength); 
     37    fprintf(file, "%hu;%hu ", tmp->fieldType, tmp->fieldLength); 
    3838  } 
    3939  fprintf(file,"\n"); 
  • trunk/src/renetcol.c

    r114 r120  
    735735      break; 
    736736    } 
    737     if (loopNb  > 1000 ){ 
     737    if (loopNb  > 140000 ){ 
    738738      /* FIXME perhaps call this function via the compilation options */ 
    739739      writeAllTplFlSet(); 
     
    942942    syslog (LOG_ERR, "error during %s opening", "/tmp/TemplateDef.txt"); 
    943943  } 
    944   fprintf(TPLFILE,"\n*********************************************\n* All template definitions: (field, size) : *\n*********************************************\n"); 
    945944  for (; tmp; tmp=tmp->next) { 
    946     fprintf(TPLFILE,"----------------------\nrouter %lu.%lu.%lu.%lu : \n----------------------\n", 
    947             (tmp->IpAddress>>24), 
    948             (tmp->IpAddress<<8>>24), 
    949             (tmp->IpAddress<<16>>24), 
    950             (tmp->IpAddress<<24>>24)); 
    951945    tmpFS =  tmp->tplList; 
    952946    for (; tmpFS; tmpFS=tmpFS->next) { 
    953       fprintf(TPLFILE,"TId %hu (sourceId: %lu):\n",  
     947      fprintf(TPLFILE,"%lu.%lu.%lu.%lu TId %hu %lu ",  
     948              (tmp->IpAddress>>24), 
     949              (tmp->IpAddress<<8>>24), 
     950              (tmp->IpAddress<<16>>24), 
     951              (tmp->IpAddress<<24>>24), 
    954952              tmpFS->templateFlowSetId, 
    955953              tmpFS->sourceId); 
     
    959957    if ((tmpOP = tmp->tplOptList) != NULL){ 
    960958      for (; tmpOP; tmpOP=tmpOP->next) { 
    961         fprintf(TPLFILE,"OpTId %hu (sourceId: %lu) last %d brackets are Scope >\n lg: %hu, opScopeLg: %hu, opLg: %hu\n",  
     959        fprintf(TPLFILE,"%lu.%lu.%lu.%lu OpTId %hu %lu %d %hu %hu %hu ", 
     960                (tmp->IpAddress>>24), 
     961                (tmp->IpAddress<<8>>24), 
     962                (tmp->IpAddress<<16>>24), 
     963                (tmp->IpAddress<<24>>24), 
    962964                tmpOP->templateOptionId, 
    963965                tmpOP->sourceId, 
    964                 tmpOP->optionScopeLg/4, 
     966                tmpOP->optionScopeLg/4, /* last x brackets are scope */ 
    965967                tmpOP->length, 
    966968                tmpOP->optionScopeLg, 
     
    969971        fprintf(TPLFILE,"\n"); 
    970972      } 
    971       fprintf(TPLFILE,"\n"); 
     973      /*      fprintf(TPLFILE,"\n");*/ 
    972974    } 
    973975  }