This class stores the fragments of a packet waiting to be rebuilt. More...
Inheritance diagram for ns3::Ipv6ExtensionFragment::Fragments:
Collaboration diagram for ns3::Ipv6ExtensionFragment::Fragments:Public Member Functions | |
| Fragments () | |
| Constructor. | |
| ~Fragments () | |
| Destructor. | |
| void | AddFragment (Ptr< Packet > fragment, uint16_t fragmentOffset, bool moreFragment) |
| Add a fragment. | |
| Ptr< Packet > | GetPacket () const |
| Get the entire packet. | |
| Ptr< Packet > | GetPartialPacket () const |
| Get the packet parts so far received. | |
| FragmentsTimeoutsListI_t | GetTimeoutIter () |
| Get the Timeout iterator. | |
| bool | IsEntire () const |
| If all fragments have been added. | |
| void | SetTimeoutIter (FragmentsTimeoutsListI_t iter) |
| Set the Timeout iterator. | |
| void | SetUnfragmentablePart (Ptr< Packet > unfragmentablePart) |
| Set the unfragmentable part of the packet. | |
Public Member Functions inherited from ns3::SimpleRefCount< Fragments > | |
| SimpleRefCount () | |
| Default constructor. | |
| SimpleRefCount (const SimpleRefCount &o) | |
| Copy constructor. | |
| uint32_t | GetReferenceCount () const |
| Get the reference count of the object. | |
| SimpleRefCount & | operator= (const SimpleRefCount &o) |
| Assignment operator. | |
| void | Ref () const |
| Increment the reference count. | |
| void | Unref () const |
| Decrement the reference count. | |
Private Attributes | |
| bool | m_moreFragment |
| If other fragments will be sent. | |
| std::list< std::pair< Ptr< Packet >, uint16_t > > | m_packetFragments |
| The current fragments. | |
| FragmentsTimeoutsListI_t | m_timeoutIter |
| Timeout iterator to "event" handler. | |
| Ptr< Packet > | m_unfragmentable |
| The unfragmentable part. | |
This class stores the fragments of a packet waiting to be rebuilt.
Definition at line 333 of file ipv6-extension.h.
| ns3::Ipv6ExtensionFragment::Fragments::Fragments | ( | ) |
| ns3::Ipv6ExtensionFragment::Fragments::~Fragments | ( | ) |
Destructor.
Definition at line 716 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 721 of file ipv6-extension.cc.
References m_moreFragment, m_packetFragments, and NS_LOG_FUNCTION.
Get the entire packet.
Definition at line 776 of file ipv6-extension.cc.
References m_packetFragments, and m_unfragmentable.
Get the packet parts so far received.
Definition at line 789 of file ipv6-extension.cc.
References m_packetFragments, and m_unfragmentable.
| Ipv6ExtensionFragment::FragmentsTimeoutsListI_t ns3::Ipv6ExtensionFragment::Fragments::GetTimeoutIter | ( | ) |
Get the Timeout iterator.
Definition at line 825 of file ipv6-extension.cc.
References m_timeoutIter.
| bool ns3::Ipv6ExtensionFragment::Fragments::IsEntire | ( | ) | const |
If all fragments have been added.
Definition at line 752 of file ipv6-extension.cc.
References m_moreFragment, and m_packetFragments.
| void ns3::Ipv6ExtensionFragment::Fragments::SetTimeoutIter | ( | FragmentsTimeoutsListI_t | iter | ) |
Set the Timeout iterator.
| iter | The iterator. |
Definition at line 818 of file ipv6-extension.cc.
References m_timeoutIter, and NS_LOG_FUNCTION.
| void ns3::Ipv6ExtensionFragment::Fragments::SetUnfragmentablePart | ( | Ptr< Packet > | unfragmentablePart | ) |
Set the unfragmentable part of the packet.
| unfragmentablePart | the unfragmentable part |
Definition at line 745 of file ipv6-extension.cc.
References m_unfragmentable, and NS_LOG_FUNCTION.
|
private |
If other fragments will be sent.
Definition at line 394 of file ipv6-extension.h.
Referenced by Fragments(), AddFragment(), and IsEntire().
|
private |
The current fragments.
Definition at line 399 of file ipv6-extension.h.
Referenced by AddFragment(), GetPacket(), GetPartialPacket(), and IsEntire().
|
private |
Timeout iterator to "event" handler.
Definition at line 409 of file ipv6-extension.h.
Referenced by GetTimeoutIter(), and SetTimeoutIter().
The unfragmentable part.
Definition at line 404 of file ipv6-extension.h.
Referenced by GetPacket(), GetPartialPacket(), and SetUnfragmentablePart().