A Discrete-Event Network Simulator
API
ipv4-static-routing.cc File Reference
#include "ipv4-static-routing.h"
#include "ipv4-route.h"
#include "ipv4-routing-table-entry.h"
#include "ns3/log.h"
#include "ns3/names.h"
#include "ns3/node.h"
#include "ns3/output-stream-wrapper.h"
#include "ns3/packet.h"
#include "ns3/simulator.h"
#include <iomanip>
+ 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() const
Get an approximation of the time stored in this instance in the indicated unit.
Definition: nstime.h:403
Time Now()
create an ns3::Time instance which contains the current simulation time.
Definition: simulator.cc:305

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