tcp: Perform copy-on-write packet copy into Tx buffer item

This commit is contained in:
Tom Henderson
2017-09-26 15:27:01 -07:00
parent f1870d4071
commit 3b7f84008c

View File

@@ -193,7 +193,7 @@ TcpTxBuffer::Add (Ptr<Packet> p)
if (p->GetSize () > 0)
{
TcpTxItem *item = new TcpTxItem ();
item->m_packet = p;
item->m_packet = p->Copy ();
m_appList.insert (m_appList.end (), item);
m_size += p->GetSize ();