This class stores the fragments of a packet waiting to be rebuilt. More...
Public Member Functions | |
Fragments () | |
Constructor. More... | |
~Fragments () | |
Destructor. More... | |
void | AddFragment (Ptr< Packet > fragment, uint16_t fragmentOffset, bool moreFragment) |
Add a fragment. More... | |
void | CancelTimeout () |
Cancel the timeout event. More... | |
Ptr< Packet > | GetPacket () const |
Get the entire packet. More... | |
Ptr< Packet > | GetPartialPacket () const |
Get the packet parts so far received. More... | |
bool | IsEntire () const |
If all fragments have been added. More... | |
void | SetTimeoutEventId (EventId event) |
Set the Timeout EventId. More... | |
void | SetUnfragmentablePart (Ptr< Packet > unfragmentablePart) |
Set the unfragmentable part of the packet. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< Fragments > | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) const |
Decrement the reference count. More... | |
Private Attributes | |
bool | m_moreFragment |
If other fragments will be sent. More... | |
std::list< std::pair< Ptr< Packet >, uint16_t > > | m_packetFragments |
The current fragments. More... | |
EventId | m_timeoutEventId |
Timeout handler event. More... | |
Ptr< Packet > | m_unfragmentable |
The unfragmentable part. More... | |
This class stores the fragments of a packet waiting to be rebuilt.
Definition at line 324 of file ipv6-extension.h.
ns3::Ipv6ExtensionFragment::Fragments::Fragments | ( | ) |
Constructor.
Definition at line 624 of file ipv6-extension.cc.
ns3::Ipv6ExtensionFragment::Fragments::~Fragments | ( | ) |
Destructor.
Definition at line 629 of file ipv6-extension.cc.
void ns3::Ipv6ExtensionFragment::Fragments::AddFragment | ( | Ptr< Packet > | fragment, |
uint16_t | fragmentOffset, | ||
bool | moreFragment | ||
) |
Add a fragment.
fragment | the fragment |
fragmentOffset | the offset of the fragment |
moreFragment | the bit "More Fragment" |
Definition at line 633 of file ipv6-extension.cc.
void ns3::Ipv6ExtensionFragment::Fragments::CancelTimeout | ( | ) |
Cancel the timeout event.
Definition at line 727 of file ipv6-extension.cc.
Get the entire packet.
Definition at line 681 of file ipv6-extension.cc.
References ns3::Packet::AddAtEnd(), ns3::Packet::Copy(), and list.
Get the packet parts so far received.
Definition at line 693 of file ipv6-extension.cc.
References ns3::Packet::AddAtEnd(), ns3::Packet::Copy(), and list.
bool ns3::Ipv6ExtensionFragment::Fragments::IsEntire | ( | ) | const |
If all fragments have been added.
Definition at line 658 of file ipv6-extension.cc.
References list.
void ns3::Ipv6ExtensionFragment::Fragments::SetTimeoutEventId | ( | EventId | event | ) |
Set the Timeout EventId.
event | The event. |
Definition at line 721 of file ipv6-extension.cc.
void ns3::Ipv6ExtensionFragment::Fragments::SetUnfragmentablePart | ( | Ptr< Packet > | unfragmentablePart | ) |
Set the unfragmentable part of the packet.
unfragmentablePart | the unfragmentable part |
Definition at line 653 of file ipv6-extension.cc.
|
private |
If other fragments will be sent.
Definition at line 384 of file ipv6-extension.h.
|
private |
The current fragments.
Definition at line 389 of file ipv6-extension.h.
|
private |
Timeout handler event.
Definition at line 399 of file ipv6-extension.h.
The unfragmentable part.
Definition at line 394 of file ipv6-extension.h.