Show
Ignore:
Timestamp:
10/09/07 12:01:26 (15 years ago)
Author:
andreu
Message:

new aggregation method, new configuration files, corrections on the php script for graph generation.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/routers_mgmt.h

    r57 r58  
    3232#include <errno.h> 
    3333#include <sys/ioctl.h> 
     34#include <syslog.h> 
    3435 
     36#include "renetcolParam.h" 
    3537#include "tplflset_mgmt.h" 
    3638#include "get_conf.h" 
     
    4244typedef struct Router * RouterPtr; 
    4345typedef struct Router { 
    44   unsigned long IpAddress; 
    45   TplFlowSetPtr tplList; 
    46   TplOptionPtr tplOptList; 
    47   unsigned long sampled; 
     46  unsigned long IpAddress; /* IP address used for NDE (often a loopback) */ 
     47  TplFlowSetPtr tplList;   /* list of the template definition */ 
     48  TplOptionPtr tplOptList; /* list of the optional template definitions */ 
     49  unsigned long sampled; /* sampling value: (one for) 10, 100 or 1(full mode)*/ 
     50  unsigned short snmpIndexList[MAX_SNMP_INDEX]; /* 0:Backbone, 1:Customer */ 
    4851  RouterPtr next; 
    4952  RouterPtr prev; 
     
    6770 
    6871RouterPtr notExistRouter(RouterPtr, unsigned long); 
    69 RouterPtr addRouter(RouterPtr, unsigned long, unsigned long, struct PrefixV4 *, size_t, struct MyPtrs *); 
     72RouterPtr addRouter(RouterPtr, unsigned long); 
     73RouterPtr updateRouter(RouterPtr, unsigned long, unsigned long); 
    7074TplFlowSetPtr newRouterTplList(); 
    7175TplFlowSetPtr deleteTplFlSet(TplFlowSetPtr); 
    7276TplOptionPtr newRouterTplOptList(); 
    7377TplOptionPtr deleteTplOption(TplOptionPtr); 
     78int getSNMPIndexList(char *, RouterPtr); 
    7479 
    7580/*int rm_routers(p_routers, unsigned long);