Account Options

  1. Sign in
Google Groups Home
« Groups Home
How to modify a packet tag during during routing by RouteInput ()? [Bug 624]
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Wilson Thong  
View profile  
 More options Jul 5 2009, 8:45 am
From: Wilson Thong <wilsonthon...@gmail.com>
Date: Sun, 5 Jul 2009 05:45:48 -0700 (PDT)
Local: Sun, Jul 5 2009 8:45 am
Subject: How to modify a packet tag during during routing by RouteInput ()? [Bug 624]
Just would like to catch your attention on this Bug 624. (http://
www.nsnam.org/bugzilla/show_bug.cgi?id=624)

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".

Thanks,
Wilson


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mathieu Lacage  
View profile  
 More options Jul 5 2009, 9:02 am
From: Mathieu Lacage <mathieu.lac...@sophia.inria.fr>
Date: Sun, 05 Jul 2009 15:02:31 +0200
Local: Sun, Jul 5 2009 9:02 am
Subject: Re: How to modify a packet tag during during routing by RouteInput ()? [Bug 624]

On Sun, 2009-07-05 at 05:45 -0700, Wilson Thong wrote:
> - 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".

Yes, this is on purpose: PeekPacketTag creates a copy of the tag. I
guess that the real problem for you is that RouteInput should take a
non-const packet pointer.

Mathie


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Antti Mäkelä  
View profile  
 More options Jul 5 2009, 3:08 pm
From: Antti Mäkelä <zar...@gmail.com>
Date: Sun, 5 Jul 2009 12:08:45 -0700 (PDT)
Local: Sun, Jul 5 2009 3:08 pm
Subject: Re: How to modify a packet tag during during routing by RouteInput ()? [Bug 624]
On Jul 5, 4:02 pm, Mathieu Lacage <mathieu.lac...@sophia.inria.fr>
wrote:

> Yes, this is on purpose: PeekPacketTag creates a copy of the tag. I
> guess that the real problem for you is that RouteInput should take a
> non-const packet pointer.

  Maybe hack around it with const_cast?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wilson Thong  
View profile  
 More options Jul 5 2009, 3:46 pm
From: Wilson Thong <wilsonthon...@gmail.com>
Date: Sun, 5 Jul 2009 12:46:37 -0700 (PDT)
Local: Sun, Jul 5 2009 3:46 pm
Subject: Re: How to modify a packet tag during during routing by RouteInput ()? [Bug 624]
This is what I did ^^
http://www.nsnam.org/bugzilla/show_bug.cgi?id=624#c2

But as Mathieu mentioned, a better hack should be done on RouteInput
() method. Some more discussion can be found here
http://www.nsnam.org/bugzilla/show_bug.cgi?id=592

Wilson

On Jul 6, 3:08 am, Antti Mäkelä <zar...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wilson Thong  
View profile  
 More options Jul 5 2009, 3:48 pm
From: Wilson Thong <wilsonthon...@gmail.com>
Date: Sun, 5 Jul 2009 12:48:24 -0700 (PDT)
Local: Sun, Jul 5 2009 3:48 pm
Subject: Re: How to modify a packet tag during during routing by RouteInput ()? [Bug 624]
Oops~! Sorry Mäkelä. I just miss-read your post~ ^^!

Sorry,
Wilson

On Jul 6, 3:46 am, Wilson Thong <wilsonthon...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wilson Thong  
View profile  
 More options Jul 6 2009, 1:55 am
From: Wilson Thong <wilsonthon...@gmail.com>
Date: Sun, 5 Jul 2009 22:55:53 -0700 (PDT)
Local: Mon, Jul 6 2009 1:55 am
Subject: Re: How to modify a packet tag during during routing by RouteInput ()? [Bug 624]
Added a patch to change RouteInput (). It patches the RouteInput ()
argument list so that Ptr<const Packet> becomes Ptr<Packet>
http://www.nsnam.org/bugzilla/show_bug.cgi?id=624#c3

Thanks,
Wilson

On Jul 6, 3:48 am, Wilson Thong <wilsonthon...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »