INET Framework for OMNeT++/OMNEST
inet::DHCPOptions Class Reference

Class generated from inet/applications/dhcp/DHCPMessage.msg:74 by nedtool. More...

#include <DHCPMessage_m.h>

Inheritance diagram for inet::DHCPOptions:

Public Member Functions

 DHCPOptions ()
 
 DHCPOptions (const DHCPOptions &other)
 
virtual ~DHCPOptions ()
 
DHCPOptionsoperator= (const DHCPOptions &other)
 
virtual DHCPOptionsdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual int getMessageType () const
 
virtual void setMessageType (int messageType)
 
virtual const char * getHostName () const
 
virtual void setHostName (const char *hostName)
 
virtual void setParameterRequestListArraySize (unsigned int size)
 
virtual unsigned int getParameterRequestListArraySize () const
 
virtual int getParameterRequestList (unsigned int k) const
 
virtual void setParameterRequestList (unsigned int k, int parameterRequestList)
 
virtual MACAddressgetClientIdentifier ()
 
virtual const MACAddressgetClientIdentifier () const
 
virtual void setClientIdentifier (const MACAddress &clientIdentifier)
 
virtual IPv4AddressgetRequestedIp ()
 
virtual const IPv4AddressgetRequestedIp () const
 
virtual void setRequestedIp (const IPv4Address &requestedIp)
 
virtual IPv4AddressgetSubnetMask ()
 
virtual const IPv4AddressgetSubnetMask () const
 
virtual void setSubnetMask (const IPv4Address &subnetMask)
 
virtual void setRouterArraySize (unsigned int size)
 
virtual unsigned int getRouterArraySize () const
 
virtual IPv4AddressgetRouter (unsigned int k)
 
virtual const IPv4AddressgetRouter (unsigned int k) const
 
virtual void setRouter (unsigned int k, const IPv4Address &router)
 
virtual void setDnsArraySize (unsigned int size)
 
virtual unsigned int getDnsArraySize () const
 
virtual IPv4AddressgetDns (unsigned int k)
 
virtual const IPv4AddressgetDns (unsigned int k) const
 
virtual void setDns (unsigned int k, const IPv4Address &dns)
 
virtual void setNtpArraySize (unsigned int size)
 
virtual unsigned int getNtpArraySize () const
 
virtual IPv4AddressgetNtp (unsigned int k)
 
virtual const IPv4AddressgetNtp (unsigned int k) const
 
virtual void setNtp (unsigned int k, const IPv4Address &ntp)
 
virtual IPv4AddressgetServerIdentifier ()
 
virtual const IPv4AddressgetServerIdentifier () const
 
virtual void setServerIdentifier (const IPv4Address &serverIdentifier)
 
virtual ::omnetpp::simtime_t getRenewalTime () const
 
virtual void setRenewalTime (::omnetpp::simtime_t renewalTime)
 
virtual ::omnetpp::simtime_t getRebindingTime () const
 
virtual void setRebindingTime (::omnetpp::simtime_t rebindingTime)
 
virtual ::omnetpp::simtime_t getLeaseTime () const
 
virtual void setLeaseTime (::omnetpp::simtime_t leaseTime)
 

Protected Member Functions

bool operator== (const DHCPOptions &)
 

Protected Attributes

int messageType
 
::omnetpp::opp_string hostName
 
int * parameterRequestList
 
unsigned int parameterRequestList_arraysize
 
MACAddress clientIdentifier
 
IPv4Address requestedIp
 
IPv4Address subnetMask
 
IPv4Addressrouter
 
unsigned int router_arraysize
 
IPv4Addressdns
 
unsigned int dns_arraysize
 
IPv4Addressntp
 
unsigned int ntp_arraysize
 
IPv4Address serverIdentifier
 
::omnetpp::simtime_t renewalTime
 
::omnetpp::simtime_t rebindingTime
 
::omnetpp::simtime_t leaseTime
 

Private Member Functions

void copy (const DHCPOptions &other)
 

Detailed Description

Class generated from inet/applications/dhcp/DHCPMessage.msg:74 by nedtool.

