[Ns-bugs] [Bug 624] Unable to modify packet tag in RouteInput ()
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Sun Jul 5 22:27:50 PDT 2009
http://www.nsnam.org/bugzilla/show_bug.cgi?id=624
wilson thong <wilsonwk at ee.cityu.edu.hk> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|ns-bugs at isi.edu |wilsonwk at ee.cityu.edu.hk
Status|NEW |ASSIGNED
--- Comment #3 from wilson thong <wilsonwk at ee.cityu.edu.hk> 2009-07-06 01:27:49 EDT ---
Created an attachment (id=515)
--> (http://www.nsnam.org/bugzilla/attachment.cgi?id=515)
Patch RouteInput () to accept non-const packet
This second patch is another option to allow modifying tag in RouteInput ()
method. This patch changes the RouteInput () signature so that the first
argument becomes Ptr<Packet>, instead of its original Ptr<const Packet>
In contrast, the first patch mentioned in
http://www.nsnam.org/bugzilla/show_bug.cgi?id=624#c2 changes the
Packet::RemovePacketTag (Tag &tag) method to be a const method, so that packet
tag is still able to be removed with when the packet is referenced by Ptr<const
Packet>.
The two patches SHOULD NOT co-exist together, as the amount of changes is more
than necessary. Nevertheless, compilation is success even if two patches are
applied together.
--
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