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

now, only subnets rrd files from routers who are seeing will be created - new scripts in tool

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/routers_mgmt.h

    r28 r31  
    3333#include <sys/ioctl.h> 
    3434 
    35 #include "tplflset_mgmt.h"  
     35#include "tplflset_mgmt.h" 
     36#include "get_conf.h" 
     37#include "prefix_mgmt.h" 
     38#include "V9Header_mgmt.h" 
     39#include "headers_mgmt.h" 
     40#include "rules_mgmt.h" 
    3641 
    3742typedef struct Router * RouterPtr; 
     
    4550} RouterType; 
    4651 
     52struct MyPtrs { 
     53  RouterPtr currentRouterPtr; 
     54  NetFlowV9HeaderPtr currentHeaderV9Ptr; 
     55  unsigned short *offsetV9Ptr; 
     56  unsigned char *ptr_buffer; 
     57  short *currentFlowsetNumberPtr; 
     58  short *currentFlowsetIdPtr; 
     59  DatagramPtr pcktPtr; 
     60  RuleDefPtr *rulesAddressPtr; 
     61  RulesPtr rulesListPtr;                             /* Rules list */ 
     62  struct IPFLowCache *tabIPPtr; 
     63  struct MPLSFlowCache *tabMPLSPtr; 
     64  unsigned long *ipNbPtr; 
     65  unsigned long *mplsNbPtr; 
     66  unsigned long *routersID; 
     67  struct PrefixV4 *currentV4Tab; 
     68  struct PrefixV4 *secondV4Tab; 
     69}; 
     70 
    4771RouterPtr notExistRouter(RouterPtr, unsigned long); 
    48 RouterPtr addRouter(RouterPtr, unsigned long, unsigned long); 
     72RouterPtr addRouter(RouterPtr, unsigned long, unsigned long, struct PrefixV4 *, size_t, struct MyPtrs *); 
    4973TplFlowSetPtr newRouterTplList(); 
    5074TplFlowSetPtr deleteTplFlSet(TplFlowSetPtr); 
     
    5377 
    5478/*int rm_routers(p_routers, unsigned long); 
    55 p_routers search_routers(unsigned long);*/ 
     79  p_routers search_routers(unsigned long);*/ 
    5680 
    5781#endif /* ROUTERS_MGMT_H */