On Wed, Oct 30, 2013 at 2:25 PM, José Silva Oliveira Araujo
<[email protected]> wrote:
> how would a deep copy be performed for this case using pkttmp? I have not
> been able to find explanation on how to deepcopy a struct where the struct
> assignment (pkt.ip6_data = &v;) is made of a pointer of the whole struct
> (&v).
>
> Do you have any tips on this?

Unfortunately I don't think there's a more elegant way possible than
to just keep following the chain of pointers and copying it onto
static objects that you control.

>
>
>
>
>
> From: José Silva Oliveira Araujo
> Sent: den 30 oktober 2013 21:28
> To: 'Srikanth Nori'
> Cc: [email protected]
> Subject: RE: [Tinyos-help] Trying to delay forwarding of data packets on
> BLIP + RPL
>
>
>
> Thanks Srikanth. I am reading on that now and will let you know when I
> succeed.
>
>
>
> From: Srikanth Nori [mailto:[email protected]]
> Sent: den 30 oktober 2013 21:00
>
>
> To: José Silva Oliveira Araujo
> Cc: [email protected]
> Subject: Re: [Tinyos-help] Trying to delay forwarding of data packets on
> BLIP + RPL
>
>
>
>
>
> On Wed, Oct 30, 2013 at 12:49 PM, José Silva Oliveira Araujo <[email protected]>
> wrote:
>
> Hi Srikanth,
>
>
>
> Yes, I believe that that should be the case. However, I could not figure out
> yet how to properly store this for later use.
>
>
>
> You'll need to "deep copy" the 'v' object onto a global in recv so you can
> pick it up from the timer callback.
>
>
>
>

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to