lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Little endian


From: Fabian Cenedese
Subject: Re: [lwip-users] Little endian
Date: Fri, 27 Jun 2014 15:16:33 +0200

At 09:38 27.06.2014, you wrote:
>Hi Fabi, have you followed this guide 
><http://lwip.wikia.com/wiki/Porting_for_an_OS>http://lwip.wikia.com/wiki/Porting_for_an_OS
> ? In particular:
>"Packet headers data is stored in 
><http://en.wikipedia.org/wiki/Endianness#Endianness_in_networking>network byte 
>order which is the the 
><http://en.wikipedia.org/wiki/Endianness#Big-endian>big-endian mode. If your 
>processor architure is 
><http://en.wikipedia.org/wiki/Endianness#Little-endian>little-endian, then we 
>need to convert data using 
><http://www.opengroup.org/onlinepubs/007908799/xns/htonl.html>htons()/htonl()/ntohs()/ntohl()
> functions."

As mentioned in my last mail I already got it working. It was
mostly a problem of understanding (what order must the ip
address be in that I give to netif_add) and some bugs. Of
course I had read that page before but some little things
must have slipped. Thanks anyway.

bye  Fabi




reply via email to

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