ns-3
ns3::Icmpv6OptionPrefixInformation Class Reference

ICMPv6 Option Prefix Information. More...

#include <icmpv6-header.h>

Inheritance diagram for ns3::Icmpv6OptionPrefixInformation:
Collaboration diagram for ns3::Icmpv6OptionPrefixInformation:

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


Member Function Documentation

Get the flags.

Returns:
the flags.

Get the instance type ID.

Returns:
instance type ID

Reimplemented from ns3::Icmpv6OptionHeader.

References GetTypeId().

Get the preferred time of the information.

Returns:
preferred time

Get the IPv6 prefix.

Returns:
IPv6 prefix

Get the prefix length.

Returns:
prefix length

Get the reserved field.

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

Get the serialized size.

Returns:
serialized size

Reimplemented from ns3::Icmpv6OptionHeader.

Referenced by Deserialize().

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.

References ns3::TypeId::SetParent().

Referenced by GetInstanceTypeId().

Get the valid time of the information.

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

Print informations.

Parameters:
osoutput stream

Reimplemented from ns3::Icmpv6OptionHeader.

References ns3::Icmpv6OptionHeader::GetLength(), and ns3::Icmpv6OptionHeader::GetType().

Set the flags.

Parameters:
flagsthe flags to set

Referenced by Deserialize(), and Icmpv6OptionPrefixInformation().

void ns3::Icmpv6OptionPrefixInformation::SetPreferredTime ( uint32_t  preferredTime)

Set the preferred time of the information.

Parameters:
preferredTimepreferred time

Referenced by Deserialize(), and Icmpv6OptionPrefixInformation().

Set the IPv6 prefix.

Parameters:
prefixthe IPv6 prefix

Referenced by Deserialize(), and Icmpv6OptionPrefixInformation().

Set the prefix length.

Parameters:
prefixLengththe prefix length

References NS_ASSERT.

Referenced by Deserialize(), and Icmpv6OptionPrefixInformation().

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

Parameters:
reservedreserved value

Referenced by Deserialize(), and Icmpv6OptionPrefixInformation().

Set the valid time of the information.

Parameters:
validTimevalid time

Referenced by Deserialize(), and Icmpv6OptionPrefixInformation().


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