//
// Represents options in a DHCP message. In the DHCP protocol, options are
// added to the message as tagged data items. In the simulation, this DHCPOptions
// class statically holds the union of all options actually used by the DHCP
// protocol models. Options absent from a packet are represented by empty/unfilled
// DHCPOptions fields.
//
// @see DHCPMessage, DHCPClient, DHCPServer
//
class DHCPOptions
{
    int messageType @enum(DHCPMessageType); // to convey the type of the DHCP message
    string hostName; // name of the client
    int parameterRequestList[]; // used by a DHCP client to request values for specified configuration parameters
    MACAddress clientIdentifier; // used by DHCP clients to specify their unique identifier
    IPv4Address requestedIp; // used in a client request (DHCPDISCOVER) to allow the client to request that a particular IP address be assigned
    IPv4Address subnetMask; // client's subnet mask
    IPv4Address router[]; // IP addresses for routers on the client's subnet
    IPv4Address dns[]; // list of DNSs available to the client
    IPv4Address ntp[]; // list of IP addresses indicating NTP servers available to the client
    IPv4Address serverIdentifier; // client use this field as the destination address for any unicast DHCP messages to the server
    simtime_t renewalTime; // time interval (T1) from address assignment until the client transitions to the RENEWING state
    simtime_t rebindingTime; // time interval (T2) from address assignment until the client transitions to the REBINDING state
    simtime_t leaseTime; // request for lease time (client), offered lease time (server)
}

Constructor & Destructor Documentation

inet::DHCPOptions::DHCPOptions ( )
inet::DHCPOptions::DHCPOptions ( const DHCPOptions other)
virtual inet::DHCPOptions::~DHCPOptions ( )
virtual

Member Function Documentation

void inet::DHCPOptions::copy ( const DHCPOptions other)
private
virtual DHCPOptions* inet::DHCPOptions::dup ( ) const
inlineoverridevirtual
183 {return new DHCPOptions(*this);}
virtual MACAddress& inet::DHCPOptions::getClientIdentifier ( )
virtual
virtual const MACAddress& inet::DHCPOptions::getClientIdentifier ( ) const
inlinevirtual

Referenced by getClientIdentifier().

197 {return const_cast<DHCPOptions*>(this)->getClientIdentifier();}
virtual MACAddress & getClientIdentifier()
virtual IPv4Address& inet::DHCPOptions::getDns ( unsigned int  k)
virtual
virtual const IPv4Address& inet::DHCPOptions::getDns ( unsigned int  k) const
inlinevirtual

Referenced by getDns().

213 {return const_cast<DHCPOptions*>(this)->getDns(k);}
virtual IPv4Address & getDns(unsigned int k)
const double k
Definition: QAM16Modulation.cc:24
virtual unsigned int inet::DHCPOptions::getDnsArraySize ( ) const
virtual
virtual const char* inet::DHCPOptions::getHostName ( ) const
virtual
virtual ::omnetpp::simtime_t inet::DHCPOptions::getLeaseTime ( ) const
virtual int inet::DHCPOptions::getMessageType ( ) const
virtual
virtual IPv4Address& inet::DHCPOptions::getNtp ( unsigned int  k)
virtual
virtual const IPv4Address& inet::DHCPOptions::getNtp ( unsigned int  k) const
inlinevirtual

Referenced by getNtp().

218 {return const_cast<DHCPOptions*>(this)->getNtp(k);}
virtual IPv4Address & getNtp(unsigned int k)
const double k
Definition: QAM16Modulation.cc:24
virtual unsigned int inet::DHCPOptions::getNtpArraySize ( ) const
virtual
virtual int inet::DHCPOptions::getParameterRequestList ( unsigned int  k) const
virtual
virtual unsigned int inet::DHCPOptions::getParameterRequestListArraySize ( ) const
virtual
virtual ::omnetpp::simtime_t inet::DHCPOptions::getRebindingTime ( ) const
virtual ::omnetpp::simtime_t inet::DHCPOptions::getRenewalTime ( ) const
virtual IPv4Address& inet::DHCPOptions::getRequestedIp ( )
virtual
virtual const IPv4Address& inet::DHCPOptions::getRequestedIp ( ) const
inlinevirtual

Referenced by getRequestedIp().

200 {return const_cast<DHCPOptions*>(this)->getRequestedIp();}
virtual IPv4Address & getRequestedIp()
virtual IPv4Address& inet::DHCPOptions::getRouter ( unsigned int  k)
virtual
virtual const IPv4Address& inet::DHCPOptions::getRouter ( unsigned int  k) const
inlinevirtual

