#ifndef _NS3_INTERFACE_H
#define _NS3_INTERFACE_H
-#include "xbt/log.h"
-#include "xbt/dynar.h"
-#include "xbt/misc.h"
-#include "xbt/sysdep.h"
-#include <xbt/Extendable.hpp>
-
#include <simgrid/s4u/host.hpp>
-#include <surf/surf_routing.h>
namespace simgrid{
namespace surf{
#ifndef _NS3_SIM_H
#define _NS3_SIM_H
-#ifdef __cplusplus
-
#include <cstdint>
#include "ns3_interface.h"
-#include <ns3/core-module.h>
-#include <ns3/node.h>
#include <ns3/global-route-manager.h>
#include <ns3/csma-helper.h>
#include <ns3/internet-stack-helper.h>
#include <ns3/ipv4-address-helper.h>
#include <ns3/point-to-point-helper.h>
#include <ns3/packet-sink-helper.h>
-#include <ns3/inet-socket-address.h>
#include <ns3/tcp-socket-factory.h>
class SgFlow {
return key;
}
-#endif /* __cplusplus */
-
#endif
/** @brief Add a "router" to the network element list */
void sg_platf_new_router(sg_platf_router_cbarg_t router)
{
- using simgrid::kernel::routing::AsCluster;
simgrid::kernel::routing::AsImpl* current_routing = routing_get_current();
if (current_routing->hierarchy_ == simgrid::kernel::routing::AsImpl::RoutingMode::unset)
xbt_lib_set(as_router_lib, router->id, COORD_ASR_LEVEL, (void *) ctn);
}
- auto cluster = dynamic_cast<AsCluster*>(current_routing);
+ auto cluster = dynamic_cast<simgrid::kernel::routing::AsCluster*>(current_routing);
if(cluster != nullptr)
cluster->router_ = static_cast<simgrid::kernel::routing::NetCard*>(xbt_lib_get_or_null(as_router_lib, router->id, ROUTING_ASR_LEVEL));