A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::IntegerOptions< T > Class Template Reference

Implements the Preference and Elapsed Time options. More...

#include "dhcp6-options.h"

+ Inheritance diagram for ns3::IntegerOptions< T >:
+ Collaboration diagram for ns3::IntegerOptions< T >:

Public Member Functions

 IntegerOptions ()
 Constructor.
 
GetOptionValue () const
 Get the option value.
 
void SetOptionValue (T optionValue)
 Set the option value.
 
- Public Member Functions inherited from ns3::Options
 Options ()
 Default constructor.
 
 Options (OptionType code, uint16_t length)
 Constructor.
 
OptionType GetOptionCode () const
 Get the option code.
 
uint16_t GetOptionLength () const
 Get the option length.
 
void SetOptionCode (OptionType code)
 Set the option code.
 
void SetOptionLength (uint16_t length)
 Set the option length.
 

Private Attributes

m_optionValue
 Indicates the elapsed time or preference value.
 

Additional Inherited Members

- Public Types inherited from ns3::Options
enum class  OptionType {
  OPTION_INIT = 0 , OPTION_CLIENTID = 1 , OPTION_SERVERID = 2 , OPTION_IA_NA = 3 ,
  OPTION_IA_TA = 4 , OPTION_IAADDR = 5 , OPTION_ORO = 6 , OPTION_PREFERENCE = 7 ,
  OPTION_ELAPSED_TIME = 8 , OPTION_RELAY_MSG = 9 , OPTION_AUTH = 11 , OPTION_UNICAST = 12 ,
  OPTION_STATUS_CODE = 13 , OPTION_RAPID_COMMIT = 14 , OPTION_USER_CLASS = 15 , OPTION_VENDOR_CLASS = 16 ,
  OPTION_VENDOR_OPTS = 17 , OPTION_INTERFACE_ID = 18 , OPTION_RECONF_MSG = 19 , OPTION_RECONF_ACCEPT = 20 ,
  OPTION_IA_PD = 25 , OPTION_IAPREFIX = 26 , OPTION_INFORMATION_REFRESH_TIME = 32 , OPTION_SOL_MAX_RT = 82 ,
  OPTION_INF_MAX_RT = 83
}
 Enum to identify the option type. More...
 
enum class  StatusCodeValues {
  Success = 0 , UnspecFail = 1 , NoAddrsAvail = 2 , NoBinding = 3 ,
  NotOnLink = 4 , UseMulticast = 5 , NoPrefixAvail = 6
}
 Enum to identify the status code of the operation. More...
 

Detailed Description

template<typename T>
class ns3::IntegerOptions< T >

Implements the Preference and Elapsed Time options.

Definition at line 398 of file dhcp6-options.h.

Constructor & Destructor Documentation

◆ IntegerOptions()

template<typename T >
ns3::IntegerOptions< T >::IntegerOptions ( )

Constructor.

Definition at line 255 of file dhcp6-options.cc.

Member Function Documentation

◆ GetOptionValue()

template<typename T >
T ns3::IntegerOptions< T >::GetOptionValue ( ) const

Get the option value.

Returns
elapsed time or preference value.

Definition at line 262 of file dhcp6-options.cc.

Referenced by ns3::Dhcp6Header::Serialize().

+ Here is the caller graph for this function:

◆ SetOptionValue()

template<typename T >
void ns3::IntegerOptions< T >::SetOptionValue ( T optionValue)

Set the option value.

Parameters
optionValueelapsed time or preference value.

Definition at line 269 of file dhcp6-options.cc.

References NS_LOG_FUNCTION.

Referenced by ns3::Dhcp6Header::AddElapsedTime(), and ns3::Dhcp6Header::Deserialize().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_optionValue

template<typename T >
T ns3::IntegerOptions< T >::m_optionValue
private

Indicates the elapsed time or preference value.

Definition at line 420 of file dhcp6-options.h.


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