A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
NeighborCacheExample Class Reference

neighbor Cache example class. More...

+ Collaboration diagram for NeighborCacheExample:

Public Member Functions

 NeighborCacheExample ()
 
void CommandSetup (int argc, char **argv)
 description the command-line parameters.
 
void Run ()
 Run the example.
 

Private Member Functions

void ReceivePacket (Ptr< const Packet > pkt, const Address &from, const Address &dst, const SeqTsSizeHeader &header)
 Print the information of receive data.
 

Private Attributes

bool m_enableLog {false}
 Enable ArpL3Protocol and Icmpv6L4Protocol logging.
 
bool m_noGenerate {false}
 do not generate neighbor cache automatically
 
bool m_sendTraffic {false}
 send data stream from n0 to n1
 
bool m_useChannel {false}
 Generate neighbor cache for specific Channel.
 
bool m_useInterfaceContainer
 Generate neighbor cache for specific interfaceContainer.
 
bool m_useIpv6 {false}
 Use IPv6 instead of IPv4.
 
bool m_useNetDeviceContainer
 Generate neighbor cache for specific netDeviceContainer.
 

Detailed Description

neighbor Cache example class.

It handles the creation and run of an example.

Definition at line 279 of file neighbor-cache-example.cc.

Constructor & Destructor Documentation

◆ NeighborCacheExample()

NeighborCacheExample::NeighborCacheExample ( )

Definition at line 320 of file neighbor-cache-example.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

◆ CommandSetup()

void NeighborCacheExample::CommandSetup ( int argc,
char ** argv )

description the command-line parameters.

Parameters
argcThe argument count.
argvThe argument vector.

Definition at line 335 of file neighbor-cache-example.cc.

References m_enableLog, m_noGenerate, m_sendTraffic, m_useChannel, m_useInterfaceContainer, m_useIpv6, and m_useNetDeviceContainer.

◆ ReceivePacket()

void NeighborCacheExample::ReceivePacket ( Ptr< const Packet > pkt,
const Address & from,
const Address & dst,
const SeqTsSizeHeader & header )
private

Print the information of receive data.

Parameters
pktThe received packet.
fromThe sender.
dstThe receiver.
headerThe header with a sequence, a timestamp, and a "size" attribute

Definition at line 326 of file neighbor-cache-example.cc.

Referenced by Run().

+ Here is the caller graph for this function:

◆ Run()

Member Data Documentation

◆ m_enableLog

bool NeighborCacheExample::m_enableLog {false}
private

Enable ArpL3Protocol and Icmpv6L4Protocol logging.

Definition at line 310 of file neighbor-cache-example.cc.

Referenced by CommandSetup(), and Run().

◆ m_noGenerate

bool NeighborCacheExample::m_noGenerate {false}
private

do not generate neighbor cache automatically

Definition at line 316 of file neighbor-cache-example.cc.

Referenced by CommandSetup(), and Run().

◆ m_sendTraffic

bool NeighborCacheExample::m_sendTraffic {false}
private

send data stream from n0 to n1

Definition at line 317 of file neighbor-cache-example.cc.

Referenced by CommandSetup(), and Run().

◆ m_useChannel

bool NeighborCacheExample::m_useChannel {false}
private

Generate neighbor cache for specific Channel.

Definition at line 311 of file neighbor-cache-example.cc.

Referenced by CommandSetup(), and Run().

◆ m_useInterfaceContainer

bool NeighborCacheExample::m_useInterfaceContainer
private
Initial value:
{
false}

Generate neighbor cache for specific interfaceContainer.

Definition at line 314 of file neighbor-cache-example.cc.

Referenced by CommandSetup(), and Run().

◆ m_useIpv6

bool NeighborCacheExample::m_useIpv6 {false}
private

Use IPv6 instead of IPv4.

Definition at line 309 of file neighbor-cache-example.cc.

Referenced by CommandSetup(), and Run().

◆ m_useNetDeviceContainer

bool NeighborCacheExample::m_useNetDeviceContainer
private
Initial value:
{
false}

Generate neighbor cache for specific netDeviceContainer.

Definition at line 312 of file neighbor-cache-example.cc.

Referenced by CommandSetup(), and Run().


The documentation for this class was generated from the following file: