[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Byte ordering and byte swapping
From: |
Jonathan Larmour |
Subject: |
Re: [lwip-users] Byte ordering and byte swapping |
Date: |
Mon, 10 Dec 2007 11:53:58 +0000 |
User-agent: |
Mozilla Thunderbird 1.0.8-1.1.fc3.4.legacy (X11/20060515) |
Muhamad Ikhwan Ismail wrote:
Hi
I got a q about how i should setup the byte ordering on my project for
lwip.
Im running lwip 1.2 on PowerPC MPC852t under little endian mode, and
what i did was
in cc.h I defined BYTE ORDER as LITTLE_ENDIAN. I am not defining any
other swapping functions
so im expecting it to use the normal htons functions. My question is, is
my steps correct cause as i send out DHCP
packets none is detected by wireshark...
Are you saying that wireshark sees garbage packets instead? Is there any
reason you suspect byte ordering specifically? To me, your problem looks
more fundamental than that - something in your ethernet driver. Set
breakpoints on your ethernet driver send function and see what happens.
Jifl
--
eCosCentric Limited http://www.eCosCentric.com/ The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["The best things in life aren't things."]------ Opinions==mine