SimGrid  3.13
Versatile Simulation of Distributed Systems
surf_routing.cpp File Reference
#include "surf_routing.hpp"
#include "simgrid/sg_config.h"
#include "storage_interface.hpp"
#include "src/surf/AsImpl.hpp"
#include "src/surf/xml/platf.hpp"
#include <vector>

Namespaces

 simgrid
 
 simgrid::surf
 

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (surf_route, surf,"Routing part of surf")
 
simgrid::surf::NetCardsg_netcard_by_name_or_null (const char *name)
 Retrieve a netcard from its name. More...
 
void sg_platf_new_trace (sg_platf_trace_cbarg_t trace)
 
static xbt_dynar_t simgrid::surf::_recursiveGetOneLinkRoutes (surf::AsImpl *as)
 
void routing_model_create (Link *loopback)
 create the root AS More...
 
static void check_disk_attachment ()
 
void routing_register_callbacks ()
 
void routing_exit (void)
 Frees all memory allocated by the routing module. More...
 

Variables

simgrid::xbt::signal< void(simgrid::surf::NetCard *)> simgrid::surf::netcardCreatedCallbacks
 
simgrid::xbt::signal< void(simgrid::s4u::As *)> simgrid::surf::asCreatedCallbacks
 
xbt_dict_t host_list = nullptr
 A library containing all known hosts. More...
 
int COORD_HOST_LEVEL =0
 
int MSG_FILE_LEVEL
 
int SIMIX_STORAGE_LEVEL
 
int MSG_STORAGE_LEVEL
 
xbt_lib_t as_router_lib
 
int ROUTING_ASR_LEVEL
 
int COORD_ASR_LEVEL
 
int NS3_ASR_LEVEL
 
int ROUTING_PROP_ASR_LEVEL
 
simgrid::surf::RoutingPlatfrouting_platf = NULL
 

Function Documentation

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( surf_route  ,
surf  ,
"Routing part of surf"   
)
simgrid::surf::NetCard* sg_netcard_by_name_or_null ( const char *  name)

Retrieve a netcard from its name.

Netcards are the thing that connect host or routers to the network

void sg_platf_new_trace ( sg_platf_trace_cbarg_t  trace)
void routing_model_create ( Link loopback)

create the root AS

static void check_disk_attachment ( )
static
void routing_register_callbacks ( void  )
void routing_exit ( void  )

Frees all memory allocated by the routing module.

Variable Documentation

int COORD_HOST_LEVEL =0
int MSG_FILE_LEVEL
int SIMIX_STORAGE_LEVEL
int MSG_STORAGE_LEVEL
xbt_lib_t as_router_lib
int ROUTING_ASR_LEVEL
int COORD_ASR_LEVEL
int NS3_ASR_LEVEL
int ROUTING_PROP_ASR_LEVEL
simgrid::surf::RoutingPlatf* routing_platf = NULL