A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
dhcp6-example.cc File Reference
#include "ns3/applications-module.h"
#include "ns3/core-module.h"
#include "ns3/csma-module.h"
#include "ns3/enum.h"
#include "ns3/internet-apps-module.h"
#include "ns3/internet-module.h"
#include "ns3/mobility-module.h"
#include "ns3/network-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/ssid.h"
#include "ns3/wifi-helper.h"
#include "ns3/yans-wifi-helper.h"
Include dependency graph for dhcp6-example.cc:

Go to the source code of this file.

Functions

void SetInterfaceDown (Ptr< Node > node, uint32_t interface)
 Brings down an IPv6 interface on a given node.
void SetInterfaceUp (Ptr< Node > node, uint32_t interface)
 Brings up an IPv6 interface on a given node.

Detailed Description

Usage

$ ./ns3 run "dhcp6-example [Program Options]"

Program Options

--verbose
Turn on the logs [false]
--enablePcap
Enable/Disable pcap file generation [false]

Definition in file dhcp6-example.cc.

Function Documentation

◆ SetInterfaceDown()

void SetInterfaceDown ( Ptr< Node > node,
uint32_t interface )

Brings down an IPv6 interface on a given node.

Retrieves the Ipv6 object aggregated to the specified node and marks the given interface as down, disabling it from sending or receiving packets.

Parameters
nodePointer to the ns-3 Node whose interface will be set down.
interfaceIndex of the IPv6 interface to disable.

Definition at line 96 of file dhcp6-example.cc.

◆ SetInterfaceUp()

void SetInterfaceUp ( Ptr< Node > node,
uint32_t interface )

Brings up an IPv6 interface on a given node.

Retrieves the Ipv6 object aggregated to the specified node and marks the given interface as up, enabling it to send and receive packets.

Parameters
nodePointer to the ns-3 Node whose interface will be set up.
interfaceIndex of the IPv6 interface to enable.

Definition at line 111 of file dhcp6-example.cc.

References SetUp().

Here is the call graph for this function: