You get to choose what goes in the payload. Define your own header
somewhere, and then pass in a pointer to that structure and its
length; that's what you'll get when you receive data.


On Sun, Sep 5, 2010 at 8:14 AM, Hamidreza Ghafghazi
<[email protected]> wrote:
> Hi all,
> I want to use ipv6 in TinyOS. I went through blip and have done every steps
> completely. Now I want to modify a little bit so as to satisfy my
> application. In this case, I am using UDPEcho. I want to send a packet with
> certain structure and format. Unfortunately, I don`t know where should I put
> my data. I mean I don`t know where is the header file which I can modify the
> packet format of UDP.
> here is the UDP interface:
>
> interface UDP {
>   command error_t sendto(struct sockaddr_in6 *dest, void *payload,
>                          uint16_t len);
>   event void recvfrom(struct sockaddr_in6 *src, void *payload,
>                       uint16_t len, struct ip_metadata *meta);
> }
>
> Actually I want to know where this *payload refer to which I can modify.
> Is there any header file or something to do this?
> Any help will be appreciated.
> Thanks in advance
>
> Best regards,
> Hamidreza
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
stephen dawson-haggerty
http://cs.berkeley.edu/~stevedh
uc berkeley wireless and embedded systems lab
berkeley, ca 94720
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to