Referenced by getRouter().

208 {return const_cast<DHCPOptions*>(this)->getRouter(k);}
const double k
Definition: QAM16Modulation.cc:24
virtual IPv4Address & getRouter(unsigned int k)
virtual unsigned int inet::DHCPOptions::getRouterArraySize ( ) const
virtual
virtual IPv4Address& inet::DHCPOptions::getServerIdentifier ( )
virtual
virtual const IPv4Address& inet::DHCPOptions::getServerIdentifier ( ) const
inlinevirtual

Referenced by getServerIdentifier().

221 {return const_cast<DHCPOptions*>(this)->getServerIdentifier();}
virtual IPv4Address & getServerIdentifier()
virtual IPv4Address& inet::DHCPOptions::getSubnetMask ( )
virtual
virtual const IPv4Address& inet::DHCPOptions::getSubnetMask ( ) const
inlinevirtual

Referenced by getSubnetMask().

203 {return const_cast<DHCPOptions*>(this)->getSubnetMask();}
virtual IPv4Address & getSubnetMask()
DHCPOptions& inet::DHCPOptions::operator= ( const DHCPOptions other)
bool inet::DHCPOptions::operator== ( const DHCPOptions )
protected
virtual void inet::DHCPOptions::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Referenced by inet::doParsimPacking().

virtual void inet::DHCPOptions::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual

Referenced by inet::doParsimUnpacking().

virtual void inet::DHCPOptions::setClientIdentifier ( const MACAddress clientIdentifier)
virtual
virtual void inet::DHCPOptions::setDns ( unsigned int  k,
const IPv4Address dns 
)
virtual
virtual void inet::DHCPOptions::setDnsArraySize ( unsigned int  size)
virtual
virtual void inet::DHCPOptions::setHostName ( const char *  hostName)
virtual
virtual void inet::DHCPOptions::setLeaseTime ( ::omnetpp::simtime_t  leaseTime)
virtual
virtual void inet::DHCPOptions::setNtp ( unsigned int  k,
const IPv4Address ntp 
)
virtual
virtual void inet::DHCPOptions::setNtpArraySize ( unsigned int  size)
virtual
virtual void inet::DHCPOptions::setParameterRequestList ( unsigned int  k,
int  parameterRequestList 
)
virtual
virtual void inet::DHCPOptions::setParameterRequestListArraySize ( unsigned int  size)
virtual
virtual void inet::DHCPOptions::setRebindingTime ( ::omnetpp::simtime_t  rebindingTime)
virtual
virtual void inet::DHCPOptions::setRenewalTime ( ::omnetpp::simtime_t  renewalTime)
virtual
virtual void inet::DHCPOptions::setRequestedIp ( const IPv4Address requestedIp)
virtual
virtual void inet::DHCPOptions::setRouter ( unsigned int  k,
const IPv4Address router 
)
virtual
virtual void inet::DHCPOptions::setRouterArraySize ( unsigned int  size)
virtual
virtual void inet::DHCPOptions::setServerIdentifier ( const IPv4Address serverIdentifier)
virtual
virtual void inet::DHCPOptions::setSubnetMask ( const IPv4Address subnetMask)
virtual

Member Data Documentation

MACAddress inet::DHCPOptions::clientIdentifier
protected
IPv4Address* inet::DHCPOptions::dns
protected
unsigned int inet::DHCPOptions::dns_arraysize
protected
::omnetpp::opp_string inet::DHCPOptions::hostName
protected
::omnetpp::simtime_t inet::DHCPOptions::leaseTime
protected
int inet::DHCPOptions::messageType
protected
IPv4Address* inet::DHCPOptions::ntp
protected
unsigned int inet::DHCPOptions::ntp_arraysize
protected
int* inet::DHCPOptions::parameterRequestList
protected
unsigned int inet::DHCPOptions::parameterRequestList_arraysize
protected
::omnetpp::simtime_t inet::DHCPOptions::rebindingTime
protected
::omnetpp::simtime_t inet::DHCPOptions::renewalTime
protected
IPv4Address inet::DHCPOptions::requestedIp
protected
IPv4Address* inet::DHCPOptions::router
protected
unsigned int inet::DHCPOptions::router_arraysize
protected
IPv4Address inet::DHCPOptions::serverIdentifier
protected
IPv4Address inet::DHCPOptions::subnetMask
protected

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