A Discrete-Event Network Simulator
API
ipv4-click-routing-test.cc File Reference

Click test suite. More...

#include "ns3/click-internet-stack-helper.h"
#include "ns3/ipv4-click-routing.h"
#include "ns3/ipv4-l3-protocol.h"
#include "ns3/log.h"
#include "ns3/node.h"
#include "ns3/simple-net-device.h"
#include "ns3/test.h"
#include <click/simclick.h>
#include <string>
+ Include dependency graph for ipv4-click-routing-test.cc:

Go to the source code of this file.

Classes

class  ClickIfidFromNameTest
 Click interface ID from name test. More...
 
class  ClickIfidFromNameTestSuite
 Click interface ID from name test. More...
 
class  ClickIpMacAddressFromNameTest
 Click IP MAC address from name test. More...
 
class  ClickTrivialTest
 Click trivial test. More...
 

Functions

static void AddClickInternetStack (Ptr< Node > node)
 Add Click Internet stack. More...
 
static void AddNetworkDevice (Ptr< Node > node, Mac48Address macaddr, Ipv4Address ipv4addr, Ipv4Mask ipv4mask)
 Add network device. More...
 

Variables

static ClickIfidFromNameTestSuite g_ipv4ClickRoutingTestSuite
 Static variable for test initialization. More...
 

Detailed Description

Click test suite.

Definition in file ipv4-click-routing-test.cc.

Function Documentation

◆ AddClickInternetStack()

static void AddClickInternetStack ( Ptr< Node node)
static

Add Click Internet stack.

Parameters
nodeNode.

Definition at line 45 of file ipv4-click-routing-test.cc.

References nsclick-simple-lan::internet.

Referenced by ClickIfidFromNameTest::DoRun(), ClickIpMacAddressFromNameTest::DoRun(), and ClickTrivialTest::DoRun().

+ Here is the caller graph for this function:

◆ AddNetworkDevice()

static void AddNetworkDevice ( Ptr< Node node,
Mac48Address  macaddr,
Ipv4Address  ipv4addr,
Ipv4Mask  ipv4mask 
)
static

Add network device.

Parameters
nodeNode.
macaddrMAC address.
ipv4addrIPv4 address.
ipv4maskIPv4 mask.

Definition at line 61 of file ipv4-click-routing-test.cc.

References ns3::Node::AddDevice(), ns3::Object::GetObject(), and nsclick-simple-lan::ipv4.

Referenced by ClickIfidFromNameTest::DoRun(), ClickIpMacAddressFromNameTest::DoRun(), and ClickTrivialTest::DoRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ g_ipv4ClickRoutingTestSuite

ClickIfidFromNameTestSuite g_ipv4ClickRoutingTestSuite
static

Static variable for test initialization.

Definition at line 255 of file ipv4-click-routing-test.cc.