Hi,
I am trying to implement a new Header. I did the "Header - Tutorial"
https://www.nsnam.org/docs/release/3.6/doxygen/packet-header-trailer.htmlAnd now iam trying to test it.
My SetUp is:
n0 -----> n1 ------> n2------> n3
i installed QueueDiscs on the channels n1-n2 and n2-n3.
I turned off the Second QueueDiscs which gets installed on every channel with a boolean, thus i am having only one QueueDisc on each Channel. But if a QueueDisc is turned off, it forwards everything it gets.
If i Add my Header on the n1-n2 QueueDisc (during Enqueue(item)) the Size gets up from 52 to 58. Thus i assume the header is added.
If I check the Packet-Size during Dequeue(), the size is still 58.
But in the QueueDisc from n2-n3 the Packet size is only 52. Thus i assume my Header gets lost?
My question is now: How do I add a Header to a QueueDiscItem without loosing it during the transmission to another QueueDisc?
Right now i am dooing:
CTPHeader header;
header.SetData(0x1);
item->GetPacket()->AddHeader(header);"item" is the Ptr<QueueDiscItem> which the DoEnqueue function gets passed.
With Kind Regards,
Kurt