Thanks for the reply Johannes.

I think I was a bit unclear during my previous explanation.

It is possible that the bundle will be stored at the host for an extended period of time. As the location changes, I'd like to periodically grab the bundle from storage, modify the block, and then place it back in storage.

Is there any mechanism to do this from within the routingextension (or elsewhere) ?

I suppose I could maintain a separate data structure that records all of the entries that I need to remove, and then remove them all at once when the bundle is forwarded (during serialization), but I was hoping to avoid having to maintain this data structure since it seems inefficient and error prone.


On Sat, Apr 26, 2014 at 2:33 AM, Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de> wrote:
Hello Thomasz,

did you mentioned that you bundle will get forwarded several times? Do
you want to modified it on every forward?

If not and you want only to skip the last entry of the block, you can
modify its serialization as I told before to Brenton.
https://mail.ibr.cs.tu-bs.de/pipermail/ibr-dtn/2014-April/000771.html

Another approach would be to modify the bundle right before it is
serialized in every convergence layer. At the moment the centralized
method for that is missing, but I see the need for that.

Kind regards,
Johannes

Am 25.04.2014 21:24, schrieb Tomasz Kalbarczyk:
> I have the following:
>
> - A bundle that has an extension block, which includes a list of entries.
>
> I need to process the bundle as follows:
>
> - Peek at the end of the list, and based on the value of a variable
> maintained in my RoutingExtension, pop off the end of the list, before
> forwarding the bundle.
>
> My question is, where is the appropriate place to modify this bundle
> (i.e., pop the end of the list) ?
>
> I currently peek at the list when a meta bundle is generated from the
> bundle.
>
> However, I'm unclear what the appropriate place is to modify the bundle,
> so that is only changed once prior to forwarding.


--
Johannes Morgenroth     Institut fuer Betriebssysteme und Rechnerverbund
Tel.: +49-531-391-3249                           Muehlenpfordtstrasse 23
Fax.: +49-531-391-5936      TU Braunschweig         D-38106 Braunschweig
--
!! This message is brought to you via the `ibr-dtn' mailing list.
!! Please do not reply to this message to unsubscribe. To unsubscribe or adjust
!! your settings, send a mail message to <ibr-dtn-request@ibr.cs.tu-bs.de>
!! or look at https://mail.ibr.cs.tu-bs.de/listinfo/ibr-dtn.