Changeset 74 for trunk/src/dataFlowSet.c

Show
Ignore:
Timestamp:
09/26/08 16:17:28 (14 years ago)
Author:
andreu
Message:

new checkpoint on flowset length value in dataFlowSet.c and template.c

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/dataFlowSet.c

    r73 r74  
    9191  (*myPtrs->offsetV9Ptr)++; 
    9292  data_length = *((unsigned short*)&buffer2); 
     93  if (data_length == 0) { 
     94      syslog(LOG_INFO, "data flowset length null; all next informations of this data flowset are not considered! flowset ID: %hu, from router: %lu.%lu.%lu.%lu", 
     95             (*myPtrs->currentFlowsetIdPtr), 
     96             (myPtrs->pcktPtr->ipH->srcAdd>>24), 
     97             (myPtrs->pcktPtr->ipH->srcAdd<<8>>24), 
     98             (myPtrs->pcktPtr->ipH->srcAdd<<16>>24), 
     99             (myPtrs->pcktPtr->ipH->srcAdd<<24>>24)); 
     100      return (-1); 
     101 
     102  } 
    93103 
    94104  if ( (tmp=existTplId(myPtrs->currentRouterPtr,