Public Member Functions | Static Public Member Functions

ns3::Icmpv6OptionPrefixInformation Class Reference

ICMPv6 Option Prefix Information. More...

#include <icmpv6-header.h>

Inheritance diagram for ns3::Icmpv6OptionPrefixInformation:
Inheritance graph
[legend]
Collaboration diagram for ns3::Icmpv6OptionPrefixInformation:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Icmpv6OptionPrefixInformation ()
 Constructor.
 Icmpv6OptionPrefixInformation (Ipv6Address network, uint8_t prefixlen)
 Constructor.
virtual ~Icmpv6OptionPrefixInformation ()
 Destructor.
virtual TypeId GetInstanceTypeId () const
 Get the instance type ID.
uint8_t GetPrefixLength () const
 Get the prefix length.
void SetPrefixLength (uint8_t prefixLength)
 Set the prefix length.
uint8_t GetFlags () const
 Get the flags.
void SetFlags (uint8_t flags)
 Set the flags.
uint32_t GetValidTime () const
 Get the valid time of the information.
void SetValidTime (uint32_t validTime)
 Set the valid time of the information.
uint32_t GetPreferredTime () const
 Get the preferred time of the information.
void SetPreferredTime (uint32_t preferredTime)
 Set the preferred time of the information.
uint32_t GetReserved () const
 Get the reserved field.
void SetReserved (uint32_t reserved)
 Set the reserved field (normally it will be 0x00000000).
Ipv6Address GetPrefix () const
 Get the IPv6 prefix.
void SetPrefix (Ipv6Address prefix)
 Set the IPv6 prefix.
virtual void Print (std::ostream &os) const
 Print informations.
virtual uint32_t GetSerializedSize () const
 Get the serialized size.
virtual void Serialize (Buffer::Iterator start) const
 Serialize the packet.
virtual uint32_t Deserialize (Buffer::Iterator start)
 Deserialize the packet.

Static Public Member Functions

static TypeId GetTypeId ()
 Get the UID of this class.

Detailed Description

ICMPv6 Option Prefix Information.


Constructor & Destructor Documentation

ns3::Icmpv6OptionPrefixInformation::Icmpv6OptionPrefixInformation ( Ipv6Address  network,
uint8_t  prefixlen 
)

Constructor.

Parameters:
network prefix
prefixlen prefix length

Member Function Documentation

virtual uint32_t ns3::Icmpv6OptionPrefixInformation::Deserialize ( Buffer::Iterator  start  )  [virtual]

Deserialize the packet.

Parameters:
start start offset
Returns:
length of packet

Reimplemented from ns3::Icmpv6OptionHeader.

uint8_t ns3::Icmpv6OptionPrefixInformation::GetFlags (  )  const

Get the flags.

Returns:
the flags.
virtual TypeId ns3::Icmpv6OptionPrefixInformation::GetInstanceTypeId (  )  const [virtual]

Get the instance type ID.

Returns:
instance type ID

Reimplemented from ns3::Icmpv6OptionHeader.

uint32_t ns3::Icmpv6OptionPrefixInformation::GetPreferredTime (  )  const

Get the preferred time of the information.

Returns:
preferred time
Ipv6Address ns3::Icmpv6OptionPrefixInformation::GetPrefix (  )  const

Get the IPv6 prefix.

Returns:
IPv6 prefix
uint8_t ns3::Icmpv6OptionPrefixInformation::GetPrefixLength (  )  const

Get the prefix length.

Returns:
prefix length
uint32_t ns3::Icmpv6OptionPrefixInformation::GetReserved (  )  const

Get the reserved field.

Returns:
the reserved field (should be 0x00000000)
virtual uint32_t ns3::Icmpv6OptionPrefixInformation::GetSerializedSize (  )  const [virtual]

Get the serialized size.

Returns:
serialized size

Reimplemented from ns3::Icmpv6OptionHeader.

static TypeId ns3::Icmpv6OptionPrefixInformation::GetTypeId ( void   )  [static]

Get the UID of this class.

This method returns the TypeId associated to ns3::Icmpv6OptionPrefixInformation.

Returns:
UID

No Attributes defined for this type.
No TraceSources defined for this type.

Reimplemented from ns3::Icmpv6OptionHeader.

uint32_t ns3::Icmpv6OptionPrefixInformation::GetValidTime (  )  const

Get the valid time of the information.

Returns:
valid time
virtual void ns3::Icmpv6OptionPrefixInformation::Print ( std::ostream &  os  )  const [virtual]

Print informations.

Parameters:
os output stream

Reimplemented from ns3::Icmpv6OptionHeader.

virtual void ns3::Icmpv6OptionPrefixInformation::Serialize ( Buffer::Iterator  start  )  const [virtual]

Serialize the packet.

Parameters:
start start offset

Reimplemented from ns3::Icmpv6OptionHeader.

void ns3::Icmpv6OptionPrefixInformation::SetFlags ( uint8_t  flags  ) 

Set the flags.

Parameters:
flags the flags to set
void ns3::Icmpv6OptionPrefixInformation::SetPreferredTime ( uint32_t  preferredTime  ) 

Set the preferred time of the information.

Parameters:
preferredTime preferred time
void ns3::Icmpv6OptionPrefixInformation::SetPrefix ( Ipv6Address  prefix  ) 

Set the IPv6 prefix.

Parameters:
prefix the IPv6 prefix
void ns3::Icmpv6OptionPrefixInformation::SetPrefixLength ( uint8_t  prefixLength  ) 

Set the prefix length.

Parameters:
prefixLength the prefix length
void ns3::Icmpv6OptionPrefixInformation::SetReserved ( uint32_t  reserved  ) 

Set the reserved field (normally it will be 0x00000000).

Parameters:
reserved reserved value
void ns3::Icmpv6OptionPrefixInformation::SetValidTime ( uint32_t  validTime  ) 

Set the valid time of the information.

Parameters:
validTime valid time

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