summaryrefslogtreecommitdiffstats
path: root/mmss/network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mmss/network.cpp')
-rw-r--r--mmss/network.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/mmss/network.cpp b/mmss/network.cpp
index 7550541..6e47240 100644
--- a/mmss/network.cpp
+++ b/mmss/network.cpp
@@ -34,6 +34,11 @@
namespace MMSS {
+network_t::network_t(context_t *mmss0, const std::string &name0, unsigned rand_seed0)
+ : mmss(mmss0), name(name0), mtu(1500), rand_seed(rand_seed0), etx_min(1), etx_max(1) {
+ mmss->network(this);
+}
+
float network_t::get_etx() const {
if (etx_min == etx_max)
return etx_min;