Changeset 94 for trunk/src/get_conf.h

Show
Ignore:
Timestamp:
02/06/09 16:58:57 (14 years ago)
Author:
andreu
Message:

IPv6 aggregation : prefix reading

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/get_conf.h

    r61 r94  
    5454}; 
    5555 
     56struct PrefixV6{ 
     57  unsigned long start[4]; 
     58  unsigned long end[4]; 
     59  unsigned short mask;     
     60  unsigned short hasSubnet;  
     61  unsigned long sampling;  
     62  unsigned long long flowNbIN;  /* WARNING !!! */ 
     63  unsigned long long bytesNbIN; /* Here, IN means "to the prefix" */ 
     64  unsigned long long pktsNbIN;  
     65  unsigned long long flowNbOUT;  /* WARNING !!! */ 
     66  unsigned long long bytesNbOUT;  /* Here, OUT means "from the prefix" */ 
     67  unsigned long long pktsNbOUT; 
     68  unsigned long long firstCoSIN; /* only the bytes for CoS */ 
     69  unsigned long long secondCoSIN; 
     70  unsigned long long thirdCoSIN; 
     71  unsigned long long fourthCoSIN; 
     72  unsigned long long firstCoSOUT; 
     73  unsigned long long secondCoSOUT; 
     74  unsigned long long thirdCoSOUT; 
     75  unsigned long long fourthCoSOUT; 
     76}; 
     77 
    5678void initConf(char *); 
    5779int longCmp(const void *, const void *); 
     
    5981unsigned short getPrefixV4(char *, struct PrefixV4 *, struct PrefixV4 *, 
    6082                           unsigned short *); 
     83unsigned short getPrefixV6(char *, struct PrefixV6 *); 
    6184unsigned short getAS(char *, struct AS *); 
    6285