From c50d86a4bbb513e187f23767889ae7b6312bd573 Mon Sep 17 00:00:00 2001 From: Yana Podkosova Date: Thu, 12 Mar 2009 17:12:11 +0300 Subject: [PATCH] Added test for Hwmp-rtable --- examples/routing-table-test.cc | 183 ++++++++++++++++++ examples/wscript | 4 + .../wifi/mesh-wifi-prep-information-element.h | 2 +- 3 files changed, 188 insertions(+), 1 deletion(-) create mode 100644 examples/routing-table-test.cc diff --git a/examples/routing-table-test.cc b/examples/routing-table-test.cc new file mode 100644 index 000000000..a84bf8bff --- /dev/null +++ b/examples/routing-table-test.cc @@ -0,0 +1,183 @@ +#include +#include +#include "ns3/core-module.h" +#include +#include "ns3/mac48-address.h" +#include "ns3/simulator-module.h" +#include +#include "ns3/hwmp-rtable.h" + + + +using namespace ns3; + +NS_LOG_COMPONENT_DEFINE("RoutingTableTest"); + + +void +aux_function(Ptr ptr,Mac48Address addr,std::vector *results, std::vector