A Discrete-Event Network Simulator
API
topology-example-sim.cc File Reference

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>
+ Include dependency graph for topology-example-sim.cc:

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...
 

Detailed Description

Example of TopologyReader: .read in a topology in a specificed format.

Definition in file topology-example-sim.cc.

Function Documentation

◆ SinkRx()

static void SinkRx ( Ptr< const Packet p,
const Address ad 
)
static

Print the TTL of received packet.

Parameters
preceived packet
adsender address

Definition at line 76 of file topology-example-sim.cc.

References ns3::Ipv4Header::GetTtl(), and ns3::Packet::PeekHeader().

+ Here is the call graph for this function: