29 #include "ns3/application-container.h" 30 #include "ns3/net-device-container.h" 31 #include "ns3/object-factory.h" 32 #include "ns3/ipv4-address.h" 33 #include "ns3/ipv4-interface-container.h" holds a vector of ns3::Application pointers.
void SetServerAttribute(std::string name, const AttributeValue &value)
Set DHCP server attributes.
ApplicationContainer InstallDhcpServer(Ptr< NetDevice > netDevice, Ipv4Address serverAddr, Ipv4Address poolAddr, Ipv4Mask poolMask, Ipv4Address minAddr, Ipv4Address maxAddr, Ipv4Address gateway=Ipv4Address())
Install DHCP server of a node / NetDevice.
Smart pointer class similar to boost::intrusive_ptr.
void SetClientAttribute(std::string name, const AttributeValue &value)
Set DHCP client attributes.
holds a vector of std::pair of Ptr<Ipv4> and interface index.
std::list< Ipv4Address > m_fixedAddresses
list of fixed addresses already allocated.
a class to represent an Ipv4 address mask
The helper class used to configure and install DHCP applications on nodes.
Hold a value for an Attribute.
std::list< std::pair< Ipv4Address, Ipv4Address > > m_addressPools
list of address pools.
Ipv4InterfaceContainer InstallFixedAddress(Ptr< NetDevice > netDevice, Ipv4Address addr, Ipv4Mask mask)
Assign a fixed IP addresses to a net device.
ObjectFactory m_serverFactory
DHCP server factory.
holds a vector of ns3::NetDevice pointers
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< Application > InstallDhcpClientPriv(Ptr< NetDevice > netDevice) const
Function to install DHCP client on a node.
ObjectFactory m_clientFactory
DHCP client factory.
Instantiate subclasses of ns3::Object.
Ipv4 addresses are stored in host order in this class.
ApplicationContainer InstallDhcpClient(Ptr< NetDevice > netDevice) const
Install DHCP client of a nodes / NetDevice.