Bug 2266 - NixRouting info are not copied during a packet fragmentation
NixRouting info are not copied during a packet fragmentation
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: nix-vector
ns-3-dev
All All
: P5 critical
Assigned To: John Abraham
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-14 11:34 UTC by Tommaso Pecorella
Modified: 2016-02-03 16:30 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2016-01-14 11:34:56 UTC
Packet::CreateFragment discards the NixVector data. As a result, the fragment causes Nix to raise an assert.
The obvious solution is to copy them:

  Ptr<Packet> ret = Ptr<Packet> (new Packet (buffer, byteTagList, m_packetTagList, metadata), false);
  ret->SetNixVector (GetNixVector ());
  return ret;
Comment 1 Tommaso Pecorella 2016-02-03 16:30:41 UTC
Pushed in changeset 11845:d6a1d7cd723f