A Set of Fragment belonging to the same packet (src, dst, identification and proto) More...
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 complete part of the packet. | |
bool | IsEntire () const |
If all fragments have been added. | |
![]() | |
SimpleRefCount () | |
SimpleRefCount (const SimpleRefCount &o) | |
uint32_t | GetReferenceCount (void) const |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
Private Attributes | |
std::list< std::pair< Ptr < Packet >, uint16_t > > | m_fragments |
The current fragments. | |
bool | m_moreFragment |
True if other fragments will be sent. |
Additional Inherited Members | |
![]() | |
static void | Cleanup (void) |
A Set of Fragment belonging to the same packet (src, dst, identification and proto)
Definition at line 324 of file ipv4-l3-protocol.h.
ns3::Ipv4L3Protocol::Fragments::Fragments | ( | ) |
Constructor.
Definition at line 1277 of file ipv4-l3-protocol.cc.
ns3::Ipv4L3Protocol::Fragments::~Fragments | ( | ) |
Destructor.
Definition at line 1282 of file ipv4-l3-protocol.cc.
void ns3::Ipv4L3Protocol::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 1287 of file ipv4-l3-protocol.cc.
References ns3::Ipv4L3Protocol::m_fragments, and NS_LOG_FUNCTION.
Referenced by ns3::Ipv4L3Protocol::ProcessFragment().
Get the entire packet.
Definition at line 1340 of file ipv4-l3-protocol.cc.
References ns3::Packet::AddAtEnd(), ns3::Packet::GetSize(), ns3::Ipv4L3Protocol::m_fragments, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
Referenced by ns3::Ipv4L3Protocol::ProcessFragment().
Get the complete part of the packet.
Definition at line 1377 of file ipv4-l3-protocol.cc.
References ns3::Packet::AddAtEnd(), ns3::Packet::GetSize(), ns3::Ipv4L3Protocol::m_fragments, and NS_LOG_LOGIC.
bool ns3::Ipv4L3Protocol::Fragments::IsEntire | ( | ) | const |
If all fragments have been added.
Definition at line 1310 of file ipv4-l3-protocol.cc.
References list, ns3::Ipv4L3Protocol::m_fragments, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
Referenced by ns3::Ipv4L3Protocol::ProcessFragment().
The current fragments.
Definition at line 372 of file ipv4-l3-protocol.h.
|
private |
True if other fragments will be sent.
Definition at line 367 of file ipv4-l3-protocol.h.