As v is a struct defined as follows:
struct ip_iovec v = {
.iov_next = NULL,
.iov_base = payload,
.iov_len = len,
};
and pkt a struct defined as follows:
struct ip6_packet pkt;
and what is issued is:
pkt.ip6_data = &v;
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?
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]<mailto:[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]<mailto:[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