lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] SNTP client does not work


From: Karl Karpfen
Subject: Re: [lwip-users] SNTP client does not work
Date: Thu, 29 Jan 2015 15:15:53 +0100



2015-01-29 14:35 GMT+01:00 Simon Goldschmidt <address@hidden>:
Karl Karpfen wrote:
> At least for the IP it definitely is necessary. When I hand over a
> non-ntohl()'ed IP-address to LWIP_IF.ipAddr (used with lwIPInit()),
> my network interface comes up with wrong IP.


Of course it's necessary for ip addresses to be in network byte order. However, you were talking about sntp.c. There's no netif setup in there.

No but there I have to specify the IP of the NTP-server to communcate with. My assumption: when I have to ntohl() the netif-IP, I have to do that for the NTP-IP and the port-number too. Is this wrong?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]