[Ns-bugs] [Bug 572] Tag offsets not updated in Packet::PeekData ()

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Tue Jun 2 03:26:34 PDT 2009


http://www.nsnam.org/bugzilla/show_bug.cgi?id=572


Mathieu Lacage <mathieu.lacage at sophia.inria.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mathieu.lacage at sophia.inria.
                   |                            |fr




--- Comment #4 from Mathieu Lacage <mathieu.lacage at sophia.inria.fr>  2009-06-02 06:26:34 EDT ---
here is a reduced testcase for bug 572. I can't figure out what is wrong with
564 though.

  {
    // bug 572                                                                  
    Ptr<Packet> tmp = Create<Packet> (1000);
    tmp->AddTag (ATestTag<20> ());
    CHECK (tmp, 1, E (20, 0, 1000));
    tmp->AddHeader (ATestHeader<2> ());
    CHECK (tmp, 1, E (20, 2, 1002));
    tmp->RemoveAtStart (1);
    CHECK (tmp, 1, E (20, 1, 1001));
    tmp->PeekData ();
    CHECK (tmp, 1, E (20, 1, 1001));
  }


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Ns-bugs mailing list