Changeset 16 for trunk/src/template.c

Show
Ignore:
Timestamp:
03/17/06 17:15:12 (17 years ago)
Author:
andreu
Message:

Friday save

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/template.c

    r15 r16  
    7676  unsigned short tplMsgType = 1; 
    7777 
    78   fprintf (stderr, "NORMAL\n"); 
    7978  buffer2[1]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    8079  buffer2[0]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    8180  getFlowsetId = *((unsigned short*)&buffer2); 
    82   fprintf(stderr,"FlowsetID: %hu \n", getFlowsetId); 
    8381  buffer2[1]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    8482  buffer2[0]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    8583  length = *((unsigned short*)&buffer2); 
    86   fprintf(stderr,"length: %hu \n", length); 
    8784  do { 
    8885    buffer2[1]= *(buf+(*offV9)); (*offV9)++; cpt++; 
     
    9188         existTplId(cr, v9Ptr->sourceId, 
    9289                    *((unsigned short*)&buffer2)))==NULL) { 
    93       fprintf (stderr, "NEW\n"); 
    9490      cTFSPtr = newRouterTplList(); 
    9591      cTFSPtr->next = cr->tplList; 
     
    9793      cr->tplList = cTFSPtr; 
    9894      cTFSPtr->templateFlowSetId = *((unsigned short*)&buffer2); 
    99       fprintf(stderr,"templateFlowSetId: %hu \n", cTFSPtr->templateFlowSetId); 
    10095      cTFSPtr->sourceId = v9Ptr->sourceId; 
    10196      buffer2[1]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    10297      buffer2[0]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    10398      cTFSPtr->fieldCount = *((unsigned short*)&buffer2); 
    104       fprintf(stderr,"fieldCount: %hu \n", cTFSPtr->fieldCount); 
    10599      cpt_fields = 0; 
    106100      for ( i=0; i<cTFSPtr->fieldCount; i++) { 
     
    136130      } 
    137131    } else { /*update*/ 
    138       fprintf (stderr, "UPDATE\n"); 
    139132      ptpltmp = cTFSPtr; 
    140133      if (ptpltmp->prev == NULL) { 
     
    251244  TplOptionPtr ptplotmp; 
    252245 
    253   fprintf (stderr, "\nOPTION\n"); 
    254246  buffer2[1]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    255247  buffer2[0]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    256248  getFlowsetId = *((unsigned short*)&buffer2); 
    257   fprintf(stderr,"FlowsetID: %hu \n", getFlowsetId); 
    258249  buffer2[1]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    259250  buffer2[0]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    260251  length = *((unsigned short*)&buffer2); 
    261   fprintf(stderr,"length: %hu \n", length); 
    262252  do { 
    263253    buffer2[1]= *(buf+(*offV9)); (*offV9)++; cpt++; 
     
    266256         existTplOptId(cr, v9Ptr->sourceId,  
    267257                       *((unsigned short*)&buffer2)))==NULL) { 
    268       fprintf (stderr, "NEW\n"); 
    269258      cTOPtr = newRouterTplOptList(); 
    270259      cTOPtr->next = cr->tplOptList; 
     
    272261      cr->tplOptList = cTOPtr; 
    273262      cTOPtr->templateOptionId = *((unsigned short*)&buffer2); 
    274       fprintf(stderr,"templateOptionId: %hu \n", cTOPtr->templateOptionId); 
    275263      cTOPtr->sourceId = v9Ptr->sourceId; 
    276264      buffer2[1]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    277265      buffer2[0]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    278266      cTOPtr->optionScopeLg = *((unsigned short*)&buffer2); 
    279       fprintf(stderr,"optionScopeLg: %hu \n", cTOPtr->optionScopeLg); 
    280267      buffer2[1]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    281268      buffer2[0]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    282269      cTOPtr->optionLg = *((unsigned short*)&buffer2); 
    283       fprintf(stderr,"optionLg: %hu \n", cTOPtr->optionLg); 
    284270      for ( i=0; i<(((cTOPtr->optionScopeLg)+(cTOPtr->optionLg))/4); i++) { 
    285271        FieldPtr tmp = (FieldPtr) malloc(sizeof(struct Field)); 
     
    287273        buffer2[0]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    288274        tmp->fieldType = *((unsigned short*)&buffer2); 
    289         fprintf (stderr, " (%hu,", tmp->fieldType); 
    290275        buffer2[1]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    291276        buffer2[0]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    292277        tmp->fieldLength = *((unsigned short*)&buffer2); 
    293         fprintf (stderr, "%hu)", tmp->fieldLength); 
    294278        tmp->next = cTOPtr->fieldSet; 
    295279        tmp->prev = NULL; 
     
    301285      } 
    302286      while ((*offV9)%4 != 0) { 
    303         fprintf (stderr, "padding\n"); 
    304287        (*offV9)++; cpt++; 
    305288      } /*padding case*/ 
    306289    } else { /*update */ 
    307       fprintf (stderr, "UPDATE\n"); 
    308290      ptplotmp = cTOPtr; 
    309291      if (ptplotmp->prev == NULL) { 
     
    337319        buffer2[0]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    338320        tmp->fieldType = *((unsigned short*)&buffer2); 
    339         fprintf (stderr, " (%hu,", tmp->fieldType); 
    340321        buffer2[1]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    341322        buffer2[0]= *(buf+(*offV9)); (*offV9)++; cpt++; 
    342323        tmp->fieldLength = *((unsigned short*)&buffer2); 
    343         fprintf (stderr, "%hu) ", tmp->fieldLength); 
    344324        tmp->next = cTOPtr->fieldSet; 
    345325        tmp->prev = NULL; 
     
    351331      } 
    352332      while ((*offV9)%4 != 0) { 
    353         fprintf(stderr,"padding\n"); 
    354333        (*offV9)++; cpt++; 
    355334      } /*padding case*/