NS-3
ns3::Icmpv6OptionMtu Class Reference

ICMPv6 MTU option. More...

#include <icmpv6-header.h>

Inheritance diagram for ns3::Icmpv6OptionMtu:
Collaboration diagram for ns3::Icmpv6OptionMtu:

List of all members.

Public Member Functions

 Icmpv6OptionMtu ()
 Constructor.
 Icmpv6OptionMtu (uint32_t mtu)
 Constructor.
virtual ~Icmpv6OptionMtu ()
 Destructor.
virtual TypeId GetInstanceTypeId () const
 Get the instance type ID.
uint16_t GetReserved () const
 Get the reserved field.
void SetReserved (uint16_t reserved)
 Set the reserved field.
uint32_t GetMtu () const
 Get the MTU.
void SetMtu (uint32_t mtu)
 Set the MTU.
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 MTU option.


Constructor & Destructor Documentation

ns3::Icmpv6OptionMtu::Icmpv6OptionMtu ( uint32_t  mtu)

Constructor.

Parameters:
mtuMTU used.

Member Function Documentation

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

Deserialize the packet.

Parameters:
startstart offset
Returns:
length of packet

Reimplemented from ns3::Icmpv6OptionHeader.

virtual TypeId ns3::Icmpv6OptionMtu::GetInstanceTypeId ( ) const [virtual]

Get the instance type ID.

Returns:
instance type ID

Reimplemented from ns3::Icmpv6OptionHeader.

uint32_t ns3::Icmpv6OptionMtu::GetMtu ( ) const

Get the MTU.

Returns:
the MTU value
uint16_t ns3::Icmpv6OptionMtu::GetReserved ( ) const

Get the reserved field.

Returns:
the reserved value
virtual uint32_t ns3::Icmpv6OptionMtu::GetSerializedSize ( ) const [virtual]

Get the serialized size.

Returns:
serialized size

Reimplemented from ns3::Icmpv6OptionHeader.

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

Get the UID of this class.

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

Returns:
UID

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

Reimplemented from ns3::Icmpv6OptionHeader.

virtual void ns3::Icmpv6OptionMtu::Print ( std::ostream &  os) const [virtual]

Print informations.

Parameters:
osoutput stream

Reimplemented from ns3::Icmpv6OptionHeader.

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

Serialize the packet.

Parameters:
startstart offset

Reimplemented from ns3::Icmpv6OptionHeader.

void ns3::Icmpv6OptionMtu::SetMtu ( uint32_t  mtu)

Set the MTU.

Parameters:
mtuthe MTU to set
void ns3::Icmpv6OptionMtu::SetReserved ( uint16_t  reserved)

Set the reserved field.

Parameters:
reservedthe reserved value

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