diff --git a/samples/main-simple.cc b/samples/main-simple.cc index 19dea31c9..5e47d740e 100644 --- a/samples/main-simple.cc +++ b/samples/main-simple.cc @@ -33,8 +33,12 @@ SmallTests (void) static void GenerateTraffic (UdpSocket *socket, uint32_t size) { + std::cout << "at=" << Simulator::Now ().GetSeconds () << "s, tx bytes=" << size << std::endl; socket->SendDummy (size); - Simulator::Schedule (Seconds (0.5), &GenerateTraffic, socket, size - 50); + if (size > 0) + { + Simulator::Schedule (Seconds (0.5), &GenerateTraffic, socket, size - 50); + } } static void diff --git a/src/node/ipv4-loopback-interface.cc b/src/node/ipv4-loopback-interface.cc index 5019bcecb..0b842946b 100644 --- a/src/node/ipv4-loopback-interface.cc +++ b/src/node/ipv4-loopback-interface.cc @@ -37,7 +37,9 @@ private: Ipv4DummyNetDevice::Ipv4DummyNetDevice (Node *node) : NetDevice (node, MacAddress ()) -{} +{ + SetMtu (10000); +} Node * Ipv4DummyNetDevice::PeekNode (void) const {