SURF_ROUTING_RECURSIVE /**< Recursive case: also return gateway informations */
} e_surf_routing_hierarchy_t;
SURF_ROUTING_RECURSIVE /**< Recursive case: also return gateway informations */
} e_surf_routing_hierarchy_t;
xbt_dict_t to_index; /* char* -> network_element_t */
xbt_dict_t bypassRoutes; /* store bypass routes */
routing_model_description_t routing;
e_surf_routing_hierarchy_t hierarchy;
char *name;
xbt_dict_t to_index; /* char* -> network_element_t */
xbt_dict_t bypassRoutes; /* store bypass routes */
routing_model_description_t routing;
e_surf_routing_hierarchy_t hierarchy;
char *name;
/* The parser calls the following functions to inform the routing models
* that a new element is added to the AS currently built.
*
* Of course, only the routing model of this AS is informed, not every ones */
/* The parser calls the following functions to inform the routing models
* that a new element is added to the AS currently built.
*
* Of course, only the routing model of this AS is informed, not every ones */
- void (*parse_PU) (routing_component_t rc, const char *name); /* A host or a router, whatever */
- void (*parse_AS) (routing_component_t rc, const char *name);
- void (*parse_route) (routing_component_t rc, const char *src,
+ void (*parse_PU) (AS_t as, const char *name); /* A host or a router, whatever */
+ void (*parse_AS) (AS_t as, const char *name);
+ void (*parse_route) (AS_t as, const char *src,
e_surf_network_element_type_t rc_type;
} s_network_element_info_t, *network_element_info_t;
typedef int *network_element_t;
struct s_routing_global {
e_surf_network_element_type_t rc_type;
} s_network_element_info_t, *network_element_info_t;
typedef int *network_element_t;
struct s_routing_global {
xbt_dynar_t(*get_route_no_cleanup) (const char *src, const char *dst);
xbt_dynar_t(*get_onelink_routes) (void);
double (*get_latency) (const char *src, const char *dst);
void (*get_route_latency)(const char *src, const char *dst,
xbt_dynar_t *route, double *latency, int cleanup);
e_surf_network_element_type_t(*get_network_element_type) (const char *name);
xbt_dynar_t(*get_route_no_cleanup) (const char *src, const char *dst);
xbt_dynar_t(*get_onelink_routes) (void);
double (*get_latency) (const char *src, const char *dst);
void (*get_route_latency)(const char *src, const char *dst,
xbt_dynar_t *route, double *latency, int cleanup);
e_surf_network_element_type_t(*get_network_element_type) (const char *name);