you need to look at where the actual packet is defined.

no i don't know where that would be with out looking.

try grep -nHiR ip6_metadata .

and see what it says.



On Wed, Jul 3, 2013 at 10:57 AM, Léo Adolphe (CIT) <[email protected]>wrote:

> Hello,
>
> I would like to know the address of the metadata into an IPv6 packet, when
> it is received by PppIpv6.receive.
> Is it at the end of the IPPayload ? I've tried [*data + len -
> sizeof(ip6_metadata)*] as you can see below, but I doesn't seem to work.
>
> I've started with the PppRouter and the BLIP2.0 tutorial and just modify
> the part below :
>
> event error_t PppIpv6.receive(const uint8_t* data, unsigned int len)
> {
>     // IPv6 Header
>     struct ip6_hdr *iph = (struct ip6_hdr *)data;
>
>     // Payload
>     void *payload = (iph + 1);
>
>     // Metadata
> *    struct ip6_metadata *infoPower = (struct ip6_metadata *) (data + len
> - sizeof(ip6_metadata)); // ??*
> *
> *    signal IPForward.recv(iph, payload, *infoPower*);
>     return SUCCESS;
>   }
>
> If you can point me or give me a suggestion about this problem, I will
> really appreciate.
>
> Many Thanks,
>
> Léo
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to