Changeset 32 for trunk/src/dataFlowSet.c

Show
Ignore:
Timestamp:
04/23/07 16:33:04 (16 years ago)
Author:
andreu
Message:

unregistred subnet printing

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/dataFlowSet.c

    r30 r32  
    725725              /*     -  prefix not referenced but not allowed to be routed */ 
    726726              /*     -  spoofing                                           */ 
    727 /*            fprintf(stderr, "%lu.%lu.%lu.%lu/%hu -> %lu.%lu.%lu.%lu/%hu R:%lu.%lu.%lu.%lu \n", */ 
    728 /*                    (agCache.v4AdS>>24), */ 
    729 /*                    (agCache.v4AdS<<8>>24),  */ 
    730 /*                    (agCache.v4AdS<<16>>24),  */ 
    731 /*                    (agCache.v4AdS<<24>>24),  */ 
    732 /*                    (agCache.maskS),  */ 
    733 /*                    (agCache.v4AdD>>24),  */ 
    734 /*                    (agCache.v4AdD<<8>>24),  */ 
    735 /*                    (agCache.v4AdD<<16>>24),  */ 
    736 /*                    (agCache.v4AdD<<24>>24),  */ 
    737 /*                    (agCache.maskD),  */ 
    738 /*                    (myPtrs->pcktPtr->ipH->srcAdd>>24),  */ 
    739 /*                    (myPtrs->pcktPtr->ipH->srcAdd<<8>>24), */ 
    740 /*                    (myPtrs->pcktPtr->ipH->srcAdd<<16>>24), */ 
    741 /*                    (myPtrs->pcktPtr->ipH->srcAdd<<24>>24) */ 
    742 /*                    ); */ 
     727#ifdef PRINTUNKNOWNSUBNET  
     728              fprintf(stderr, "%lu.%lu.%lu.%lu/%hu -> %lu.%lu.%lu.%lu/%hu (R:%lu.%lu.%lu.%lu) \n", 
     729                      (agCache.v4AdS>>24), 
     730                      (agCache.v4AdS<<8>>24),  
     731                      (agCache.v4AdS<<16>>24),  
     732                      (agCache.v4AdS<<24>>24),  
     733                      (agCache.maskS),  
     734                      (agCache.v4AdD>>24),  
     735                      (agCache.v4AdD<<8>>24),  
     736                      (agCache.v4AdD<<16>>24),  
     737                      (agCache.v4AdD<<24>>24),  
     738                      (agCache.maskD),  
     739                      (myPtrs->pcktPtr->ipH->srcAdd>>24),  
     740                      (myPtrs->pcktPtr->ipH->srcAdd<<8>>24), 
     741                      (myPtrs->pcktPtr->ipH->srcAdd<<16>>24), 
     742                      (myPtrs->pcktPtr->ipH->srcAdd<<24>>24) 
     743                      ); 
     744#endif 
    743745            } 
    744746          } 
     
    827829      } 
    828830    } /* end of the while on one flow record */ 
    829  
    830     /* new place */ 
    831      
     831    
    832832    while ( ((*myPtrs->offsetV9Ptr)-48-shift) < data_length ) { 
    833833      (*myPtrs->offsetV9Ptr)++; /* if padding */ 
     
    944944    } 
    945945  } 
    946   /* old place */ 
    947  
    948946}