On 11/6/21 5:33 PM, DUO CHENG wrote:
> Hi all,
>
> I'm receiving a error message like this:
>
> * msg="Invalid attribute set (MaxPackets) on
> ns3::DropTailQueue<Packet>", +0.000000000s -1
> file=../src/core/model/object-factory.cc, line=78
>
>
> and I think this is the line of code causing the error:
>
> * pointToPoint.SetQueue("ns3::DropTailQueue<Packet>","MaxPackets",StringValue("1000p"));
>
> How should I modify this? I'm using the latest version of ns3.
Try:
pointToPoint.SetQueue ("ns3::DropTailQueue", "MaxSize", StringValue
("1000p"));