A Discrete-Event Network Simulator
API
ipv4-static-routing.cc File Reference
#include <iomanip>
#include "ns3/log.h"
#include "ns3/names.h"
#include "ns3/packet.h"
#include "ns3/node.h"
#include "ns3/simulator.h"
#include "ns3/ipv4-route.h"
#include "ns3/output-stream-wrapper.h"
#include "ipv4-static-routing.h"
#include "ipv4-routing-table-entry.h"
+ Include dependency graph for ipv4-static-routing.cc:

Go to the source code of this file.

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Macros

#define NS_LOG_APPEND_CONTEXT
 

Macro Definition Documentation

◆ NS_LOG_APPEND_CONTEXT

#define NS_LOG_APPEND_CONTEXT
Value:
if (m_ipv4 && m_ipv4->GetObject<Node> ()) { \
std::clog << Simulator::Now ().GetSeconds () \
<< " [node " << m_ipv4->GetObject<Node> ()->GetId () << "] "; }
double GetSeconds(void) const
Get an approximation of the time stored in this instance in the indicated unit.
Definition: nstime.h:379
Time Now(void)
create an ns3::Time instance which contains the current simulation time.
Definition: simulator.cc:287

Definition at line 21 of file ipv4-static-routing.cc.