[Ns-bugs] [Bug 624] New: Unable to modify packet tag in RouteInput ()
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Sun Jul 5 05:43:52 PDT 2009
http://www.nsnam.org/bugzilla/show_bug.cgi?id=624
Summary: Unable to modify packet tag in RouteInput ()
Product: ns-3
Version: ns-3-dev
Platform: All
OS/Version: All
Status: NEW
Keywords: api, bug
Severity: normal
Priority: P5
Component: routing
AssignedTo: ns-bugs at isi.edu
ReportedBy: wilsonwk at ee.cityu.edu.hk
Estimated Hours: 0.0
I am doing a tag-based routing. My attempt is to add a tag to a packet in
Ipv4RoutingProtocol::RouteOutput (), and the tag is read and modified by
Ipv4RoutingProtocol::RouteInput () in all the subsequence hops the packet is
traversing.
However, several issues prevent this from happening.
- Ipv4RoutingProtocol::RouteInput () receives Ptr<const Packet> as its input
argument. This prevents me from using Packet::RemovePacketTag () to remove the
original tag and add back a modified tag into the packet.
- Packet::PeekPacketTag (Tag &tag) only copies the tag to its output argument,
instead of returning the reference to the actually tag. Thus, any changes to
the "peeked" tag has no effect to the actual tag that is being "peeked".
--
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