[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] SNTP client does not work
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] SNTP client does not work |
Date: |
Thu, 29 Jan 2015 15:56:07 +0100 |
Karl Karpfen wrote:
> 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?
Yes.
Do you have evidence that there is an endianness problem here? Have you checked
with wireshark what gets sent?
BTW: ipaddr_aton already returns network byte order and udp_sendto() takes a
host byte order port. Please first check your code before assuming bugs in
other people's code ;-)
Simon