it's not called inet6_aton, it's:
void inet_pton6(char *addr, struct in6_addr *dest);

In the other case, case, you can do a

        nx_struct udp_report *UDPMsg1 = data;
        unit16_t Temp;
        Temp = UDPMsg1->Etemp


On Sun, Sep 12, 2010 at 1:08 AM, Hamidreza Ghafghazi
<hamidreza.ghafgh...@fkegraduate.utm.my> wrote:
> Dear all,
> I have a problem with UDPEcho. I have modified it to use in my scenario
> which is kind of routing, when I compile it I have an error. here is the
> error:
> UDPEchoP.nc : implicit declaration of function `inet6_aton'
> here is my code:
> inet6_aton ("2001:470:1f04:56d::3", dest_sock.sin6_addr);
> what should I do about that?
> and I have the other question, I have used UDP interface like below:
>         interface UDP as UDPMsg
> then I want to send and receive UDP packets which I have to write as an
> event.
>        event void UDPMsg.recvfrom(struct sockaddr_in6 *from, void *data,...)
> In the above event I want to use the data and modify it, so I need to access
> the data. Is it possible that I write my codes as below:
> for example:
>         nx_struct udp_report UDPMsg1;
>         unit16_t Temp;
>         Temp = UDPMsg1.Etemp
>          ...
> which prior to the above I already modified udp report and have added Etemp
> in the header file.
> Or is there another way of accessing the data and do modification?
> any help will be appreciated
> Best regards,
> Hamidreza
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> 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
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to