}
#endif
+#ifdef HAVE_TRACING
+static void ns3_action_set_category(surf_action_t action, const char *category)
+{
+ action->category = xbt_strdup (category);
+}
+#endif
+
void surf_network_model_init_NS3(const char *filename)
{
if (surf_network_model)
surf_network_model->action_unref = action_unref;
surf_network_model->extension.network.communicate = ns3_communicate;
+#ifdef HAVE_TRACING
+ surf_network_model->set_category = ns3_action_set_category;
+#endif
+
/* Added the initialization for NS3 interface */
if (ns3_initialize(xbt_cfg_get_string(_surf_cfg_set,"ns3/TcpModel"))) {