[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: |
Mon, 9 Feb 2015 09:28:46 +0100 |
Karl Karpfen wrote:
> in lwiplib.c / lwIPInit() there is a statement
>
> if(lwipIf->ipMode == IPADDR_USE_STATIC)
> {
> ip_addr.addr = htonl(lwipIf->ipAddr);
> net_mask.addr = htonl(lwipIf->netMask);
> gw_addr.addr = htonl(lwipIf->gwAddr);
> }
>
> which seems to be responsible for exchanging the byteorder.
This code is from the TI port, not from us. The TI port seems to store IP
addresses in host byte order where lwIP uses network byte order.
Simon