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... | |
Ptr< Packet > | GetPacket () const |
Get the entire packet. More... | |
Ptr< Packet > | GetPartialPacket () const |
Get the packet parts so far received. More... | |
FragmentsTimeoutsListI_t | GetTimeoutIter () |
Get the Timeout iterator. More... | |
bool | IsEntire () const |
If all fragments have been added. More... | |
void | SetTimeoutIter (FragmentsTimeoutsListI_t iter) |
Set the Timeout iterator. 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[[maybe_unused]]) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o[[maybe_unused]]) |
Assignment operator. More... | |
void | Ref () const |
Increment the reference count. More... | |
void | Unref () 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... | |
FragmentsTimeoutsListI_t | m_timeoutIter |
Timeout iterator to "event" handler. More... | |
Ptr< Packet > | m_unfragmentable |
The unfragmentable part. More... | |
This class stores the fragments of a packet waiting to be rebuilt.
Definition at line 344 of file ipv6-extension.h.
ns3::Ipv6ExtensionFragment::Fragments::Fragments | ( | ) |
Constructor.
Definition at line 722 of file ipv6-extension.cc.
ns3::Ipv6ExtensionFragment::Fragments::~Fragments | ( | ) |
Destructor.
Definition at line 727 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 732 of file ipv6-extension.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::Ipv6ExtensionFragment::Process().
Get the entire packet.
Definition at line 787 of file ipv6-extension.cc.
References ns3::Packet::AddAtEnd(), and ns3::Packet::Copy().
Referenced by ns3::Ipv6ExtensionFragment::Process().
Get the packet parts so far received.
Definition at line 800 of file ipv6-extension.cc.
References ns3::Packet::AddAtEnd(), and ns3::Packet::Copy().
Referenced by ns3::Ipv6ExtensionFragment::HandleFragmentsTimeout().
Ipv6ExtensionFragment::FragmentsTimeoutsListI_t ns3::Ipv6ExtensionFragment::Fragments::GetTimeoutIter | ( | ) |
Get the Timeout iterator.
Definition at line 836 of file ipv6-extension.cc.
Referenced by ns3::Ipv6ExtensionFragment::Process().
bool ns3::Ipv6ExtensionFragment::Fragments::IsEntire | ( | ) | const |
If all fragments have been added.
Definition at line 763 of file ipv6-extension.cc.
Referenced by ns3::Ipv6ExtensionFragment::Process().
void ns3::Ipv6ExtensionFragment::Fragments::SetTimeoutIter | ( | FragmentsTimeoutsListI_t | iter | ) |
Set the Timeout iterator.
iter | The iterator. |
Definition at line 829 of file ipv6-extension.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::Ipv6ExtensionFragment::Process().
void ns3::Ipv6ExtensionFragment::Fragments::SetUnfragmentablePart | ( | Ptr< Packet > | unfragmentablePart | ) |
Set the unfragmentable part of the packet.
unfragmentablePart | the unfragmentable part |
Definition at line 756 of file ipv6-extension.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::Ipv6ExtensionFragment::Process().
|
private |
If other fragments will be sent.
Definition at line 405 of file ipv6-extension.h.
|
private |
The current fragments.
Definition at line 410 of file ipv6-extension.h.
|
private |
Timeout iterator to "event" handler.
Definition at line 420 of file ipv6-extension.h.
The unfragmentable part.
Definition at line 415 of file ipv6-extension.h.