Changeset 28 for trunk/src/dataFlowSet.c

Show
Ignore:
Timestamp:
04/11/07 14:55:42 (16 years ago)
Author:
andreu
Message:

debug mode in compilation option - Wno-long-long - copyright update

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/dataFlowSet.c

    r27 r28  
    44 * Authors: ANDREU Francois-Xavier  
    55 * 
    6  * Copyright (C) 2005 GIP RENATER  
     6 * Copyright (C) 2005 2006 2007 GIP RENATER  
    77 */ 
    88 
     
    812812    (*myPtrs->offsetV9Ptr)+=(data_length-4); 
    813813    (*myPtrs->currentFlowsetNumberPtr) = myPtrs->currentHeaderV9Ptr->count; 
    814     fprintf(stderr, "\n unknown template \n"); 
     814#ifdef DEBUG 
     815    fprintf(stderr, " U, r: %lu.%lu.%lu.%lu, sourceId: %lu, TID: %hu", 
     816            (myPtrs->pcktPtr->ipH->srcAdd>>24), 
     817            (myPtrs->pcktPtr->ipH->srcAdd<<8>>24), 
     818            (myPtrs->pcktPtr->ipH->srcAdd<<16>>24), 
     819            (myPtrs->pcktPtr->ipH->srcAdd<<24>>24), 
     820            myPtrs->currentHeaderV9Ptr->sourceId,  
     821            (*myPtrs->currentFlowsetIdPtr) 
     822            ); 
     823#endif 
    815824  } 
    816825  while ( ((*myPtrs->offsetV9Ptr)-48-shift) < data_length ) { 
    817826    (*myPtrs->offsetV9Ptr)++; /* if padding */ 
    818827    paddingCounter++; 
    819     fprintf(stderr, "\n padding \n"); 
    820828    if ( paddingCounter > 8 ) { 
     829#ifdef DEBUG 
     830    fprintf(stderr," padding too high: %d ", paddingCounter); 
     831#endif 
    821832      syslog(LOG_INFO,"padding too high: %d ", paddingCounter); 
    822833      return (-1); 
     
    827838    crazyCounter++; 
    828839  } 
     840#ifdef DEBUG 
     841  if (crazyCounter != 0){ 
     842    fprintf(stderr," crazyCounter: %d ", crazyCounter); 
     843  } 
     844#endif 
    829845  if (crazyCounter!=0) { syslog(LOG_INFO,"crazyCounter: %d ", crazyCounter);} 
    830846  return (data_length+shift);