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.