lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] IP header alignment problems


From: Mike Kleshov
Subject: Re: [lwip-devel] IP header alignment problems
Date: Thu, 14 Jan 2010 23:59:45 +0300

2010/1/14 Małowidzki, Marek <address@hidden>:
> By the way, I see that out Ethernet controller (and probably most others) can 
> work in both little and big endian mode. What happens if someone is trying to 
> use LwIP having little-endian Ethernet? I believe he should apply an approach 
> similar to ours - convert packets (at least, headers) to big endian first.

This is taken care of the traditional way: using the hton*() and
ntoh*() macros. I've done lwip-based projects with both little-endian
and big-endian MCU's. No problem so far.




reply via email to

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