Example of TopologyReader: .read in a topology in a specificed format. More...
#include <ctime>
#include <sstream>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/applications-module.h"
#include "ns3/nix-vector-helper.h"
#include "ns3/topology-read-module.h"
#include <list>
Go to the source code of this file.
Functions | |
static void | SinkRx (Ptr< const Packet > p, const Address &ad) |
Print the TTL of received packet. More... | |
Example of TopologyReader: .read in a topology in a specificed format.
Definition in file topology-example-sim.cc.
Print the TTL of received packet.
p | received packet |
ad | sender address |
Definition at line 76 of file topology-example-sim.cc.
References ns3::Ipv4Header::GetTtl(), and ns3::Packet::PeekHeader().